Skip to content

Instantly share code, notes, and snippets.

@bipinu
bipinu / about.md
Created October 24, 2011 09:08 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@bipinu
bipinu / .gitconfig
Last active June 22, 2020 15:47 — forked from oli/gist:1637874
[user]
name = [name for commits]
email = [email for commits]
[github]
user = [GH username]
token = [API token from https://github.com/account/admin]
[color]
ui = auto
interactive = auto
[push]
@bipinu
bipinu / compile-php-thread-safe-and-pthreads.sh
Last active May 10, 2018 16:30 — forked from Divi/compile-php-thread-safe-and-pthreads.sh
Linux: Build Thread Safe PHP with PHP5-FPM
#!/usr/bin/env bash
# PARAMETERS
# ----------
# PHP
# ---
PHP_TIMEZONE="UTC"
PHP_DIRECTORY="/etc/php5ts"
PHP_VERSION="5.6.5"
@bipinu
bipinu / install-ts-php.sh
Last active September 13, 2022 13:15
Install Thread Safe PHP 5.6, along with pthreads extension on OS X
# Note: Based on http://justinhileman.info/article/reinstalling-php-on-mac-os-x/
# Refer to the page in case of any issues
# Assumed that you have Brew install; else run the following commands
# xcode-select --install
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
@bipinu
bipinu / work-os-x.sh
Last active June 25, 2017 22:30
OS X setup for work
xcode-select --install
curl -L http://install.ohmyz.sh | sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
@bipinu
bipinu / install-bison.sh
Created February 16, 2015 14:49
Install bison 2.7 on Ubuntu 14.04
#!/bin/bash
mkdir /tmp/bison
cd /tmp/bison
apt-get update
apt-get install -y build-essential m4
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz
tar -xvf bison-2.7.tar.gz
@bipinu
bipinu / spdy.sh
Last active August 29, 2015 14:15
Linux: Compile mod_spdy (HTTP2) for Apache 2.4
# APACHE must be configured with PHP5-FPM, and not be using ModPHP
# I've another gist that configures it
# TODO: Combine both scripts and make a backup of original SSL conf file
sudo apt-get -y install git g++ apache2 libapr1-dev libaprutil1-dev patch binutils make devscripts
# Build spdy
# ---------------------------------------------------------
git clone https://github.com/eousphoros/mod-spdy.git /tmp/mod-spdy
@bipinu
bipinu / supervisord-init-script.sh
Last active August 29, 2015 14:16
Supervisor init
#! /bin/sh
#
# Downloaded from:
# http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/supervisor/trusty/view/head:/debian/supervisor.init
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <[email protected]>.
# Modified for Debian
@bipinu
bipinu / supervisor.sh
Last active January 27, 2016 15:01
Set up Supervisord on Ubuntu through pip
#TODO: Use this init script https://gist.github.com/bipinu/df44686185d263ef1ba2
apt-get update && apt-get upgrade
apt-get install python-pip
pip install supervisor --pre
mkdir /etc/supervisor
echo_supervisord_conf > /etc/supervisor/supervisord.conf
ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
mkdir /var/log/supervisor
@bipinu
bipinu / gnome-shell
Created March 20, 2015 11:17
Gnome Shell
sudo apt-get install gnome-shell xinit
# DISABLE ANIMATIONS
gsettings set org.gnome.settings-daemon.plugins.remote-display active false
gsettings set org.gnome.desktop.interface enable-animations false