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
@bmaupin
bmaupin / free-database-hosting.md
Last active September 3, 2026 08:59
Free database hosting
@superboum
superboum / LICENCE.txt
Last active March 3, 2026 17:07
Install Debian with Debootstrap + Grub EFI
MIT LICENSE
Copyright 2018 Quentin Dufour
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active September 10, 2026 02:06
Conventional Commits Cheatsheet
@tazjin
tazjin / thoughts.md
Last active December 12, 2025 19:33
Nix builder for Kubernetes
@krisleech
krisleech / renew-gpgkey.md
Last active August 27, 2026 04:07
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active September 10, 2026 07:26
set -e, -u, -o, -x pipefail explanation
@benchonaut
benchonaut / ssl-cert-info.sh
Created August 31, 2018 01:35
Shell script to check SSL certificate info like expiration date and subject. Taken from http://giantdorks.org/alain/shell-script-to-check-ssl-certificate-info-like-expiration-date-and-subject/
#!/bin/bash
usage()
{
cat <<EOF
Usage: $(basename $0) [options]
This shell script is a simple wrapper around the openssl binary. It uses
s_client to get certificate information from remote hosts, or x509 for local
certificate files. It can parse out some of the openssl output or just dump all
from ota_update.main.ota_updater import OTAUpdater
def download_and_install_update_if_available():
ota_updater = OTAUpdater('url-to-your-github-project')
ota_updater.download_and_install_update_if_available('wifi-ssid', 'wifi-password')
def start():
# your custom code goes here. Something like this: ...
# from main.x import YourProject
@pantsel
pantsel / docker-compose.yml
Last active September 9, 2026 16:40
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active August 29, 2026 20:46
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).