Skip to content

Instantly share code, notes, and snippets.

server {
listen 80;
server_name fonts.googleapis.com themes.googleusercontent.com;
root /Users/sarim/Sites/php55/;
index app_dev.php index.html index.htm;
location / {
fastcgi_pass unix:/usr/local/var/run/php55.sock;
fastcgi_index index.php;
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
foo = 'bar'
__gittu_tab_title ()
{
TABTITLE=${PWD##*/}
if [ $PWD == $HOME ] ; then
TABTITLE="~"
fi
echo $TABTITLE
}
export PROMPT_COMMAND='echo -ne "\033]0;$(__gittu_tab_title)\007"'
// Complile:
// clang -o gittumouse gittumouse.c -framework ApplicationServices
#include <ApplicationServices/ApplicationServices.h>
static CGRect screenBounds;
// callback for mouse click.
CGEventRef
myCGEventCallback(CGEventTapProxy proxy, CGEventType type,
from lxml.html import fromstring, tostring
from pprint import pprint
from inspect import getmembers
from more_itertools import unique_everseen
form_page = fromstring(open('postProduct.html').read())
form = form_page.forms[0]
def printlabel(v):
@sarim
sarim / -
Created September 12, 2015 18:04
var asp = {
alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
lookup: null ,
ie: /MSIE/.test(navigator.userAgent),
ieo: /MSIE[67]/.test(navigator.userAgent),
encode: function(s) {
var buffer = asp.toUtf8(s), position = -1, len = buffer.length, nan0, nan1, nan2, enc = [, , , ];
if (asp.ie) {
var result = [];
while (++position < len) {
@sarim
sarim / raw2json.php
Created June 17, 2012 13:31
Converting raw dict text to json object
<?php
//This script will convert the avro autocorrect dict to json. Rifat bro already did it using textmate manually, but my approach is artistic :D
//Get the raw dict from github
$raw = file_get_contents("https://raw.github.com/omicronlab/Avro-Keyboard/master/Keyboard%20and%20Spell%20checker/autodict.dct");
//breaking the lines
$lines = explode("\n",$raw);
$arr = array();