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
| # | |
| # init.pp | |
| # | |
| class foo( | |
| $name = 'bob', | |
| $age = 23, | |
| $occupation = 'self-employed', | |
| $job_description = 'nut scratcher' | |
| ) { |
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/bin/env ruby | |
| $:.unshift '/Users/travis/ics/weavr/lib' | |
| require 'weavr' | |
| require 'yaml' | |
| require 'erb' | |
| cluster_name = ARGV[0] | |
| cluster_action = ARGV[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
| # To prepare for AMI: | |
| # | |
| # Install epel repo | |
| # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| # sudo rpm -ivh epel-release-6-8.noarch.rpm | |
| # rm epel-release-6-8.noarch.rpm | |
| # | |
| # Install xfsprogs by hand | |
| # wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-3.1.1-14.el6.x86_64.rpm | |
| # wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-devel-3.1.1-14.el6.x86_64.rpm |
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
| # Adjust hosts file for DNS | |
| private_ip=$1 | |
| public_hostname=$2 | |
| public_domain=$3 | |
| host_string="${private_ip} ${public_hostname}.${public_domain} ${public_hostname}\n" | |
| sed -i "1s/^/${host_string}/" /etc/hosts | |
| # Set the machine host and domain | |
| hostname $public_hostname |
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/sh | |
| # Echo all commands to stdout | |
| set -x | |
| # Fail on non-zero exit status | |
| set -e | |
| # Install puppet and passenger | |
| gem install puppet passenger --no-ri --no-rdoc |
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
| cluster(:hdp) do | |
| cluster_role.override_attributes({ | |
| hadoop: { | |
| distribution: { | |
| provider: 'hortonworks', | |
| version: '2.0', | |
| }, | |
| }, | |
| }) |
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
| module RTanque | |
| class Bot | |
| def initialize(arena, brain_klass = Brain) | |
| @arena = arena | |
| @brain = brain_klass.new(self.arena, self) | |
| @ticks = 0 | |
| self.health = self.class::MAX_HEALTH | |
| self.speed = 0 | |
| self.fire_power = nil |
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
| # To prepare for AMI: | |
| # | |
| # Install epel repo | |
| # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| # sudo rpm -ivh epel-release-6-8.noarch.rpm | |
| # rm epel-release-6-8.noarch.rpm | |
| # | |
| # Install xfsprogs by hand | |
| # wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-3.1.1-14.el6.x86_64.rpm | |
| # wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-devel-3.1.1-14.el6.x86_64.rpm |
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
| : 1396541266:0;g co Gemfile.lock | |
| : 1396541269:0;g co master | |
| : 1396541727:0;cd ics/ | |
| : 1396541729:0;cd srp9-homebase | |
| : 1396541732:0;g remote -v | |
| : 1396541784:0;g remote add upstream [email protected]:infochimps/enterprise-homebase.git | |
| : 1396541786:0;g remote -v | |
| : 1396541792:0;g pull origin | |
| : 1396541802:0;g fetch upstream | |
| : 1396541823:0;g merge upstream/stable |
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
| Find out if you have multiple ES processes: | |
| ``` | |
| ubuntu@new-phyrexia-search-0:~$ ps auxf | grep elasticsearch | |
| ubuntu 7086 0.0 0.0 8104 932 pts/1 S+ 19:56 0:00 \_ grep --color=auto elasticsearch | |
| root 5819 0.0 0.0 164 4 ? Ss 19:44 0:00 \_ runsv elasticsearch | |
| root 5820 0.0 0.0 184 4 ? S 19:44 0:00 | \_ svlogd -tt /var/log/elasticsearch | |
| 61021 6947 1.0 16.7 2274500 1277296 ? SLl 19:45 0:07 | \_ java -server -Xms1000m -Xmx1000m -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djline.enabled=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/es/elasticsearch/data/heap -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9400 -Djava.rmi.server.hostn |