- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
import urllib2 | |
import threading | |
from Queue import Queue | |
import sys, os, re | |
class ThreadedDownload(object): | |
REGEX = { | |
'hostname_strip':re.compile('.*\..*?/', re.I) | |
} |
package MineCrap::Protocol; | |
use common::sense; | |
use Moose; | |
use Moose::Util::TypeConstraints; | |
#use namespace::autoclean; | |
use Data::ParseBinary; | |
use MineCrap::Protocol::CompressionAdapter; | |
use MineCrap::Protocol::DoubleAdapter; | |
use MineCrap::Protocol::UCS2Adapter; |
#!/bin/sh | |
DIR="tmp_"$$ | |
JAR=`echo $1 | tr '.' ' ' | awk '{ print $1 }'` | |
rm -rf $JAR.jar | |
mkdir $DIR | |
cp $1 $DIR | |
cd $DIR | |
echo "** Compiling java file..." | |
javac -d . -g $1 | |
echo "** Creating temporary jar..." |
var xhr = function() { | |
var xhr = new XMLHttpRequest(); | |
return function( method, url, callback ) { | |
xhr.onreadystatechange = function() { | |
if ( xhr.readyState === 4 ) { | |
callback( xhr.responseText ); | |
} | |
}; | |
xhr.open( method, url ); | |
xhr.send(); |
CFLAGS += -std=c99 -Wall -Werror -Wextra -pedantic -O0 -g | |
all: test | |
parser.o: parser.c | |
$(CC) $(CFLAGS) $(LDFLAGS) -c -o parser.o parser.c | |
test.o: test.c | |
$(CC) $(CFLAGS) $(LDFLAGS) -c -o test.o test.c |
0 - Read http://blog.databigbang.com/running-your-own-anonymous-rotating-proxies/ | |
1 - Install monit, haproxy, tor and delegated. | |
2 - Setup your environment in the setup.rb file | |
3 - Just run > ruby setup.rb | |
4 - ........... | |
5 - PROFIT! > http://www.southparkstudios.com/clips/151040/the-underpants-business |
#!/usr/bin/env bash | |
version="0.0.1" | |
TARGET_PROCESS=$1 | |
if [ ! $TARGET_PROCESS ]; then | |
echo | |
echo "Usage: sticker [process name]" | |
echo |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
#!/usr/bin/env python2 | |
from gi.repository import Gtk | |
class Grid(Gtk.Window): | |
widget_list = [] | |
WIDGET_SIZE = 140 | |
COLS = 1 | |
NUM = 100 | |
def calcule_columns(self, scroll, grid): |