This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VER=0.48.0 | |
| NAME=frp_${VER}_linux_amd64 | |
| wget "https://github.com/fatedier/frp/releases/download/v${VER}/${NAME}.tar.gz" | |
| tar zxvf ${NAME}.tar.gz | |
| ln -s ${NAME} frp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local hyperShift = {'alt'} | |
| local screenOriginPosition = {} | |
| function switch_mouse_to_other_screen() | |
| local screen = hs.mouse.getCurrentScreen() | |
| screenOriginPosition[screen:id()] = hs.mouse.absolutePosition() | |
| local nextScreen = screen:next() | |
| local mouseOriginPosition = screenOriginPosition[nextScreen:id()] | |
| local targetPos = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SuConfig=git@github.com:SuCicada/SuEnv.git | |
| id_rsa_file=~/.ssh/su_id_rsa | |
| su_env_dir=~/.su_env | |
| #id_rsa >$id_rsa_file | |
| #chmod 600 $id_rsa_file | |
| tempfile=$(mktemp --dry-run) | |
| cat <<EOF >"$tempfile" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;键盘扫描配置文件。 | |
| ;目前只支持16进制格式,包括字节和双字节,其它格式暂不支持。 | |
| ;格式、顺序和数量都不能修改。可以加注释,行首以';'开始,后面为注释。 | |
| ;键值:双字节,用于键值表和Fn映射功能,高2bit为大分类 | |
| ; 00为普通按键(见附表一) | |
| ; 01为控制按键(见附表二),或模拟鼠标按键(见附表四) | |
| ; 10为多媒体按键(见附表三) | |
| ; 11为保留 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Place your key bindings in this file to override the defaults | |
| [ | |
| { | |
| "key": "ctrl+k shift+z", | |
| "command": "workbench.action.toggleZenMode" | |
| }, | |
| { | |
| "key": "ctrl+k z", | |
| "command": "-workbench.action.toggleZenMode" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///c%3A/Users/ZQ091606/Documents/PROGRAM/GitHub/halo-admin/src/config/defaultSettings.js","entries":[{"id":"OeFW.js","source":"Workspace Edit","timestamp":1663583011146}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lnk="C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\JetBrains Toolbox\IntelliJ IDEA Ultimate.lnk" | |
| win2unix(){ | |
| echo $(echo "$1" | tr '\\' '/' | tr -d ':' | xargs -i echo /{}) | |
| } | |
| intellij=$(cat "$(win2unix "$lnk")" | grep -ao C.*idea.*.exe ) | |
| intellij=`win2unix $intellij` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.profile: executed by the command interpreter for login shells. | |
| # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
| # exists. | |
| # see /usr/share/doc/bash/examples/startup-files for examples. | |
| # the files are located in the bash-doc package. | |
| # the default umask is set in /etc/profile; for setting the umask | |
| # for ssh logins, install and configure the libpam-umask package. | |
| #umask 022 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hosts=/mnt/c/Windows/System32/drivers/etc/hosts | |
| ip=`ifconfig eth0 | awk '/inet /{print substr($2,1)}'` | |
| host=ubuntu.wsl2 | |
| if [ `grep -q $host $hosts` -gt 0 ]; | |
| sed -i '/$host/d' $hosts | |
| fi | |
| echo "$ip $host" >> hosts |