Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iexNote
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| # ~/.config/tmux/tmux.conf | |
| # https://quickref.me/tmux | |
| # https://man7.org/linux/man-pages/man1/tmux.1.html | |
| # Install | |
| # | |
| # ```bash | |
| # mkdir -p ~/.config/tmux | |
| # curl -L https://gist.github.com/zthxxx/bbbb37c100254d688236c21e8b977b85/raw/tmux.conf -o ~/.config/tmux/tmux.conf | |
| # ``` |
| # Install | |
| # curl -sL https://gist.github.com/zthxxx/df7e121048b12c80f260285d88e1091f/raw/.screenrc -o ~/.screenrc | |
| # curl -s https://gist.githubusercontent.com/zthxxx/df7e121048b12c80f260285d88e1091f/raw/.screenrc -o ~/.screenrc | |
| # Shortcut Key binding | |
| # https://www.gnu.org/software/screen/manual/screen.html#Bindkey | |
| # remap prefix key `Ctrl-A` to `Ctrl-S` |
| # find merge-request which contains commit in GitLab | |
| # https://gitlab.com/gitlab-org/gitlab-foss/-/issues/28037 | |
| # https://stackoverflow.com/a/17819027/7277090 | |
| git config --add remote.origin.fetch '+refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*' | |
| git fetch origin | |
| git for-each-ref --contains <hash> | grep merge-requests | head -n 10 |
| git log --name-status --diff-filter=D <file / dir> |
| git fetch --all | |
| # 7 天内有多少 commit 改动了 package-lock | |
| git log --format=format:'%h' --no-merges --since="7 days ago" --all -- package-lock.json | wc -l | |
| # 7 天内所有 commit 共产生了多少完全无重复的 package-lock | |
| git log --format=format:'%h' --no-merges --since="7 days ago" --all -- package-lock.json | \ | |
| xargs -I{} git ls-tree {} package-lock.json | \ | |
| sort | uniq | wc -l |
| # https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions | |
| # code --list-extensions | |
| code --uninstall-extension cduruk.thrift | |
| code --uninstall-extension byted-sec.bytesec-vscode | |
| code --uninstall-extension byted-ide.ppe-debug | |
| code --uninstall-extension byted-ide.ftt | |
| code --uninstall-extension byted-ide.cloud-dev-task | |
| code --uninstall-extension byted-ide.cloud-dev-debug | |
| code --install-extension shalldie.background |
Rewrite "import then re-export" to a direct "re-export" approach via ast-grep.
Rule file see in file-import-to-export.yml
- import Form, {
+ export {| function gen_ssl_cert { | |
| local prefix="${1}" | |
| openssl genrsa -des3 -out "${prefix}.lock.key" 1024 | |
| openssl rsa -in "${prefix}.lock.key" -out "${prefix}.key" | |
| rm "${prefix}.lock.key" | |
| openssl req -new -key "${prefix}.key" -out "${prefix}.csr" | |
| openssl x509 -req -days 3650 -in "${prefix}.csr" -signkey "${prefix}.key" -out "${prefix}.crt" | |
| openssl pkcs12 -export -inkey "${prefix}.key" -in "${prefix}.crt" -out "${prefix}.pfx" |