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
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows' |
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 | |
cd FileZilla3 # enter FileZilla3 folder | |
sudo cp -arvx * /usr # replace with upgrade file | |
sudo chown root:root /usr/lib |
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 https://dl.google.com/go/go1.9.3.linux-armv6l.tar.gz | |
sudo tar -C /usr/local -xzf go1.9.3.linux-armv6l.tar.gz | |
export PATH=$PATH:/usr/local/go/bin |
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
# linux 64bit | |
$ GOOS=linux GOARCH=amd64 go build | |
# with the -o option to specify the name of the generated binary file | |
$ GOOS=linux GOARCH=amd64 go build -o app.linux | |
# linux 32bit | |
$ GOOS=linux GOARCH=386 go build | |
# windows 64bit | |
$ GOOS=windows GOARCH=amd64 go build |
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
sudo vim /etc/apt/apt.conf | |
# The contents were: | |
Acquire::http::proxy "http://<proxy>:<port>/"; | |
Acquire::ftp::proxy "ftp://<proxy>:<port>/"; | |
Acquire::https::proxy "https://<proxy>:<port>/"; | |
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
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
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
#!/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
socks5 = 127.0.0.1:1080 |
NewerOlder