Skip to content

Instantly share code, notes, and snippets.

View Seirdy's full-sized avatar

Seirdy

View GitHub Profile
@ShadowJonathan
ShadowJonathan / haproxy.cfg
Last active April 3, 2024 19:08
A reverse proxy daisy chain config that buffers fediverse traffic
# Place this after your default configuration
frontend fedi_fe
mode http
# this is the address that haproxy will listen on,
# when doing this local loopback, its recommended to set to localhost (127.0.0.1)
bind 127.0.0.1:28080
default_backend fedi_fe
@philpennock
philpennock / dns-email.sh
Last active November 20, 2023 16:34
Bash script, using dig & curl, for reporting DNS and a few HTTPS policy files for everything email about a domain
#!/usr/bin/env bash
#
# Copyright 2020,2021,2022 Pennock Tech, LLC
# No warranty, this is a proof-of-concept not a final product.
# MIT-style license.
set -euo pipefail
# This might need to switch to another language for concurrency and handling
# the queries which are rarer, but this is a decent start as a proof-of-concept.
@michael-lazar
michael-lazar / alternatives_to_rtv.md
Last active June 16, 2024 04:38
Alternatives to RTV
@marcinguy
marcinguy / modsecurity-vs-naxsi.md
Created January 6, 2020 09:40
modsecurity-vs-naxsi

Golden setup

ModSecurity + Modified Naxsi

Performance:

ab -n 1000 http://localhost/oauth/token
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
@v-fox
v-fox / motioninterpolation.vpy
Last active September 19, 2023 00:48 — forked from phiresky/motioninterpolation.vpy
On-CPU motion interpolation for ≤480@144, ~720@120, ≥1080p@60 playback in mpv
#!/usr/bin/python
# vim: set ft=python:
# see the README at https://gist.github.com/v-fox/43c287426c366679afc4c65eece60cbc
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth as vs
import functools
#!/usr/bin/env bash
# Setup script for a checkout of the Chromium HSTS preload list.
# Source -> medium.com/p/8c8896f5cef3 and gist.github.com/hemanth/7611535
echo "---- Creating folder and initializing a git repository. ----"
mkdir chromium-hsts && cd chromium-hsts
git init
echo "---- Adding chromium remote and initializing sparse checkout of /net/http. ----"
git remote add origin https://chromium.googlesource.com/chromium/src
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active June 18, 2024 18:01
Hyperlinks in Terminal Emulators
Namespaces:
http://backend.userland.com/rss2
http://drupal.org/project/og
http://meo.pt/feed
http://my.netscape.com/rdf/simple/0.9/
http://pipes.yahoo.com
http://purl.org/atom-blog/ns#
http://purl.org/atom/ns#
http://purl.org/rss/1.0/
@tjdett
tjdett / atom.rng.xml
Created January 24, 2013 04:06
Atom schema in RELAX NG XML Syntax Grammar
<?xml version="1.0" encoding="UTF-8"?>
<!--
-*- rnc -*-
RELAX NG XML Syntax Grammar for the
Atom Format Specification Version 11
Converted from Relax NG Compact Syntax Grammar,
as seen in RFC 4287.
-->
<grammar ns="http://www.w3.org/1999/xhtml" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">