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 -u | |
import hashlib | |
import random | |
class ZAR_Keygen(): | |
def __init__(self): | |
self._random_init = False | |
self.serials = {} | |
self.md5s = {} |
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
--- | |
- hosts: [all] | |
gather_facts: false | |
vars: | |
- foo: bar | |
remote_user: root | |
tasks: | |
- apt: name=wondershaper state=present | |
- shell: sed -i 's/10mbit/1000mbit/' /sbin/wondershaper | |
# find public interface: |
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 | |
git pull --all # fetch last changes from all branches | |
git pull --tags # fetch all tags | |
# switch to prod: | |
git checkout prod | |
#git tag # display tags |
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/env python | |
#-*- coding: utf-8 -*- | |
from twitter import * | |
consumer_key='XXXXXXXXXX' | |
consumer_secret='XXXXXXXXXXXXXX' | |
token = 'XXXXXXXXXXXXXXXXX' | |
token_secret = 'XXXXXXXXXXXXXXX' |
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 sys | |
import argparse, json, base64, struct | |
import urllib2 | |
from datetime import datetime | |
LOGS = [ | |
'https://ct.googleapis.com/aviator', | |
'https://ct.googleapis.com/pilot', |
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/env python | |
# conf. for ES exports: | |
ADD_ES_ID = False | |
import sys, json, time | |
try: | |
filename = sys.argv[1] | |
except: |
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/env python | |
import calendar, time, sys | |
try: | |
d = sys.argv[1] | |
except: | |
print 'Syntax: %s [time string, i.e. 2015-09-07 14:00:00]' | |
exit(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
{ | |
"title": "julien", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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 | |
from ctypes import * | |
libc = CDLL('libc.so.6') | |
quotactl = libc.quotactl | |
""" | |
struct dqblk | |
{ |
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/env python | |
import os | |
def move_segments(root_dir, outdir): | |
for dirpath, dirnames, filenames in os.walk(root_dir): | |
for d in dirnames: | |
path = os.path.join(dirpath, d) | |
marker = os.path.join(path, 'isPushedMarker') | |
if os.path.exists(marker): |
NewerOlder