注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| let pancakeSwapAbi = [ | |
| {"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"}, | |
| ]; | |
| let tokenAbi = [ | |
| {"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}, | |
| ]; | |
| const Web3 = require('web3'); | |
| /* | |
| Required Node.js |
| 你长的怪像人殊不知是只人面犬 | |
| 你的脸有碍观瞻 | |
| 当初惊艳,完完全全,只为世面见得少。 | |
| 嫉妒是一种不好的情感,我理解你嫉妒我有家人,可你这么说有点过分了 | |
| 你自拍一张就是你的全家福 | |
| 远看是美景,近看想报警 | |
| 你在无中生有 你在暗度陈仓 你在凭空想象 你在凭空捏造 你在无言无语 你在无可救药 你是逝者安息 你是一路走好 你是傻子巴拉 你是永无止境 你是没钱买药 你是头脑有病 你是眼里有泡 你是嘴里刘能 你是污言秽语 你是咎由自取 你是殃及无辜 你是祸害众生 你是仓皇失措 你是暗度陈仓 你是无可救药 | |
| 胖姑娘袭花衫,花都胖起来。 | |
| 即使是做咸鱼,也要做最咸的那一条。 | |
| # ----------------------------------------------------------------------------- | |
| # AI-powered Git Commit Function | |
| # Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It: | |
| # 1) gets the current staged changed diff | |
| # 2) sends them to an LLM to write the git commit message | |
| # 3) allows you to easily accept, edit, regenerate, cancel | |
| # But - just read and edit the code however you like | |
| # the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/ | |
| gcm() { |
| const child_process = require('child_process'); | |
| const path = require('path'); | |
| const glob = require('glob'); | |
| const crypto = require('crypto'); | |
| const fs = require('fs-extra'); | |
| const _ = require('lodash'); | |
| const id3 = require('node-id3'); | |
| const sort = require('alphanum-sort'); | |
| const extractAudio = false; |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |