お知らせ
現在サイトのリニューアル作業中のため、全体的にページの表示が乱れています。
標準出力をパースして標準出力するコマンド。Perlが使える環境であればPerlでの代替も可能
ps aux
の実行パスの取得
ps aux | awk '{print $11}'
awk -F ","
awk "/any regexp/{getline; print}"
awk '{print gensub(/Foo: (.+)/, "\1", "g")}')
Env | Ver |
---|---|
next | 11.1.2 |
typescript | 4.3.4 |
__mocks__/next/router.ts
export const useRouter = () => {
return {
route: '/',
pathname: '',
query: '',
asPath: '',
push: jest.fn(),
replace: jest.fn(),
events: {
on: jest.fn(),
off: jest.fn(),
},
beforePopState: jest.fn(() => null),
prefetch: jest.fn(() => null),
};
};
使い方の簡単な参考
Windowsで確認しているが、 Linuxでも多分同じ
Env | Ver |
---|---|
gpg (GnuPG) | 2.2.27 |
gpg --list-keys
--with-keygrip
をつけるとKeyGrip(鍵の識別子?)も見れるgpg --edit-key <Name>
<Name>
は鍵の名前か鍵IDを指定できる--expert
をつけると高度な編集が可能になるhelp
を叩いてやりたい操作をするkey <ID>
を指定する必要がある
delkey
とかするとエラーになるgpg --import <key-file>