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
require 'aws-sdk' | |
route53 = Aws::Route53::Client.new( | |
region: 'sa-east-1', | |
access_key_id: 'xxxxx', | |
secret_access_key: 'xxxxx' | |
) | |
changes = [] | |
changes << { | |
:action => 'CREATE', |
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
require 'aws-sdk' | |
route53 = Aws::Route53::Client.new( | |
region: 'sa-east-1', | |
access_key_id: 'xxxxxx', | |
secret_access_key: 'xxxxxx' | |
) | |
response = route53.list_resource_record_sets( | |
:hosted_zone_id => "xxxxxx", | |
) |
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
get md5 from crt | |
openssl x509 -noout -modulus -in /etc/yourcertificate.crt | openssl md5 | |
get md5 from key | |
openssl rsa -noout -modulus -in /etc/private.key | openssl md5 |
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
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz | |
tar xvfz pip-1.2.1.tar.gz | |
cd pip-1.2.1 | |
zypper install python-setuptools | |
python setup.py install | |
ln -sfn /usr/local/bin/pip /usr/bin/pip | |
pip install --upgrade awscli | |
cd .. |
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
find . -mtime -1 -type f -exec sh -c 'openssl rsa -in $1 -out ${1%startssl.key}apache.key' _ {} \; |
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
find . -name '*_ssl*' -exec sh -c 'cat "$1" "${1%_ssl.conf}.conf" > "${1%_ssl.conf}.diff.conf" && mv "${1%_ssl.conf}.diff.conf" "${1%_ssl.conf}.conf" && rm "$1"' _ {} \; |
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
while :; do clear; ps aux | grep jboss | grep -v '\-app' | grep -v grep ; sleep 0.8s; done |
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
### TUNEL DE ACESSO A UMA PORTA REMOTA, COMO SE FOSSE LOCAL | |
ssh -f <USUARIO>@<IP DA MAQUINA SSH> -L <PORTA LOCAL>:localhost:<PORTA REMOTA> -N | |
# Ex: TUDO QUE FOR PARA MINHA PORTA LOCAL 18080, SERA DIRECIONADO A PORTA REMOTA DO SERVIDOR 8080 | |
ssh -f samukasmk@meu_servidor.com.br -L 18080:localhost:8080 -N | |
### TUNEL COM NEXT HUP | |
ssh samukasmk@<IP SERVER PULO> -t -t -L <IP LOCAL>:<PORTA LOCAL>:localhost:<PORTA LOCAL> ssh -D <PORTA DESTINO> <USER>@<IP SERVER DESTINO> | |
# Ex: porta 8080 com next hup |
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
gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/ --use-system-libraries --with-xml=/usr/local/Cellar/libxml2/ |
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
#!/bin/bash | |
echo "Opening Modified file: ($5) -> ($2)" | |
os_name=`uname -s` | |
case $os_name in | |
Darwin) opendiff "$2" "$5" > /dev/null 2>&1 | |
;; | |
*) meld "$2" "$5" > /dev/null 2>&1 | |
esac |
OlderNewer