As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # luna_pinyin.custom.yaml | |
| # | |
| # 在【朙月拼音】裏使用Emoji表情(這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji ) | |
| # | |
| # 保存到Rime用戶文件夾後,重新部署生效 | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| # | |
| # 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分 |
| # usage: kindle eject|start | |
| # The 'start' command works for Kindle, but I saw an error message. | |
| # However, I'm not silencing it here. | |
| alias kindle 'camcontrol devlist | grep Kindle |'\ | |
| 'sed -nE '\''s/^.*(pass[[:digit:]]+).*$/\1/p'\'' |'\ | |
| 'xargs -J% camcontrol \!:1 % -E' | |
| # Any brief command of camcontrol(8) is supported actually; 'eject' | |
| # and 'start' are enough. | |
| complete kindle 'p/1/(eject start)/' |
| [Unit] | |
| Description=Set %i interface in promiscuous mode | |
| After=network.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/ip link set dev %i promisc on | |
| RemainAfterExit=yes | |
| [Install] |
| #!/usr/bin/env sh | |
| # serve.sh | |
| # Modular version: https://gist.github.com/alganet/a22a1373dcee7c175d1e | |
| # Expansion on zsh | |
| command -v setopt 2>&1 >/dev/null && setopt SH_WORD_SPLIT | |
| # POSIX on bash | |
| export POSIXLY_CORRECT=1 | |
| # Lists files and folders as HTML |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"Thx to crxviewer for the magic download URL.
sudo fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img (stock or google)sudo fastboot erase systemsudo fastboot flash system Gsi.imgsudo fastboot delete-logical-partition product_b (if fastboot getvar all "current-slot" is a, run: sudo fastboot delete-logical-partition product_a - https://www.droidwin.com/fix-failed-remote-not-enough-space-to-resize-partition/)