by shigemk2

当面は技術的なことしか書かない

Linux

erd

特殊めなconfigからER図を書き起こすコマンドラインツール 慣れると普通にかける 関係の矢印はつけられるけどキーをベースに矢印はつけられない GitHub - BurntSushi/erd: Translates a plain text description of a relational database schema to a graphi…

ファイル所有者のfind

-userを使う 【 find 】コマンド(応用編その4)――パーミッションを指定して探す:Linux基本コマンドTips(240) - @IT

Fribidi

なんか理由はよくわからないけどImageMagickのなかで使われているっぽい。 FriBidi is a free implementation of the Unicode Bidirectional (BiDi) Algorithm. It also provides utility functions to aid in the development of interactive editors and w…

csvq 1.13.1

Change reference scope in lateral subquery. Release Release v1.13.1 · mithrandie/csvq · GitHub

curl 7_70_0

Release 7.70.0 · curl/curl · GitHub

fscache

名前の通りファイルシステムによって使用される永続的なローカルキャッシュ NFSとかで有効にはたらく パフォーマンスの向上は期待できないが、パフォーマンスの一貫性は期待できる 第10章 FS-Cache Red Hat Enterprise Linux 6 | Red Hat Customer Portal

yum deplist

deplist List a package's dependencies っていうことなんだよね 例 bash-4.2# cat /etc/system-release Amazon Linux release 2 (Karoo) bash-4.2# yum deplist nodejs | head Loaded plugins: ovl, priorities package: nodejs.x86_64 2:10.19.0-1nodesour…

fzfでDockerコンテナに入るやつのfish shell

やっていることはだいたいそんなかんじ まあDockerだしね、wikiには無いよね docker exec -it `docker ps --format "{{.Names}}" | fzf` bash ps — Docker-docs-ja 17.06.Beta ドキュメント ちょっと表示でコンテナIDとコンテナ名を表示させて、fish shellで…

sedで指定行だけ表示

こういうこと $ sed -n '16224,16482 p' orig-data-file > new-file $ seq 5 | sed -n '2,4p' 2 3 4 How can I extract a predetermined range of lines from a text file on Unix? - Stack Overflow sed, a stream editor

peco 0.5.7

Release v0.5.7 · peco/peco · GitHub 0.5.5バグフィックス

yamllint 1.20.0

Release v1.20.0 · adrienverge/yamllint · GitHub リリースノート的なのは無かった

Linux ディストリ バージョンチェック

/etc/issue が最大公約数っぽい /etc/issue Check what Debian version you are running on your Linux system - LinuxConfig.org

yumでインストールできるパッケージのURLを取得したい

just list the urls it would download instead of downloading ってな yum を使用して、パッケージをインストールせずにダウンロードだけ行う - Red Hat Customer Portal fedora - How do I find package URLs with Yum? - Unix & Linux Stack Exchange $ y…

ghq v0.14.0

GitHub Actions導入とか Release Checking in changes prior to tagging of version v0.14.0 · motemen/ghq · GitHub

csvq v1.11.7

Fix misspellings in the syntax subcommand. Release Release v1.11.7 · mithrandie/csvq · GitHub

ghq v0.13.0

update deps #204 (Songmu) Add --branch option to ghq get for specifying branch #203 (rhysd) ghq getするときにbranch指定するのは面白そうだから試してみよう Release Checking in changes prior to tagging of version v0.13.0 · motemen/ghq · GitHub

ghq v0.12.9

dependencyのアップグレード Release Checking in changes prior to tagging of version v0.12.9 · motemen/ghq · GitHub

yamllint 1.19.0

Release v1.19.0 · adrienverge/yamllint · GitHub リリースノートない

fzf 0.19.0

Release 0.19.0 · junegunn/fzf · GitHub リリースノートなし

curl 7.67.0

brew bump-formula-pr --url=https://curl.haxx.se/download/curl-7.67.0.tar.bz2 --sha256=dd5f6956821a548bf4b44f067a530ce9445cc8094fd3e7e3fc7854815858586c curl brew bump-formula-pr --url=https://curl.haxx.se/download/curl-7.67.0.tar.bz2 --sha2…

画面サイズ取得 Linux

環境 Ubuntu 18.0 いろいろあるっぽい #!/bin/bash # Get the coordinates of the active window's # top-left corner, and the window's size. # This excludes the window decoration. unset x y w h eval $(xwininfo -id $(xdotool getactivewindow) | se…

csvq 1.11.5

https://github.com/mithrandie/csvq/releases/tag/v1.11.5 substringできたよやったね

curlのexit codeの一覧

curlのexit codeの一覧。CURLE_READ_ERROR(26)だと、 ファイルデータをcurlで送るときに、ファイルが読めませんでした 的な怒られ。 libcurl - Error Codes Exit status · Everything curl

yamllint 1.16.0

FreeBSDインストール方法追記 lineのチェック DOS改行コード対応 allowed-valuesにtruthy追加 configのenum対応 yamllint/CHANGELOG.rst at master · adrienverge/yamllint · GitHub

uni2ascii ascii2uni

マルチバイト文字とユニコードの変換コマンド C言語で作成 最終更新は2011の4.18 $ echo "〜" | uni2ascii -q 0x301C $ echo "〜" | ascii2uni -q 〜 uni2ascii

curl 7.65.1

スマホだと読みづらい curl - Changes

su shell option

ログインシェルを指定する 使い方としては su -s /bin/bash user のような感じで、nologinユーザーのログインなどに有効。 なお、-s オプション、GNU限定でMacOS High Sierraのsuだと -s オプションがないし、FreeBSDだと違う挙動なみたい。 -s SHELL, --she…

ghq v0.12.5

リファクタ refine local cloning path detection Adjust metafiles Release Checking in changes prior to tagging of version v0.12.5 · motemen/ghq · GitHub

gawk RS

RS レコードセパレータの意。データをレコードごとに、レコードセパレータの文字で分割するが、デフォルトは改行文字(\n) The GNU Awk User's Guide - 入力ファイルの読み込み

csvq 1.11.2

標準偏差系の関数が追加された Release Release v1.11.2 · mithrandie/csvq · GitHub