Skip to content

Instantly share code, notes, and snippets.

@adlawson
adlawson / Dockerfile
Created October 9, 2018 12:10
PHP w/ Oauth for Ed
FROM php:7
RUN apt-get update && \
apt-get install -y libpcre3-dev && \
pecl install oauth && \
echo "extension=oauth.so" >> /usr/local/etc/php/conf.d/oauth.ini
@adlawson
adlawson / mixcloud-tracklist.user.js
Last active September 16, 2017 19:41
Mixcloud Tracklist (Tampermonkey build) - Display tracklists on Mixcloud - https://github.com/adlawson/mixcloud-tracklist
// ==UserScript==
// @name Mixcloud Tracklist
// @namespace mixcloud-tracklist@adlawson.com
// @version 4.3.0
// @description Display tracklists on Mixcloud
// @author Andrew Lawson
// @homepage https://github.com/adlawson/mixcloud-tracklist
// @supportURL https://github.com/adlawson/mixcloud-tracklist/issues
// @updateURL https://cdn.rawgit.com/adlawson/147e22f20e6f1eeb75c8e37acc19c96c/raw/mixcloud-tracklist.user.js
// @icon https://cdn.rawgit.com/adlawson/mixcloud-tracklist/master/images/mixcloud-48.png
@adlawson
adlawson / keybase.md
Created May 8, 2016 11:27
keybase.md

Keybase proof

I hereby claim:

  • I am adlawson on github.
  • I am adlawson (https://keybase.io/adlawson) on keybase.
  • I have a public key ASCdMOm6Y519bKLyJ_cPRLpV7m0Cq4ukA7_zLp2x_dE1iwo

To claim this, I am signing this object:

@adlawson
adlawson / Makefile
Created March 30, 2016 10:05
Pub/Priv/Cert Makefile with help task
KEY_NAME?=key
KEY_LENGTH?=1024
CERT_EXPIRY?=3652 # 10 years
all: help
.PHONY: clean
clean: ## Clean up all generated keys
rm -f *.crt *.pkcs12 *.private *.public
@adlawson
adlawson / boom.js
Last active December 30, 2015 23:49 — forked from tancredi/boom.js
module.exports = function () {
console.log([
' \n',
' ███████ ███████',
' ████------████ ██',
' ██------------██ ██',
' ██------████████████ ██',
' ██------████████████████ ██',
' ██--████ ██████',
' ████████ ██ ██ ██----██ ██████████████████████████████████████████████',
@adlawson
adlawson / joblint
Created October 1, 2013 10:27
Using joblint to lint bully comments on Hacker News https://news.ycombinator.com/item?id=6468885
Joblint
Culture Fails |███ (3)
Realism Fails |█ (1)
Recruiter Fails |██ (2)
Tech Fails | (0)
• Gender is mentioned (error)
• Some "bro culture" terminology is used (warning)
• Attempt to attract candidates with hollow benefits: beer (warning)
@adlawson
adlawson / currency.php
Created August 21, 2011 22:09
Country & currency codes
/**
* List of currencies
* @see ISO 4217
* @var array
*/
$currency = array(
'AUD' => array(
'title' => 'Australian Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',