systemctl reload docker
systemctl restart docker
ip6tables -t nat -A POSTROUTING -s fd00::/80 ! -o docker0 -j MASQUERADE
netstat -plnt
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
| before_script: | |
| - apt-get update -y && apt-get install openssh-client rsync -y | |
| - mkdir -p ~/.ssh | |
| - chmod 700 ~/.ssh | |
| - echo 'echo "$SSH_PASSPHRASE"' > ~/.ssh/.print_ssh_password | |
| - chmod 700 ~/.ssh/.print_ssh_password | |
| - chmod +x ~/.ssh/.print_ssh_password | |
| - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts | |
| - chmod 644 ~/.ssh/known_hosts | |
| - eval $(ssh-agent -s) |
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
| export PIP_REQUIRE_VIRTUALENV=true | |
| #use pip globally | |
| gpip(){ | |
| PIP_REQUIRE_VIRTUALENV="" pip "$@" | |
| } | |
| #use git recursively | |
| rgit(){ | |
| echo "ENTER ./" |
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
| nvm ls-remote | |
| read "Please select the version to install" version | |
| nvm install $version | |
| nvm use $version | |
| nvm alias default $version | |
| npm install -g npm | |
| npm install -g grunt-cli | |
| npm install -g bower | |
| npm install -g phantomjs |
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
| RewriteEngine on | |
| # Don't rewrite files or directories | |
| RewriteCond %{REQUEST_FILENAME} -f [OR] | |
| RewriteCond %{REQUEST_FILENAME} -d | |
| RewriteRule ^ - [L] | |
| # Redirect http://www. to just http:// | |
| RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
| RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
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
| arr=$(echo $(dpkg --get-selections | grep -w 'install$' | cut -f 1) | tr " " "\n") | |
| for pkg in $arr; | |
| do | |
| apt-get install --reinstall $pkg | |
| 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
| git filter-branch --prune-empty --subdirectory-filter sources/dir/ master |
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
| $('html').css('overflow-y','scroll'); | |
| $('#cboxOverlay, #colorbox').remove(); |
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
| $('.modal-scrollable').remove(); | |
| $('body').removeClass('modal-open page-overflow'); | |
| $('.lnmodal').remove(); |