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
#cloud-config | |
hostname: node-01 | |
ssh_authorized_keys: | |
- ssh-rsa <redacted> | |
coreos: | |
etcd2: | |
discovery: https://discovery.etcd.io/<redacted> | |
advertise-client-urls: http://node-01.mux.lan:2379 |
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 struct | |
import hashlib | |
from datetime import datetime | |
t = datetime.now() | |
ci = 0 | |
for i in xrange(0, 2**42): | |
buf = struct.pack('Q', i) | |
m = hashlib.sha256() |
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
from torrent.database import mongo | |
from flask import Blueprint, Response, current_app, request | |
from bencode import bencode | |
from IPy import IP | |
from socket import inet_pton, inet_ntop, ntohs, htons, AF_INET, AF_INET6 | |
from struct import pack | |
bp = Blueprint('tracker', __name__) | |
class TrackerFailure(Exception): |
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
# This script disables execution of commands and echoes messages to the user, to disable type: "wat" | |
# | |
# To install this, you need to have access to the user's home directory. | |
# sudo -u <user> -i sh -c 'cp /path/to/evil ~/.evil && cp ~/.bashrc ~/.bashrc.ebak && echo ". ~/.evil" >> ~/.bashrc' | |
shopt -s extdebug | |
function disable_evil() { | |
rm ~/.evil | |
rm ~/.bashrc |
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
AL = function(type, url, callback) { | |
var el, doc = document; | |
switch(type) { | |
case 'js': | |
el = doc.createElement('script'); | |
el.src = url; | |
break; | |
case 'css': | |
el = doc.createElement('link'); |
NewerOlder