Skip to content

Instantly share code, notes, and snippets.

@robinbentley
robinbentley / countries.js
Created August 6, 2021 08:14
ISO2 Country codes and names - Sorted alphabetically
export const countries = {
AF: 'Afghanistan',
AX: 'Aland Islands',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
@robinbentley
robinbentley / sp
Created August 25, 2018 10:19 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@robinbentley
robinbentley / tutorial.md
Created July 17, 2018 08:25 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@robinbentley
robinbentley / keybase.md
Created March 24, 2017 16:08
keybase.md

Keybase proof

I hereby claim:

  • I am robinbentley on github.
  • I am robinbentley (https://keybase.io/robinbentley) on keybase.
  • I have a public key ASBjOuvjoeRVNXzCouIiiL617Xy2AsvAe6il19hUunw-MQo

To claim this, I am signing this object:

@robinbentley
robinbentley / thing.md
Created January 8, 2016 12:49
Allowing alt-left and alt-right to move between words in iTerm2
@robinbentley
robinbentley / write_iso_to_usb.sh
Created March 7, 2014 21:21
Writing a ISO to a USB stick from mac terminal
# sudo dd if=[PATH TO ISO] of=[PATH TO DISK] bs=4096; sync
sudo dd if=/Users/Robin/Downloads/linux.iso of=/dev/rdisk1 bs=4096; sync
@robinbentley
robinbentley / unload_rcd.sh
Created July 23, 2013 15:44
Stop iTunes opening when using the Play/Pause keyboard button by unloading 'Remote Control Deamon'
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
@robinbentley
robinbentley / case_insensitive.sh
Last active December 18, 2015 15:19
Case in-sensitive tab completion for OS X Terminal
#add this to your ~/.inputrc
set completion-ignore-case On
@robinbentley
robinbentley / find_tweet_links.php
Last active September 28, 2017 01:08
Pull out links, usernames and hashtags from a plaintext tweet. I imagine there is a cleaner way (regex is not my thing) but it works well at getting what's needed.