(gist title)
This gist assumes the following directory structure:
- foobar-ws/
- bar/
- bar.go
- go.mod
- foo/
- bar/
- foo.go
// branding/custom.css | |
.ace_editor { | |
font-size: 100% !important; | |
} |
// RGB Chooser for DuckyPad Pro | |
// DuckyPad Pro: https://github.com/dekuNukem/duckyPad-Pro/ | |
VAR $r = 0 | |
VAR $g = 0 | |
VAR $b = 0 | |
VAR $rselect = 18 | |
VAR $gselect = 19 | |
VAR $bselect = 20 |
import os | |
import tempfile | |
import atexit | |
import shutil | |
import time | |
import select | |
def writer(fifoname): | |
print("writer: start...") | |
w = open(fifoname, 'w') |
(gist title)
This gist assumes the following directory structure:
gist title |
# nsfdref.py | |
# | |
# Creates two network namespaces, referencing the first one by fd, and | |
# showing the output of "lsns" versus "lsuserns". "lsuserns" is able | |
# to discover the first network namespace from the fd which keeps the | |
# namespace alive. | |
# | |
# Requires these Python3 packages: | |
# - pip3 install unshare | |
# - pip3 install python-prctl |
#!/bin/bash | |
# Test the hypothesis that PID namespace hierarchy cannot "run on reverse" to | |
# the user namespace hierarchy. In particular, a PID child namespace cannot be | |
# owned by a parent user namespace. However, a PID namespace can be a child of a | |
# PID namespace owned by a parent user namespace. | |
echo "trying to create a child PID namespace which is owned by a parent user namespace..." | |
NSTEXTREPR='([[:alpha:]]+):\[([[:digit:]]+)\]' | |
SECTION="--------------------" |
#!/bin/bash | |
CONTEXT="minikube" | |
PROXYCONTEXT="proxykube" | |
function cleanup { | |
kubectl config delete-context $PROXYCONTEXT 2>/dev/null | |
kubectl config delete-cluster $PROXYCONTEXT 2>/dev/null | |
} |
#!/bin/bash | |
# Correctly transcode in-device screen recordings from Android, so they | |
# do not cause all kinds of mishaps later down the editing and rendering | |
# pipeline. In particular, enforces a fixed framerate to avoid problems | |
# with widely varying dynamic frame rates, which can go from anywhere | |
# a frame every 10s of seconds to 100fps or so. Additionally, we | |
# enforce the correct color coefficients for the transcoding to avoid | |
# video tools to guesstimate completely nonsense transformation -- ffmpeg, | |
# I'm looking at you here. | |
shopt -s extglob |
#!/bin/bash | |
# TheDiveO | |
function log { | |
local OPTS="" | |
if [[ "$1" = "-n" ]]; then | |
shift; OPTS+="-n" | |
fi | |
MSG="$1" | |
shift |