View Vagrantfile
1 2 3 4 5 6 7 8 9 10
# -*- mode: ruby -*-
# vi: set ft=ruby :
 
# Landrush domain name suffix
# https://github.com/phinze/landrush
# For linux:
# sudo apt-get install -y resolvconf dnsmasq
# sudo sh -c 'echo "server=/vm/127.0.0.1#10053" > /etc/dnsmasq.d/vagrant-landrush'
# sudo service dnsmasq restart
#
View Vagrant Multi-Machine configuration
1 2 3 4 5 6 7 8 9 10
# -*- mode: ruby -*-
# vi: set ft=ruby :
# inspired from https://gist.github.com/dlutzy/2469037
 
boxes = [
{ :name => :web, ip: '192.168.33.10', ssh_port: 2223 },
{ :name => :db, ip: '192.168.33.11', ssh_port: 2224 },
{ :name => :zookeeper, ip: '192.168.33.12', ssh_port: 2225 },
{ :name => :kafka, ip: '192.168.33.13', ssh_port: 2226 },
{ :name => :storm, ip: '192.168.33.14', ssh_port: 2227 },
View corosync.conf
1 2 3 4 5 6 7 8 9 10
# Please read the corosync.conf.5 manual page
compatibility: whitetank
 
aisexec {
user: root
group: root
}
 
service {
name: pacemaker
View aliases
1 2 3 4 5 6 7
# add to your ~/.bash_profile
alias machine_list="cat ~/.ssh/config | egrep '^Host' | grep -v '\*' | cut -d ' ' -f 2"
SSH=ssh
for MACHINE in `machine_list`
do
alias $MACHINE="TERM=xterm $SSH $MACHINE"
done
View mongodb_install.md

MongoDB Install Script

echo -----------------------------------------------------------------
echo -                    Mongo - Ubuntu 14.04                       -
echo -----------------------------------------------------------------

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
View update-emacs-ppa.sh
1 2 3 4 5 6 7 8 9
#! /usr/bin/env bash
 
# Author: Damien Cassou
#
# This is the script I use to build Emacs packages for Ubuntu. These
# packages are uploaded to
# https://launchpad.net/~cassou/+archive/emacs/. Each package is
# either build from a Debian package or from
# http://emacs.naquadah.org/.
View bootstrap-ruby.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
set -e # exit on error
### README
# * built for Ubuntu (Lucid Lynx)
# * uses GIT via SSH because of !@#$% proxy at work
# * installs your desired ruby version (1.9.2-p290 per default) using rbenv
# ** including openssl (needed by bundler)
# ** including sqlite (probably needed for rails apps)
#
# Before you start:
View gist:4196c1725377e45cc8b0
1 2 3 4 5 6 7 8 9 10
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
source ~/.rbenv/completions/rbenv.bash
 
# prompt with ruby version
# rbenv version | sed -e 's/ .*//'
__rbenv_ps1 ()
{
rbenv_ruby_version=`rbenv version | sed -e 's/ .*//'`
View backup-homebrew.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
echo '#!/bin/bash'
echo ''
echo 'failed_items=""'
echo 'function install_package() {'
echo 'echo EXECUTING: brew install $1 $2'
echo 'brew install $1 $2'
echo '[ $? -ne 0 ] && $failed_items="$failed_items $1" # package failed to install.'
echo '}'
View Info.plist.patch
1 2 3 4 5 6 7 8 9 10
--- Contents/Info.plist 2012-02-17 06:47:35.000000000 +0000
+++ foo/Info.plist 2012-02-15 14:02:14.000000000 +0000
@@ -2,6 +2,32 @@
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>CFBundleSignature</key>
+ <string>CNKR</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.mozdev.conkeror</string>
Something went wrong with that request. Please try again.