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/python3 | |
import json | |
import pathlib | |
import subprocess | |
import sys | |
from urllib import parse | |
file = sys.argv[1] if len(sys.argv) > 1 else '-' | |
out = pathlib.Path('out') |
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
# Tar pit | |
@shit { | |
path */.env | |
path /wp-login.php | |
} | |
handle @shit { | |
root * /srv/www | |
vars compression gzip | |
@is_br header Accept-Encoding *br* | |
vars @is_br compression br |
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/perl | |
use 5.12.0; | |
use strict; | |
use warnings; | |
use Benchmark ':hireswallclock'; | |
my $time; | |
my $rounds = 0; |
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/sh | |
INDEV="/dev/v4l/by-id/usb-MACROSILICON_USB3._0_capture-video-index0" | |
INRES="1920x1080" # input resolution | |
FPS="30" # target FPS | |
GOP="$((FPS * 2))" | |
THREADS="2" | |
CBR="6000k" | |
STREAM_KEY="XXX" | |
if [ "$1" = live ] |
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
# Background: https://github.com/ThomasKaiser/Knowledge/blob/master/articles/A1_and_A2_rated_SD_cards.md | |
# Symptoms: Write speed seems to be capped at ~ 20MByte/s if controller does only support 3.3V | |
# To see if your controller supports higher speeds, enable these debug message: | |
echo "func mmc_set_ios +p" | sudo tee /sys/kernel/debug/dynamic_debug/control | |
echo "func mmc_set_initial_signal_voltage +p" | sudo tee /sys/kernel/debug/dynamic_debug/control | |
# Verify: | |
sudo grep mmc.*=p /sys/kernel/debug/dynamic_debug/control | |
# (this assumes debugfs under /sys/kernel/debug) | |
# On the next card insert, you should see power/speed debug messages in dmesg |
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
def call(Map params = [:], Closure inner) { | |
catchError { | |
inner.call() | |
} | |
def notifyCulprits = params.getOrDefault('notifyCulprits', true) | |
def extraMails = params.getOrDefault('extraMails', []) | |
if (shouldSendMail(currentBuild)) { | |
def providers = [] |
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 json | |
from werkzeug.wrappers import Request, Response | |
from werkzeug.middleware.proxy_fix import ProxyFix | |
@Request.application | |
def application(request): |
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
>mvn dependency:tree | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] -----------------------------< test:test >------------------------------ | |
[INFO] Building test 1 | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] | |
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ test --- | |
[INFO] test:test:jar:1 | |
[INFO] \- org.eclipse.jetty:jetty-hazelcast:jar:9.4.15.v20190215:compile |
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
<VirtualHost 192.168.99.99:80 [2001:0002:6c::430]:80> | |
ServerName example.com | |
ServerAlias www.example.com host1.example.com host2.example.com | |
ServerAdmin [email protected] | |
AddDefaultCharset utf-8 | |
DocumentRoot /home/certmaster/webroot/ | |
RewriteEngine on | |
RewriteRule ^/.well-known/ - [L] | |
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] | |
</VirtualHost> |
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/python3 | |
import argparse | |
# pip install urlextract dnspython tldextract | |
import dns.name | |
import dns.resolver | |
import urlextract | |
import tldextract |
NewerOlder