see explanation
-p, --patch
Interactively choose hunks of patch between the index and the work tree and add them to the index. This gives
the user a chance to review the difference before adding modified contents to the index.
#!/usr/bin/env bash | |
# ------------------------------------------------- | |
# set ruby version | |
RUBYVERSION=1.9.3-p429 | |
# RUBYVERSION=system | |
CHEFDIR=/var/lib/chef | |
export PATH=/usr/local/sbin:/usr/local/bin:$PATH | |
DISTRIBUTION=`lsb_release -si` |
see explanation
-p, --patch
Interactively choose hunks of patch between the index and the work tree and add them to the index. This gives
the user a chance to review the difference before adding modified contents to the index.
apt-get install build-essential module-assistant | |
m-a prepare |
#!/bin/bash | |
set -ex | |
[[ $(id -u) == 0 ]] || { echo "Buddy needs to be root to run this"; exit 1; } | |
[[ $PWD == "/root" ]] || { echo "Run this from /root"; exit 1; } | |
# 1. Download key | |
wget -q -O google_signing_key.pub https://dl-ssl.google.com/linux/linux_signing_key.pub | |
apt-key add google_signing_key.pub |
#!/usr/bin/env bash | |
# Author: Ori Tzoran, based on idea and gist by aaronzirbes (see evolution below) | |
# Tested on Mac OS X 10.10.2 (14C109) | |
set -e | |
## verify root runs this | |
[[ $(id -u) == 0 ]] || { echo need root; exit 1; } | |
#set -vx |
# vim: set filetype=sh : | |
# Purpose | |
# set environment variables for EC2_URL EC2_HOME JAVA_HOME CLASSPATH | |
# required by ec2-api-tools, used by other tools (e.g. vagrant) | |
# Usage: | |
# source this | |
# create local env.monsoon in a project's subdir defining: | |
# export AWS_PROJECT="MOCONS / rmjen" |
The proc is explained here
alias ll='ls -lah --color=tty --time-style=long' | |
alias grep='grep --color=tty' | |
alias mydate='date "+%F %H:%M"' | |
alias olsblk='lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,TYPE ' | |
alias dv='dirs -v' | |
alias po='popd ' | |
alias pu='pushd ' | |
alias s='git status ' | |
alias xr='xrandr --verbose --output VGA1 --primary --mode 1920x1080' |