Skip to content

Instantly share code, notes, and snippets.

Ben Hutton Relequestual

Block or report user

Report or block Relequestual

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tatianamac /
Last active Jan 14, 2020
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Before I'll agree to a speaking event, I try to do as much research I can around the event to ensure it aligns with my ethos. I want to share this in case it's helpful to any other speakers.

👐 Speaking comes with immense privilege. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most marginalised and suppressed communities.

😫 I wish I didn't have to, but this is long because I provide a lot of explanations for those of you who never had to consider these things. And I will be honest, most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

1️⃣ All of these are based on my own ethos. I don't wish to or attempt to speak on behalf of all conference speake

Shourai / namecheap
Created Oct 21, 2017
Letsencrypt SSL certificate with namecheap hosting
View namecheap


The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”

Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.

First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.

rtrouton / gist:2ca6f001b3cecb5037825c7f9d2e422e
Created Apr 28, 2017
Xcode iOS simulator download URLs (as of Xcode 8.3.1)
View gist:2ca6f001b3cecb5037825c7f9d2e422e
iOS 10.2 Simulator:
iOS 10.1 Simulator:
iOS 10.0 Simulator:
iOS 9.3 Simulator:
iOS 9.2 Simulator:
iOS 9.1 Simulator:
iOS 9.0 Simulator:
iOS 8.4 Simulator: https://devimages.a
View SKSceneWithUserInteractionBugfix.swift
// Original Objective C version:
// Fix SpriteKit's SKNode bug on iOS 7 & 8: nodes capture touch events
// even when userInteractionEnabled is false and the nodes are hidden.
// Details:
// How to use:
use v5.14;
use JSON::PP;
use JSON::Hyper;
use Data::Dumper;
use Devel::Confess;
# Construct a URI which has some JSON data. I'm using a
# data: URI because I'm too lazy to upload some JSON
# somewhere, but any URI that returns JSON should be OK.
arturadib / pre-commit
Last active Sep 6, 2019
Pre-commit hook to prevent debug code from being committed
View pre-commit
# Paste this script in your .git/hooks/pre-commit file (create one if it doesn't exist yet)
# To prevent debug code from being accidentally committed, simply add a comment near your
# debug code containing the keyword !nocommit and this script will abort the commit.
if git commit -v --dry-run | grep '!nocommit' >/dev/null 2>&1
echo "Trying to commit non-committable code."
echo "Remove the !nocommit string and try again."

Falsehoods programmers believe about prices

  1. You can store a price in a floating point variable.
  2. All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
  3. All currencies are subdivided in decimal units (like dinar/fils)
  4. All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
  5. All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
  6. Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
  7. For any currency you can have a price of 1. (ZWL)
  8. Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
tombeynon /
Last active Mar 24, 2019
Programmatically create Apache VHost
# /usr/local/bin/ -d domain -t com -u user -p password -r
# TODO: SCP could be done in reverse
darkliquid / beautified.js
Last active Aug 22, 2019
Bookmarklet to estimate reading time of a page
View beautified.js
javascript:(function () {
function getTextNodesIn(element) {
var wordcount = 0,
whitespace = /^\s*$/;
function getTextNode(node) {
// type 3 is a textnode
if (node.nodeType == 3) {
// We skip text nodes that are only whitespace
if (!whitespace.test(node.nodeValue)) {
brianpattison /
Created Nov 22, 2012 — forked from tjogin/
PHP on

PHP on

Install Pow

$ curl | sh

Install PHP with MySQL

$ curl -O
$ mv php.rb `brew --prefix`/Library/Formula
You can’t perform that action at this time.