Skip to content

Instantly share code, notes, and snippets.

View tomeightyeight's full-sized avatar
:octocat:
Hello, World!

Tom Humphris tomeightyeight

:octocat:
Hello, World!
View GitHub Profile
while sleep 0.5; do dig A glastonbury.seetickets.com | grep glastonbury.seetickets.com; done;
@tomeightyeight
tomeightyeight / fail-loud.sh
Created July 18, 2018 10:34
Bash Fail Loud
#!/bin/bash
set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
IFS=$'\n\t'
@tomeightyeight
tomeightyeight / vs-code-debug.json
Created July 18, 2018 10:34
VSCode Jest Debugger Config
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
@tomeightyeight
tomeightyeight / salt-stack-stuff.txt
Created July 18, 2018 10:33
Salt Stack Manual Update
salt-call state.apply
salt-call saltutil.pillar_refresh
@tomeightyeight
tomeightyeight / simple-https-server.py
Created July 18, 2018 10:32
SimpleHTTPServer with SSL
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@tomeightyeight
tomeightyeight / cloudSettings
Last active September 30, 2019 12:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-30T12:12:18.828Z","extensionVersion":"v3.4.3"}
@tomeightyeight
tomeightyeight / cloudSettings
Created December 7, 2017 16:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-07T16:36:41.624Z","extensionVersion":"v2.8.6"}
@tomeightyeight
tomeightyeight / README.markdown
Created July 28, 2017 09:54 — forked from marijn/README.markdown
List of nationalities in YAML, CSV and TXT format

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@tomeightyeight
tomeightyeight / cloudSettings
Last active December 6, 2017 20:04
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-12-06T20:04:26.928Z","extensionVersion":"v2.8.6"}