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 | |
LIBRESSL_VERSION=4.0.0 | |
NGINX_VERSION=1.27.5 | |
NGINX_CONFIG=( | |
--with-pcre-jit --with-threads | |
--with-http_ssl_module | |
--with-http_v2_module | |
--with-http_realip_module | |
--with-http_stub_status_module | |
--with-http_auth_request_module |
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 | |
# Creates a systemd-nspawn container with Alpine | |
MIRROR=http://dl-cdn.alpinelinux.org/alpine | |
VERSION=${VERSION:-v3.21} | |
APKTOOLS_VERSION=2.14.6-r3 | |
wget_or_curl () { | |
if command -v wget >/dev/null; then |
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 | |
src="2QO90IaN_UM.mkv" | |
dst="a.webm" | |
opts="-vf scale=1280:720 -threads 10" | |
aopts="-c:a libopus -b:a 128k" | |
vopts="-c:v libvpx-vp9 -b:v 1024k -tile-columns 6 -frame-parallel 1 -row-mt 1" | |
vopts_final="-auto-alt-ref 1 -lag-in-frames 25" | |
ffmpeg -i "$src" $opts \ |
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 |
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
#!/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 | |
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 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
#!/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
#!/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}'` |