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
aws elb describe-instance-health --load-balancer-name bla --region us-east-1 | awk '{ print $2 }' | grep "i-" | cut -d '=' -f 2 | sed -e 's/,$//' | xargs aws ec2 describe-instances --instance-id | grep PublicIpAddress | awk '{print $2}' | cut -d '=' -f 2 | sed -e 's/,$//' |
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
# 172.25.24.104 = your local ip address | |
ACCEPT loc:172.25.24.104 net tcp 9418 |
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
@echo off | |
setlocal enabledelayedexpansion | |
set INTEXTFILE=.kitchen\kitchen-vagrant\default-precise32-vsdev\Vagrantfile | |
set OUTTEXTFILE=Vagrantfile | |
set SEARCHTEXT=../../../ | |
set REPLACETEXT= | |
set OUTPUTLINE= | |
for /f "tokens=1,* delims=¶" %%A in ( '"type %INTEXTFILE%"') do ( | |
SET string=%%A |
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
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }" |
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
# npm update -g npm fails with unmet semver dependencies? You have an older version of normalize-package-data, | |
curl https://npmjs.org/install.sh | sh |
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
vagrant up | |
vagrant vbguest --do install --iso https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.11-93070.iso |
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
Vagrant.configure("2") do |c| | |
c.vm.box = "opscode-ubuntu-12.04" | |
c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box" | |
c.vm.hostname = "default-ubuntu-1204.vagrantup.com" | |
c.vm.synced_folder ".", "/vagrant", disabled: true | |
c.vm.provider :virtualbox do |p| | |
end | |
end |
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
apt-get install -y curl | |
# Install nginx | |
if [ "xx" = "x$(grep 'nginx' /etc/apt/sources.list )x" ] ; then | |
echo 'Installing nginx...' | |
echo ' | |
# Repositories for up to date nginx packages | |
deb http://nginx.org/packages/mainline/ubuntu/ precise nginx | |
deb-src http://nginx.org/packages/mainline/ubuntu/ precise nginx' >> /etc/apt/sources.list | |
curl -s http://nginx.org/keys/nginx_signing.key | apt-key add - | |
apt-get update > /dev/null |
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
#!upstart | |
description "MyApp" | |
author "Author name" | |
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
respawn | |
start on runlevel [23] | |
stop on shutdown | |
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
git branch --merged develop | grep -v "\* develop" | xargs -n 1 git branch -d |
OlderNewer