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/sh | |
# | |
# Promotes a local topic branch to a remote tracking branch of the same name, | |
# by pushing and then setting up the git config | |
# | |
# Thanks to ENTP: | |
# http://hoth.entp.com/2008/11/10/improving-my-git-workflow | |
curr_branch=$(git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||') | |
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
setup local branch tracking a remote feature branch | |
==================================================== | |
git checkout -b <feature branch name> origin/<feature_branch_name> | |
create new feature branch | |
========================= | |
git checkout master | |
git checkout -b <feature branch name> | |
create a new local branch tracking a remote branch |
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
st deploy -a spongelytics -e staging -r production -g jump | |
reading private key from ~/.ssh/id_rsa | |
loading dna from ~/.spongetool/environments.yml | |
servers => ["spongelytics-staging-jump1.spongecell.net", "spongelytics-staging-jump2.spongecell.net"] : ["spongelytics-staging-jump1.spongecell.net", "spongelytics-staging-jump2.spongecell.net"] | |
["spongelytics-staging-jump1.spongecell.net", "spongelytics-staging-jump2.spongecell.net"] | |
*** RUNNING ON spongelytics-staging-jump1.spongecell.net | |
~/ops/scripts/chef_run.sh production | |
*** spongelytics-staging-jump1.spongecell.net :: Already on 'production' | |
*** spongelytics-staging-jump1.spongecell.net :: Already up-to-date. | |
*** spongelytics-staging-jump1.spongecell.net :: Submodule 'apache2' () registered for path 'apache2' |
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
hadoop: | |
chefrun_node: | |
java: | |
install_flavor: "oracle" | |
oracle: | |
accept_oracle_download_terms: true |
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 su - admin | |
export set EC2_REGION='us-west-1' | |
export set EC2_HOME=/home/admin/ec2-api-tools-1.6.12.0 | |
/home/admin/ec2-ami-tools-1.4.0.9/bin/ec2-bundle-vol -k /tmp/cert/spongecell_x509.pem -c /tmp/cert/spongecell_x509_cert.pem -u 7915-7448-1547 -e /tmp/cert -i /home/admin/.ssh/authorized_keys,/home/admin/.ssh/id_rsa,/etc/apt/trusted.gpg,/etc/apt/trustdb.gpg -e /home/admin/ec2-ami-tools-1.4.0.9 | |
/home/admin/ec2-ami-tools-1.4.0.9/bin/ec2-upload-bundle -b spongecell-amis-us-weset/dynode-instance-store/ -m /tmp/image.manifest.xml -a AKIAJBHCQSDFDAYVMRKA -s e+NcYgKbxCnvgN0HvgxXo1ySQDxClekc1E4F+H8M --location us-west-1 | |
~/ec2-api-tools-1.6.12.0/bin/ec2-register spongecell-amis-us-weset/dynode-instance-store/image.manifest.xml -n dynode-instance-store -O AKIAJBHCQSDFDAYVMRKA -W e+NcYgKbxCnvgN0HvgxXo1ySQDxClekc1E4F+H8M --region us-west-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
!#/usr/bin/env ruby | |
# run the rysnc and log the results to current/log/rysnc.log | |
system(“rsync -rave 'ssh -i /srv/www/test_node_app/current/keys/admin_sever.pem' unbuntu@<admin_server_ip>:/home/unbuntu/nodejs/Test/data/ /srv/www/test_node_app/current/views/components/ > /srv/www/test_node_app/current/log/rsync.log”) |
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
packer build..... 2>&1 | tee packer.log |
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
sed -i "s/HIPCHAT_AUTH_TOKEN/$(sed 's:/:\\/:g' hipchat_token)/" hipchat_creds.xml | |
sed -i "s/HIPCHAT_UUID/{{ salt['pillar.get']('hipchat:credential_id') }}/" /tmp/hipchat_default_creds.xml: | |
cmd.run: | |
- runas: jenkins |
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
PolicyDocument" : { | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:AttachVolume", | |
"ec2:CreateVolume", | |
"ec2:DeleteVolume", | |
"ec2:CreateKeypair", |
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 salt-call --local pillar.get jenkins:master:plugin_list |
OlderNewer