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
| #!/usr/env/bash | |
| secrets=$(whoami) | |
| ROOT_DIRS=$(find . -maxdepth 1 ! -path . -type d ! -path './.*' -print | tr '\n' ' ') | |
| for path in $ROOT_DIRS; do | |
| ALIAS= | |
| [[ -f ${path}/.bashrc ]] && ALIAS=". $HOME/${path}/.bashrc;" | |
| [[ -f ${path}/.${secrets}-secrets ]] && ALIAS="${ALIAS}. $HOME/${path}/.${secrets}-secrets;" | |
| [[ ! -z ${ALIAS} ]] && alias $(basename ${path})="${ALIAS}" | |
| 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| $script = <<SCRIPT | |
| yum install -y java-1.7.0-openjdk | |
| iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPT | |
| service iptables save | |
| copy_or_get () { | |
| if [ -f "$1" ]; then | |
| cp $1 ./ |
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
| sed -r 's/.*(^[0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ec2-\1-\2-\3-\4.compute-1.amazonaws.com/g' |
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
| acpi | |
| acpid | |
| alsa-oss | |
| alsa-utils | |
| autoconf | |
| automake | |
| awesome | |
| bash | |
| binutils | |
| bison |
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
| #!/bin/bash | |
| curl -O https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz | |
| tar xvf logstash* | |
| cd logstash* | |
| GEM_HOME=vendor/bundle/jruby/1.9 GEM_PATH= java -Xmx500m -jar vendor/jar/jruby-complete-1.7.11.jar -S gem install logstash-kafka | |
| cp -R vendor/bundle/jruby/1.9/gems/logstash-kafka-*-java/{lib/logstash/*,spec/*} {lib/logstash/,spec/} | |
| # test install | |
| USE_JRUBY=1 bin/logstash rspec spec/**/kafka*.rb | |
| cd .. |
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
| #!/bin/bash | |
| #This script will prep a centos6 box for vagrant box packaging | |
| cat << EOF | tee /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| BOOTPROTO="dhcp" | |
| NM_CONTROLLED="yes" | |
| ONBOOT="yes" | |
| TYPE="Ethernet" |
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
| #!/bin/bash | |
| # GTK+ and Firefox for Amazon Linux | |
| # Written by Joseph Lawson 2012-06-03 | |
| # http://joekiller.com | |
| # http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/ | |
| # chmod 755 ./gtk-firefox.sh | |
| # sudo ./gtk-firefox.sh | |
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
| #!/bin/bash | |
| #GTK+ and Firefox for Amazon Linux | |
| #Written by Joseph Lawson 2012-06-03 | |
| #http://joekiller.com | |
| #Free to use but please credit | |
| TARGET=/usr/local | |
| function init() | |
| { | |
| export installroot=$TARGET/src |
NewerOlder