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 python3 | |
import threading | |
def do_sql_injection(charset, length, function): | |
"""Uses *many* threads to conduct a blind SQL injection attack as fast as | |
possible. | |
Positional arguments: |
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 python3 | |
#TODO: Check for post limit | |
#TODO: Check for moderator restriction | |
import datetime | |
import urllib | |
import praw |
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 python3.4 | |
import xml.etree.cElementTree as ET | |
namespaces = { | |
'xmlns': 'http://www.topografix.com/GPX/1/0', | |
'groundspeak': 'http://www.groundspeak.com/cache/1/0/1' | |
} | |
def d_t_grid(gpx): |
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 | |
import urllib | |
import re | |
import logging | |
import argparse | |
import sys | |
from urlparse import urlparse, urljoin | |
import xml.etree.ElementTree as ET |
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 logging | |
def main(): | |
import argparse, os, codecs, sys | |
from xml.dom.minidom import parse | |
#Set up argument parser | |
parser = argparse.ArgumentParser(description="Remove elements from an fcpxml", | |
epilog="Latest version available at https://gist.github.com/Grezzo/92cf94c8e1e1f1a58d3e2c1a4098fcaf") |
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 | |
#Todo: | |
#Update link to latest version | |
#check that video only angles are changed to all | |
#check that video only is "vidoe" and audio only is "audio" and both is "all | |
#check that angles with no audio are not added | |
import logging |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="canv" width="200" height="130" style="border:solid; border-width:1px;"></canvas> | |
</body> | |
<script> | |
var instructions = "00006333 22533133 13323323 36223331 53333623 15362231 35332332 33133133 63133225 33133133 13323323 36233331 31536223 | |
13153333 62353323 32336223 32533233 22633331 53333622 33132253 32336113 33332333 00000000 00000000 33333333 31536231 53333613 31533336 23332253 |
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
/* | |
* Sketch for DigiSpark that will change display orientation by using usb | |
* keyboard emulation to press Ctrl+Alt+Up-Arrow or Ctrl+Alt+Left-Arrow | |
* (which are the default hotkeys to rotate the display on windows systems | |
* with Intel graphics drivers) when it senses (using a tilt switch) that | |
* the monitor has been physically rotated. | |
* | |
* It also illuminates the onboard LED when it thinks the monitor should | |
* be in portrait mode | |
* |
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
/* | |
* Monitor-Auto-Rotate v1 | |
* | |
* Sketch that will change display orientation by using usb keyboard emultaion to | |
* press Ctrl+Alt+Up-Arrow or Ctrl+Alt+Right-Arrow (which are the default hotkeys | |
* to rotate the display on windows systems with Intel graphics drivers) when it | |
* senses (using a reed switch and a magnet) that the monitor has been physically | |
* rotated. | |
* | |
* Requires updating the Arduino's atmega8u2 USB firmware so that it can emulate |
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 logging | |
def get_assets_dict(asset_elements): | |
#Create dictionary | |
asset_elements_dict = {} | |
#Add each asset to dictionary with id as key | |
for asset_element in asset_elements: | |
asset_id = asset_element.get("id") |
NewerOlder