This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqSTvd4u7WEGgv/GGJ2E7XlD5UlHAuv2B2mRKcCwa2UAQyPCTiOXUpLV9nffnSj04JOweJCsMUnIM71nWDp0j/+sswWHEzk6vPWLTjQvhsF+0R3jxZBk/IGS6mv0Qme9wjHeHPCkqrl7oAEg2JTpzAzJsPniIcZp0Axvc1cJyj9MJaiKhiIjGyL+m7IhBjWu953CHE4YNMUG3FlpWqy9+ykp3Wzpbr1E2sQjuWWgJA8uVtNScFfC1zkKBYElTVtZSlBaJ7jXZqLYW2uhozHg922N5gQlg4pffMZbbe0sGLprnJtFeCMD8iWbXqaSkNIrdPWDjJoN/QooFyEVyBKYWh senorsen@pat |
This file contains 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
# Only in Linux >= 4.9.0 | |
# Append to sysctl.conf | |
# TCP BBR | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr |
This file contains 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/sh | |
set -e | |
flac 2>&1 >/dev/null || (echo "Install flac package first. "; exit 1) | |
FILE=$1 | |
# get the tags | |
ARTIST=$(metaflac "$FILE" --show-tag=ARTIST | sed s/.*=//g || true) | |
TITLE=$(metaflac "$FILE" --show-tag=TITLE | sed s/.*=//g || true) | |
ALBUM=$(metaflac "$FILE" --show-tag=ALBUM | sed s/.*=//g || true) |
This file contains 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
%windir%\system32\bash.exe -cur_console:p -c zsh |
This file contains 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
# for generate import | |
for f in *.ts; do MODEL_NAME=$(grep -ohw 'class \(\w\+Model\)' $f | grep -ohw '\w\+Model'); test $MODEL_NAME && echo "import ${MODEL_NAME} from './$(echo $f | sed 's/\.ts$//')';"; done | |
# for generate Interface | |
for f in *.ts; do MODEL_NAME=$(grep -ohw 'class \(\w\+Model\)' $f | grep -ohw '\w\+Model'); test $MODEL_NAME && echo "$(echo ${MODEL_NAME} | sed -e 's/\w/\L\0/' | sed -e 's/Model$//'): ${MODEL_NAME};"; done |
This file contains 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
@echo off | |
cls | |
echo Set objShell = CreateObject("WScript.Shell") > c:\set_path.vbs | |
echo Set objEnv = objShell.Environment("System") >> c:\set_path.vbs | |
echo PathToAdd = "C:\Program Files\Git\bin" >> c:\set_path.vbs | |
echo oldSystemPath = objEnv("PATH") >> c:\set_path.vbs | |
echo newSystemPath = oldSystemPath ^& ";" ^& PathToAdd >> c:\set_path.vbs | |
echo objEnv("PATH") = newSystemPath >> c:\set_path.vbs | |
echo wscript.echo "Complete" >> c:\set_path.vbs | |
c:\set_path.vbs |
This file contains 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
REM need administrator's privilege! | |
setx path "%PATH%;C:\Program Files\Git\bin" /M |
This file contains 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
{ | |
"files.trimTrailingWhitespace": true, | |
"files.eol": "\n" | |
} |
This file contains 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/sh | |
# Usage: winprog ping 8.8.8.8 | |
# Hint: you can write a shell: ~/bin/ping, and call this script | |
iconv -f utf-8 -t gbk | $@ | iconv -f gbk -t utf-8 |
This file contains 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/sh | |
# Author: Senorsen <[email protected]> | |
# Prerequisites: adb, fastboot, unzip | |
# Flash Nexus Device (especially approriate for unlocked & rooted devices), which cannot be upgraded with OTA | |
# First download nexus factory image from: | |
# https://developers.google.com/android/nexus/images | |
set -e | |
FILE="$1" |