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 bash | |
############################################################################### | |
# | |
# Intro: | |
# Automatically find the ideal JPEG quality setting for a JPEG image by | |
# calculating the output images dissimilarity from the input JPEG. This | |
# frees us from having to rely on the unstandardized quality integer. |
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 base64 | |
import sys | |
import os | |
try: | |
import simplejson as json | |
except ImportError: | |
import json | |
# Takes decompressed https://opendata.rapid7.com/sonar.http/ scan file on stdin |
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 -e | |
IFACE=wlp0s18f2u1 | |
TBLN=10 | |
# TBLN needs to be different for each interface | |
IPADDR=`ip addr show dev $IFACE | grep "inet " | awk '{print $2}' | cut -d '/' -f1` | |
IPSUBNET=`ip route show | grep "dev $IFACE" | grep "src $IPADDR" | awk '{print $1}'` | |
IPGATEWAY=`ip route | grep "default via" | grep "dev $IFACE" | awk '{print $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/env python2 | |
import time | |
import serial | |
class PasswordGen(object): | |
def __init__(self): | |
self.charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
self.cur_pw = [0 for i in range(16)] | |
self.cur_i = 0 | |
def restore(self, pw): |
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 sys | |
import struct | |
import binascii | |
import zlib | |
import getopt | |
try: | |
import zstandard | |
except ModuleNotFoundError: | |
zstandard = None |
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 [ ! -f toolchain-wrapper ]; then | |
echo "Not a bin folder or wrapper already removed" | |
exit 1 | |
fi | |
echo ":: Replacing symlinks to toolchain-wrapper" | |
for file in *; do |
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 sys | |
import os.path | |
import struct | |
import zlib | |
import sqlite3 | |
class BufferConsumer(): | |
def __init__(self, buf): | |
assert(type(buf) == bytes) |
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 -e | |
triple=x86_64-unknown-linux-musl | |
CC=/tmp/tc/bin/x86_64-unknown-linux-musl-gcc | |
v_nettle=3.4.1 | |
v_gnutls=3.6.6 | |
v_libev=4.25 | |
v_ocserv=0.12.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
import vapoursynth as vs | |
import csv | |
core = vs.get_core() | |
if "input" not in dir(): | |
print("ERROR: Provide input file via --arg input=./spec.txt") | |
assert False | |
vsrc = None | |
asrc = None |