Skip to content

Instantly share code, notes, and snippets.


Richard Seldon arcseldon

View GitHub Profile
View gist:e14fcb3a5b65c8e6042ce7a6445c2aa8
var async = require('async');
var request = require("request");
var _ = require("underscore");
module.exports = function(ctx, cb) {
const api_url = '';
var access_token;
var user_id = ctx.body.user_id;
arcseldon /
Created Feb 18, 2018 — forked from Starefossen/
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.


New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View gist:618a1e2d87d98d1ee95c685cce908e2b

via (

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
arcseldon /
Created Nov 7, 2017 — forked from shashankmehta/
Setup PHP and Composer on OSX via Brew

First install Brew on your MAC

  • Setup Brew: ruby -e "$(curl -fsSL"
  • brew update
  • brew tap homebrew/dupes
  • brew tap homebrew/php
  • Install PHP 7.0.+ brew install php70
  • Install mcrypt: brew install mcrypt php70-mcrypt
  • Finally, install composer: brew install composer
arcseldon / gist:106d55d063b47879fb55b4d61035f477
Created Oct 26, 2017 — forked from jfreeze/gist:8894279
Get VI bindings in IEX (Elixir REPL)
View gist:106d55d063b47879fb55b4d61035f477
# VI bindings in iex:
brew install rlwrap # on OSX
echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile
echo "set editing-mode vi" >> ~/.inputrc
source ~/.bash_profile
# To run iex WITHOUT rlwrap

Cloning All Extensions

This gist contains a script for cloning all the extensions in the current directory. I recommend following the current steps, however you are free to clone these anywhere.

cd ~/Source
mkdir auth0-extensions && cd "$_"

curl" >
arcseldon /
Created Aug 13, 2017 — forked from staltz/
coding music

Not for everyone. Each programmer has their own appreciation of what is good coding music.

For when I need to think deep, debug something, or design

(From most influential to least)

arcseldon /
Created Jun 7, 2017 — forked from sandrinodimattia/
Automatic configuration of the Auth0 Login Page and Email Templates

Customzing the Password Reset Page

Go to the API v2 explorer and generate a token with update:tenant_settings. Then call the tenants endpoint with the new HTML:

PATCH https://{YOUR_DOMAIN}/api/v2/tenants/settings

  "change_password": {
    "enabled": true,
arcseldon / details.txt
Created May 30, 2017
override facebook
View details.txt