Skip to content

Instantly share code, notes, and snippets.

@prabhakhar
prabhakhar / mem-leak-warn.js
Created June 21, 2012 01:13
Possible EventEmitter memory leak detected.
var http = require('http');
var options = {
host : 'www.nodejs.org',
port : 80,
method : 'HEAD',
path : '/api/http.html'
};
@prabhakhar
prabhakhar / prompt.zsh
Created December 15, 2014 22:38
zsh Prompt
autoload colors && colors
# cheers, @ehrenmurdick
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh
if (( $+commands[git] ))
then
git="$commands[git]"
else
git="/usr/bin/git"
fi
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
wget
wget http://download.virtualbox.org/virtualbox/4.3.28/virtualbox-4.3_4.3.28-100309~Ubuntu~raring_amd64.deb
@prabhakhar
prabhakhar / springer-free-maths-books.md
Created December 28, 2015 19:23 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

Stanza 1-2:

In the first two stanzas of Okara’s monologue, the speaker addresses an European colonialist that laughs at African way of life

In your ears my song
is motor car misfiring
stopping with a choking cough;
and you laughed and laughed and laughed.
In your eyes my antenatal
PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '
#!/bin/bash
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
add-apt-repository "deb https://apt.kubernetes.io/ kubernetes-xenial main
apt-get update; apt-get install -y kubelet kubeadm kubectl;apt-mark hold kubelet kubeadm kubectl

Dedication for Moremi - Wole Soyinka

Moremi here has three distinct, yet intertwined meanings.

First, Moremi is the name of Wole Woyinka's daughter.

Secondly, Moremi is a game reserve in Botswana created to protect Africa's rich land and ecosystem, notably formed by the indigenous population.

Finally, Moremi is a Goddess in the Yoruba tradition.