In one terminal, run out_pipe
.
From vim:
:call PipeCommand("echo " . expand("%"))
See the current file name being printed out by out_pipe
.
Win.
#!/bin/bash -xe | |
EBS_DEVICE='/dev/sdh' | |
INSTANCE_ID=$1 | |
AKI=${2:-'aki-5f15f636'} | |
ARI=${3:-'ari-0915f660'} | |
ARCH=${4:-'i386'} | |
SIZE=${5:-10} | |
AZ=${6:-'us-east-1d'} | |
NAME=${7:-"ami-from-$INSTANCE_ID"} |
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
// doublecheck the ClientLocation results because it may returning null results | |
;(function(geolocation){ | |
if (geolocation) return; |
#!/bin/bash | |
function git_submodule_unchanged () { | |
SUB_MODULE=$1 | |
GSC_RC=0 | |
pushd $SUB_MODULE > /dev/null | |
SUB_BRANCH=$(git branch | grep '*' | cut -d' ' -f 2) | |
if [[ "$(git log --pretty=oneline origin/${SUB_BRANCH}..${SUB_BRANCH})" != "" ]]; then | |
GSC_RC=1 | |
fi |
sudo aptitude -y install nginx | |
cd /etc/nginx/sites-available | |
sudo rm default | |
sudo cat > jenkins | |
upstream app_server { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; |
# Only the git works for now (more or less) | |
$ git clone https://github.com/jedi4ever/mccloud | |
# the mccloud dir contains an .rvmrc which will creare a new gemset | |
$ cd mccloud | |
# Install all dependencies | |
$ bundle install |
#!/bin/sh | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# Modified by jay@gooby.org http://github.com/jaygooby | |
# based on http://gist.github.com/308216 by http://github.com/mguterl | |
# | |
## A sample /etc/unicorn/my_app.conf | |
## |
$hosts_table = { | |
:dbm => "192.168.86.101", | |
:app1 => "192.168.86.102", | |
:app2 => "192.168.86.103", | |
:lb => "192.168.86.104", | |
} | |
def bootstrap(config, host) | |
config.vm.box = "lucid64" | |
config.vm.network $hosts_table[host] |
In one terminal, run out_pipe
.
From vim:
:call PipeCommand("echo " . expand("%"))
See the current file name being printed out by out_pipe
.
Win.
#!/bin/bash | |
# Script for placing sudoers.d files with syntax-checking | |
if [ -z "$1" ]; then | |
# Making a temporary file to contain the sudoers-changes to be pre-checked | |
TMP=$(mktemp) | |
cat > $TMP <<EOF | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /bin/su root -c echo '*' >> /etc/exports | |
Cmnd_Alias VAGRANT_NFSD = /etc/init.d/nfs-kernel-server restart | |
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -e /*/ d -ibak /etc/exports |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Create an EC2 instance, set up Apache, and create Route53 A records", | |
"Parameters" : { | |
"KeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type" : "String", |