Skip to content

Instantly share code, notes, and snippets.

View ncode's full-sized avatar

Juliano Martinez ncode

View GitHub Profile
@ncode
ncode / hack.sh
Created April 2, 2012 20:08 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@ncode
ncode / tinymq.py
Created February 7, 2012 03:40 — forked from gleicon/tinymq.py
tiny gevent based restmq
from bottle import route, run, debug, abort, request, ServerAdapter, response, get, post
import redis
import json
import gevent
from gevent import monkey
monkey.patch_all()
QUEUESET = 'QUEUESET'
UUID_SUFFIX = ':UUID'
QUEUE_SUFFIX = ':queue'
@ncode
ncode / check.c
Created June 29, 2011 04:17 — forked from gleicon/check.c
file check w/ threads
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <sys/stat.h>
#define NUM_THREADS 5
#define MAXPATHSIZE 1024