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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\ps] | |
@="PowerShell Here" | |
"Extended"="" | |
"Icon"="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe" | |
"HideBasedOnVelocityId"=dword:006698a6 | |
"NoWorkingDirectory"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\ps\command] |
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 | |
#first of all, to resolve the https issue, run these | |
opkg update | |
opkg install wget ca-certificates | |
#remove legacy shadowsocks lib and config | |
rm /etc/config/shadowsocks | |
#install shadowsocks-libdev |
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
{"lastUpload":"2018-04-21T06:54:23.694Z","extensionVersion":"v2.9.0"} |
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 | |
alias gs="git status $*" | |
alias go="git checkout $*" | |
alias gob="git checkout -b $*" | |
alias gof="git checkout -f $*" | |
alias ga="git add $*" | |
alias gaa="git add . $*" | |
alias gc="git commit $*" | |
alias gcm="git commit -m $*" |
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/sh | |
#install pip and shadowsocks | |
sudo apt-get install -y python-pip | |
sudo pip install shadowsocks | |
#create shadowsocks scripts | |
echo "sudo ssserver -p 8388 -k [PASSWORD] -m aes-256-cfb --user nobody -d start" > ssstart.sh | |
echo "sudo ssserver -d stop" > ssstop.sh |
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 | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ "master" == "$branch" ]; then | |
GIT_WORK_TREE=/path/to/website git checkout master -f | |
echo "password" | sudo -S chown -R git:www /path/to/website && sudo chmod -R 775 /path/to/website | |
cd /path/to/website/cache/folder | |
for DIR in `find . -mindepth 1 -maxdepth 1 -type d` | |
do |
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
@ECHO OFF | |
java -jar "%~dp0bfg-1.13.0.jar" %* |
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 | |
# pre-requirements | |
sudo apt-get install software-properties-common python-software-properties | |
# add repository | |
sudo add-apt-repository ppa:chris-lea/redis-server | |
# update source | |
sudo apt-get update |
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 | |
# declare an array called array and define 3 vales | |
array=( ) | |
for i in "${array[@]}" | |
do | |
echo "deleting $i..." | |
curl -H 'Authorization: token {$TOKEN}' -X DELETE https://api.github.com/repos/{$USER}/$i | |
done |
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 | |
for file in *.pkg; do | |
installer -pkg "$file" -target / | |
done |
OlderNewer