Skip to content

Instantly share code, notes, and snippets.

View zaherg's full-sized avatar
🎯
Focusing

Zaher Ghaibeh zaherg

🎯
Focusing
View GitHub Profile
@zaherg
zaherg / .gitconfig
Created March 20, 2014 15:15
general git config file which can speed things
[alias]
addremove = !git r && git add . --all
aliases = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\ \t => \\2/' | sort
all = add . --all
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
br = branch -av
brname = !git branch | grep "^*" | awk '{ print $2 }'
brdel = branch -D
ci = commit
changes = "!f() { git log --pretty=format:'* %s' $1..$2; }; f"
@zaherg
zaherg / .bash_profile
Created April 2, 2014 08:45
part of my bash_profile
alias vagd='cd ~/Sites/vagrant'
alias up='vagrant up'
alias down='vagrant halt'
alias vagpro='curl -L http://bit.ly/vaprobash > Vagrantfile'
# Open specified files in Sublime Text
# "s ." will open the current directory in Sublime
alias s='open -a "Sublime Text"'
# Color LS
git fetch --all
git reset --hard origin/master
git pull origin master
#!/bin/bash
## Author: Ken Goldfarb <[email protected]>
## https://github.com/kengoldfarb
##
## This script will install Nginx+Pagespeed with PHP-FPM 5.5.x
## It's testsed working on a stock AWS Ubuntu 13.10 image
##
## BONUS: Oh-my-zsh installation included!
@zaherg
zaherg / zsh.md
Last active August 29, 2015 14:12 — forked from tsabat/zsh.md
@zaherg
zaherg / x.bash
Last active August 29, 2015 14:14 — forked from zackkitzmiller/x.bash
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@zaherg
zaherg / download_rethinkdb_for_raspberry_pi_2.sh
Last active October 29, 2015 04:39 — forked from dalanmiller/download_rethinkdb_for_raspberry_pi_2.sh
A quick script to download and compile RethinkDB on Raspberry Pi 2
sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget
#At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
tar xf rethinkdb-latest.tgz
rm rethinkdb-latest.tgz
cd rethinkdb-*
./configure --with-system-malloc --allow-fetch
#Export the proper C++ flags for Raspberry Pi 1/2
@zaherg
zaherg / code.sh
Created February 10, 2016 14:04
a few note to myself
#for ubuntu 14.04
sudo -s
apt-get update --fix-missing && apt-get upgrade -y
apt-get install software-properties-common python-software-properties
add-apt-repository ppa:nginx/stable
apt-get update && apt-get install -y nginx
@zaherg
zaherg / install.sh
Last active March 1, 2016 13:05
installing nodejs on ubuntu 12
#! /usr/bin/env bash
# Make sure the system up to date
sudo apt-get install && apt-get -y upgrade
echo ">>> Installing Base Packages"
# Install base packages
sudo apt-get install -y unzip git-core ack-grep vim tmux curl wget build-essential python-software-properties g++ gyp