Skip to content

Instantly share code, notes, and snippets.

View Better Stripe Invoice Generator by @levelsio
# MIT license, do whatever you want with it
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
gullyn / flappy.html
Last active Nov 2, 2021
Flappy bird in 205 bytes (improved!)
View flappy.html
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
Justintime50 /
Last active Aug 8, 2021
Use Your SSH Agent in a Crontab

Use Your SSH Agent in a Crontab

Getting access to SSH inside a Crontab is often a problem for many as the environment in which your cron runs is not the same as your normal shell. Simply running ssh-add will not allow you to use your SSH Agent inside your crontab. Follow the below guide to setup your crontab to use your ssh-agent:


  1. Install Keychain.
  2. Add the following to your ~/.zlogin file which will be invoked on each login. This will allow your crontab (and normal shell) to use your ssh keys and bypass needing to punch in your password each time you need SSH. This will also span across multiple sessions and shells.
#Copyright 2021 Fabian Bosler
# 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.
alexellis /
Last active Jan 19, 2021
Expose Kubernetes ClusterIP services with

KinD with

Expose Kubernetes ClusterIP services with

Get KinD:

# Linux

sudo curl -Lo /usr/local/bin/kind \
# This uses MFA devices to get temporary (eg 12 hour) credentials. Requires
# a TTY for user input.
# GPL 2 or higher
if [ ! -t 0 ]
echo Must be on a tty >&2
View Jenkinsfile VIM syntax highlighting
Jenkinsfile VIM syntax highlighting
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc
chrisklaiber /
Created Feb 15, 2018
Python SimpleHTTPServer over IPv6. Run as `python -m SimpleHTTPServer6 [PORT]`
import BaseHTTPServer
import SimpleHTTPServer
import socket
class HTTPServer6(BaseHTTPServer.HTTPServer):
address_family = socket.AF_INET6
if __name__ == '__main__':
thomasdarimont /
Last active Nov 23, 2021
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
app = Flask(__name__)
achesco /
Last active Jul 9, 2021
Detect and split video to scenes with ffmpeg
# Splits video to separate scenes files
# Inspired by