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 | |
# | |
# This script ensures that the correct sysctl is configured on the | |
# installed guest. This is needed to fix case 20602. | |
# Reboot the guest regardless of whether we take any action here. | |
GARP_ENABLE="net.ipv4.conf.default.arp_notify = 1" | |
SYSCTL_FILE="/etc/sysctl.conf" | |
if [ -e $SYSCTL_FILE ] |
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@vagrant-vm:~$ sudo chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json | |
vagrant@vagrant-vm:~$ sudo chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json --why-run > /tmp/why-run.out |
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
upstream jenkins { | |
server 127.0.0.1:8080; | |
} | |
server { | |
listen 80; | |
server_name jenkins.sn.stratus.com; | |
location / { | |
proxy_pass http://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
# Send a native logstash json event to the logstash server | |
$template ls_json,"{%timestamp:::date-rfc3339,jsonf:@timestamp%,\"@message\":\"%msg:::json%\",\"@fields\":{%fromhost:::jsonf:host%,%syslogfacility-text:::jsonf:syslog_facility%,%syslogfacility:::jsonf:syslog_facility_code%,%syslogseverity-text:::jsonf:syslog_severity%,%syslogseverity:::jsonf:syslog_severity_code%,%app-name:::jsonf:program%,%procid:::jsonf:pid%}}" | |
*.* @@mylogstashhost:5543;ls_json |
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 'package) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
(when (not package-archive-contents) (package-refresh-contents)) | |
;; Whatever packages you want | |
(defvar my-packages '(starter-kit | |
starter-kit-lisp |
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 | |
# Fault iSCSI access to the given $ISCSI_IP and $ISCSI_PORT | |
# Faults indefinitely (until CTRL-C or SIGTERM) if no arguments are given, otherwise faults for the | |
# given number of seconds: | |
# | |
# E.g. fault for 10 seconds | |
# > ISCSI_IP=10.200.11.70 fault-ip-access 10 | |
# | |
# E.g. fault indefinitely |
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
# This is the network configuration for a single OpenStack Controller | |
# with all services (including quantum). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
dns-nameservers 192.168.81.17 134.111.201.54 | |
# The primary network interface |
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
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
dns-nameservers 192.168.81.17 134.111.201.54 | |
# The primary network interface | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.81.61 |
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
export EDITOR=emacs | |
export GOPATH=~/Workspace/go | |
export PATH=$PATH:$GOPATH/bin | |
eval "$(rbenv init -)" | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home | |
alias ll='ls -l' |