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
# Buffer Size: 500M | |
git config http.postBuffer 524288000 | |
# git config --global http.postBuffer 524288000 | |
# Buffer Size: 1000M | |
git config http.postBuffer 1048576000 | |
# git config --global http.postBuffer 1048576000 |
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
# Set git proxy with socks5, like shadowsocks. | |
git config --global http.proxy socks5://127.0.0.1:1080 | |
git config --global https.proxy socks5://127.0.0.1:1080 | |
# Unset git proxy | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy |
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
wget -e use_proxy=yes -e http_proxy=127.0.0.1:11080 https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
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
#!/usr/bin/env bash | |
git stash && \ | |
date=$(date -d "$1" +%s) && \ | |
rm -rf "$(git rev-parse --git-dir)/refs/original/" && \ | |
git filter-branch --env-filter \ | |
"if [ \$GIT_COMMIT = \"$(git rev-parse HEAD)\" ]; then | |
export GIT_AUTHOR_DATE=\"$date\" | |
export GIT_COMMITTER_DATE=\"$date\" | |
export GIT_COMMITTER_NAME=\$GIT_AUTHOR_NAME | |
export GIT_COMMITTER_EMAIL=\$GIT_AUTHOR_EMAIL |
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
#!/usr/bin/env bash | |
go get -u -v github.com/golang/crypto/... | |
rm -rf $GOPATH/src/golang.org/x/crypto/ | |
cp -R $GOPATH/src/github.com/golang/crypto $GOPATH/src/golang.org/x/crypto/ | |
echo "Complete the cloning github.com/golang/crypto/..." | |
go get -u -v github.com/golang/net/... | |
rm -rf $GOPATH/src/golang.org/x/net/ | |
cp -R $GOPATH/src/github.com/golang/net $GOPATH/src/golang.org/x/net/ | |
echo "Complete the cloning github.com/golang/net/..." |
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
socks5 = 127.0.0.1:1080 |
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
#!/usr/bin/env bash | |
git stash && \ | |
date=$(date -r $(expr $(date '+%s') + $1) +%s) && \ | |
rm -rf "$(git rev-parse --git-dir)/refs/original/" && \ | |
git filter-branch --env-filter \ | |
"if [ \$GIT_COMMIT = \"$(git rev-parse HEAD)\" ]; then | |
export GIT_AUTHOR_DATE=\"$date\" | |
export GIT_COMMITTER_DATE=\"$date\" | |
export GIT_COMMITTER_NAME=\$GIT_AUTHOR_NAME | |
export GIT_COMMITTER_EMAIL=\$GIT_AUTHOR_EMAIL |
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
rm -rf "$(git rev-parse --git-dir)/refs/original/" && \ | |
git filter-branch --env-filter \ | |
"if [ \$GIT_COMMIT = \"$(git rev-parse HEAD)\" ]; then | |
export GIT_AUTHOR_DATE=\"$1\" | |
export GIT_COMMITTER_DATE=\"$1\" | |
export GIT_COMMITTER_NAME=\$GIT_AUTHOR_NAME | |
export GIT_COMMITTER_EMAIL=\$GIT_AUTHOR_EMAIL | |
fi" |
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
name: php-cs-fixer | |
Open console: uncheck | |
Program: php-cs-fixer | |
Parameters: fix "$FileDir$/$FileName$" --rules=@PSR2 | |
Working directory: $ProjectFileDir$ |
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
socks5=127.0.0.1:1080 |
OlderNewer