$ find /home -iname '*.zip' -exec mv '{}' /backup/ \;
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
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/andrewelkins/1adc587feb610f586f8f40b50b7efc3a/install-docker-on-linux-mint-18.sh | bash -x | |
########################################## | |
# Kernel version http://stackoverflow.com/a/4024263 | |
versionlte() { | |
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] | |
} | |
versionlt() { |
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
jq '. + { "registry": "https://registry.bower.io" }' .bowerrc > out && mv out .bowerrc |
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
[ | |
{ | |
"key": "stmp-mailer", | |
"type": "smtp", | |
"options": { | |
"host": "smtp.sendgrid.net", | |
"port": 587, | |
"user": "apikey", | |
"password": "Your_API_Key", | |
"protocol": "tls" |
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
<VirtualHost *:port> | |
DocumentRoot /var/www/html/repository/phabricator/webroot | |
RewriteEngine on | |
RewriteRule ^/rsrc/(.*) - [L,QSA] | |
RewriteRule ^/favicon.ico - [L,QSA] | |
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA] | |
ErrorLog ${APACHE_LOG_DIR}/phabricator-error.log | |
CustomLog ${APACHE_LOG_DIR}/phabricator-access.log combined |
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
sudo yum install -y epel-release | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install -y docker-ce | |
sudo usermod -aG docker $(whoami) | |
sudo systemctl enable docker.service | |
sudo systemctl start docker.service | |
sudo docker version |
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
date '+%Y%m%d_%H%M%S' -d "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')" |
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
[Unit] | |
Description=Atlassian Bamboo | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=bamboo | |
ExecStart=/usr/local/bamboo/atlassian-bamboo/bin/start-bamboo.sh | |
ExecStop=/usr/local/bamboo/atlassian-bamboo/bin/stop-bamboo.sh | |
SuccessExitStatus=143 |
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
server { | |
server_name domain.id; | |
# NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default) | |
client_max_body_size 10M; | |
access_log /var/log/nginx/bamboo_access.log; | |
error_log /var/log/nginx/bamboo_error.log warn; | |
location / { |
OlderNewer