Skip to content

Instantly share code, notes, and snippets.

@ericboehs
ericboehs / adding-for-the-first-time.sh
Last active Feb 19, 2021
Keybase.io + GitHub Verified Commits + macOS Keychain
View adding-for-the-first-time.sh
# Install keybase and pinentry-mac
brew update
brew install keybase pinentry-mac
# Create a Keybase.io account and key
keybase signup
# Or if you have an account
keybase login
@simonw
simonw / varnish-jsonp.vcl
Last active May 13, 2021
Get Varnish to handle JSON-P requests for you
View varnish-jsonp.vcl
backend default {
.host = "127.0.0.1";
.port = "8000";
}
# We go BACK to varnish to get it to generate an ESI template that
# generates a JSON-P response.
backend jsonp_template_backend {
.host = "127.0.0.1";
.port = "8070";
@martijnvermaat
martijnvermaat / nixos.md
Last active Jul 23, 2021
Installation of NixOS with encrypted root
View nixos.md
View regex-weburl.js
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//