I hereby claim:
- I am fclairamb on github.
- I am fclairamb (https://keybase.io/fclairamb) on keybase.
- I have a public key ASA3MsMSqP-rEvGEE4ps2nlLlSwZ_j2_TNiGGbJPUw8pIAo
To claim this, I am signing this object:
#!/usr/bin/python | |
import urllib | |
import requests | |
import re | |
import sqlite3 | |
import os | |
import argparse | |
import gettext | |
import logging | |
import logging.handlers |
I hereby claim:
To claim this, I am signing this object:
# sample config file | |
[do] | |
198.199.74.236 tinc_ip=10.1.1.1 hostname=ca_1_1 tinc_connectto=ca_2_2 | |
192.34.60.13 tinc_ip=10.1.1.2 hostname=ca_1_2 tinc_connectto=ca_1_1 | |
198.199.70.163 tinc_ip=10.1.1.3 hostname=ca_1_3 tinc_connectto=ca_1_2 | |
198.199.71.204 tinc_ip=10.1.2.1 hostname=ca_2_1 tinc_connectto=ca_1_3 | |
198.199.70.208 tinc_ip=10.1.2.2 hostname=ca_2_2 tinc_connectto=ca_2_1 |
# /etc/logrotate.d/00-default-parameters | |
weekly | |
rotate 12 | |
create | |
compress | |
delaycompress | |
dateext | |
compresscmd /usr/bin/xz | |
uncompresscmd /usr/bin/unxz | |
compressext .xz |
#!/bin/sh | |
# Quick IP banning script | |
# This is a very simple and effective way to ban IP address from any kind of webapp. | |
# | |
# * To ban an IP for two minutes | |
# echo "120" >/tmp/iptables-banip/1.2.3.4 && /usr/local/bin/banip | |
# | |
# * To bypass the ban timeout and unban an IP sooner | |
# echo "0" >/tmp/iptables-unbanip/1.2.3.4 && /usr/local/bin/banip |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os" | |
"runtime" |
def rgb16(r, g, b): | |
r = (r & 255) >> 3 # RED (5 bits) | |
g = (g & 255) >> 2 # GREEN (6 bits) | |
b = (b & 255) >> 3 # BLUE (5 bits) | |
c = (r << (6+5)) | (g << 5) | b | |
return "0x{0:04x}".format(c) |
#ifdef SHELL | |
SCENARIO=$1 | |
if [ "${SCENARIO}" = "" ]; then | |
SCENARIO=1 | |
fi | |
gcc -pthread -O3 -DSCENARIO=${SCENARIO} -Wall -Werror $0 && ./a.out | |
exit 0 | |
#endif | |
#include <pthread.h> | |
#include <stdio.h> |
OBJS=build/cvgui.o build/finder.o build/imgdb.o build/pyramid-template-matcher.o build/sikuli-debug.o build/tessocr.o build/vision.o build/visionJAVA_wrap.o | |
INCS=-I/usr/local/include -I/usr/include -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux | |
OPTS= -O3 -fPIC -MMD -MP $(INCS) | |
LIB=dist/libVisionProxy.so | |
all: $(LIB) |
#ifdef SHELL | |
gcc -Wall -Werror $0 && ./a.out 10 | |
exit 0 | |
#endif | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main( int argc, char * argv [] ) { | |
int size = atoi(argv[1]); |