This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make -C /lib/modules/`uname -r`/build M=$PWD CONFIG_NTFS_FS=m CONFIG_NTFS_RW=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
import datetime | |
msg = { | |
'from': '[email protected]', | |
'to': '[email protected]', | |
'server': '127.0.0.1', | |
'body': '''Subject: test message | |
From: %(from)s | |
To: %(to)s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import fileinput | |
import re | |
import json | |
with open('cols.json') as f: cols = json.load(f) | |
oldtablename = None | |
for line in fileinput.input(): | |
if '@ORM\Table' in line: | |
m = re.match(r'.*Table\(name="([^"]*).*', line) | |
oldtablename = m.group(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import fileinput | |
import json | |
output = {} | |
for line in fileinput.input(): | |
if line.startswith('CREATE TABLE'): | |
table = line.split('`')[1] | |
if line.startswith(' `'): | |
if not table in output: output[table] = {} | |
s = line[2:].split('`') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socat TCP4-LISTEN:$2,reuseaddr,fork,bind=0.0.0.0 SOCKS:localhost:$3:$4,socksport=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$2" ] ; then | |
ausearch -m avc -ts $2|audit2allow -m $1 > $1.tt.tmp | |
diff -ud $1.tt $1.tt.tmp | |
read | |
mv -f $1.tt.tmp $1.tt | |
fi | |
checkmodule -M -m $1.tt -o $1.mod | |
semodule_package -o $1.pp -m $1.mod | |
semodule -i $1.pp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$return = array(array(0,0,0),array(0,0,0),array(0,0,0)); | |
switch ($argv[1]) { | |
case 1: | |
$return[1][1] = '1'; | |
break; | |
case 5: | |
$return[0][2] = '1'; | |
$return[2][0] = '1'; | |
case 3: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
import subprocess | |
import os | |
import json | |
import sys | |
import pygit2 | |
FNULL = open(os.devnull, 'w') | |
#FNULL = sys.stdout | |
def status(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def mycmp(a, b): | |
if a.isdigit() and b.isdigit(): | |
a = int(a) | |
b = int(b) | |
return cmp(a, b) | |
def cmpk(a, b, h): | |
for i in h: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
rm -f codecoverage.sqlite3 | |
sqlite3 codecoverage.sqlite3 <<EOF | |
CREATE TABLE code_coverage(run integer, filename varchar(255), line integer); | |
CREATE TABLE run(dt datetime); | |
EOF | |
chown 1000:apache codecoverage.sqlite3 | |
chmod 660 codecoverage.sqlite3 | |
sqlite3 codecoverage.sqlite3 .dump |