Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for
#ifndef _POLL_H | |
#define _POLL_H | |
#include "hash_table/hashtable.h" | |
#include <sys/epoll.h> | |
#define MAX_EVENTS 100 | |
#define CALLBACK(x) void (*x) (poll_event_t *, poll_event_element_t *, struct epoll_event) | |
#define ACCEPT_CB 0x01 |
<?php | |
class Struct | |
{ | |
/** | |
* Define a new struct object, a blueprint object with only empty properties. | |
*/ | |
public static function factory() | |
{ | |
$struct = new self; | |
foreach (func_get_args() as $value) { |
import java.io.*; | |
import java.net.*; | |
import java.util.*; | |
/** | |
* A Java statement interpreter. Add a list of statements with | |
* <code>newStatement</code> and run them with | |
* <code>run</code>. After running the interpreter, all | |
* previously added statements are forgotten. | |
*/ |
// compile me: g++ -shared -fPIC -ldl -o monkeypatchor.so monkeypatchor.cpp | |
// use me: LD_PRELOAD=`pwd`/monkeypatchor.so /bin/ls | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
void* (*malloc_super)(size_t); | |
void (*free_super)(void*); |
import paramiko | |
import time | |
import re | |
bastion_ip='ip' | |
bastion_pass='pass' | |
ssh = paramiko.SSHClient() | |
ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() ) | |
ssh.connect(bastion_ip, username='root', password=bastion_pass) |
#lo sauer, 2013 - www.lsauer.com | |
#see: http://www.lsauer.com/2013/05/mysql-fuzzy-searching-fulltext-queries.html | |
#Note: In MySQL SUBSTRING, the string-index starts at position 1 | |
SELECT * FROM tablename | |
WHERE SOUNDEX(tablename_field) | |
LIKE CONCAT('%',SUBSTRING(SOUNDEX('Fuzti serch derm'),2),'%'); |
This Gist has been moved to https://github.com/lbgists/gh-trend.py.
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |