Skip to content

Instantly share code, notes, and snippets.

View Darkflib's full-sized avatar
I didn't drink lots of milk, and I still wasn't good enuf for Accrington Stanley

Mike Preston Darkflib

I didn't drink lots of milk, and I still wasn't good enuf for Accrington Stanley
View GitHub Profile
@Brandawg93
Brandawg93 / docker-compose.yml
Last active January 17, 2020 14:27
Secure Unbound using Docker and NordVPN
version: '3'
services:
unbound:
image: mvance/unbound-rpi:latest #use 'mvance/unbound:latest' if not on a raspberry pi
container_name: unbound
network_mode: service:vpn
restart: unless-stopped
vpn:
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active September 9, 2026 01:52
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@goliatone
goliatone / README.md
Last active December 28, 2025 03:22 — forked from colophonemes/create_triggers
Postgres TRIGGER to call NOTIFY with a JSON payload

This TRIGGER function calls PosgreSQL's NOTIFY command with a JSON payload. You can listen for these calls and then send the JSON payload to a message queue (like AMQP/RabbitMQ) or trigger other actions.

Create the trigger with notify_trigger.sql.

When declaring the trigger, supply the column names you want the JSON payload to contain as arguments to the function (see create_triggers.sql)

The payload returns a JSON object:

@chriswayg
chriswayg / create-cloud-template.sh
Last active September 2, 2026 13:40
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@jenschr
jenschr / TTGO_LORA32_BATT_OLED.ino
Created August 10, 2019 14:03
Battery monitor example for the Banggood version of TTGO LoRa32
const uint8_t blue = 2;
const uint8_t vbatPin = 35;
#include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`
float VBAT; // battery voltage from ESP32 ADC read
SSD1306 display(0x3c, 4, 15);
void setup()
{
Serial.begin(115200);
pinMode(blue, OUTPUT);
@rumly111
rumly111 / tsd.py
Created July 20, 2019 14:30
transmission sequential download
#!/usr/bin/python3
# Monitor transmission and enable sequential downloads
# by manipulating file download priorities
#
# Author: Joseph Botosh <rumly111@gmail.com>
# License: GPL
from time import sleep
from argparse import ArgumentParser
@TETYYS
TETYYS / brian.md
Last active January 13, 2026 13:54
All Brian TTS characters
Character code (character) Duration (ms) Alias to Pronounced as
27 (�) 656 None Escape
33 (!) 1333 None Exclamation mark
35 (#) 409 None Hash
36 ($) 425 None Dollar
37 (%) 631 None Percent
38 (&) 329 None And
43 (+) 396 None Plus
45 (-) 706 None Dash
@sammdu
sammdu / enable-tcp-bbr.sh
Last active September 19, 2023 16:27
Significantly increase TCP throughput (and thus network speed) of your Linux server. When I tried it on a VPS I own, the wget average went from 394KB/s to 1.37MB/s!
#!/usr/bin/env bash
# This is a crazy feature of the Linux kernel that will DRAMATICALLY increase
# the TCP throughput (and thus network speed) of your Linux server.
# When I tried it on a VPS I own, the wget average went from 394KB/s to 1.37MB/s!
# Further reading: https://medium.com/google-cloud/tcp-bbr-magic-dust-for-network-performance-57a5f1ccf437
# check if kernel supports TCP BBR
if ! grep 'CONFIG_TCP_CONG_BBR' /boot/config-"$(uname -r)" | grep -q 'CONFIG_TCP_CONG_BBR'; then
@proffalken
proffalken / Makefile
Created March 28, 2019 13:16
Platformio Makefile
# Uncomment lines below if you have problems with $PATH
#SHELL := /bin/bash
#PATH := /usr/local/bin:$(PATH)
all:
platformio -f run
upload:
platformio -f run --target upload
@CrystalOnScript
CrystalOnScript / firstemail.html
Last active July 26, 2026 11:06
Create your first AMP email
<!doctype html>
<html ⚡4email>
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script>
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
<style amp4email-boilerplate>body{visibility:hidden}</style>
<style amp-custom>