Skip to content

Instantly share code, notes, and snippets.

View arcseldon's full-sized avatar

Richard Seldon arcseldon

View GitHub Profile
var async = require('async');
var request = require("request");
var _ = require("underscore");
module.exports = function(ctx, cb) {
const api_url = 'https://TENANT.auth0.com/api/v2/device-credentials';
var access_token;
var user_id = ctx.body.user_id;
@arcseldon
arcseldon / tmux-cheats.md
Created February 18, 2018 11:13 — forked from Starefossen/tmux-cheats.md
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

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
@arcseldon
arcseldon / tmux-cheatsheet.markdown
Last active February 18, 2018 10:56 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • 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
arcseldon / setup.md
Created November 7, 2017 04:28 — forked from shashankmehta/setup.md
Setup PHP and Composer on OSX via Brew

First install Brew on your MAC

  • Setup Brew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 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
arcseldon / gist:106d55d063b47879fb55b4d61035f477
Created October 26, 2017 03:29 — forked from jfreeze/gist:8894279
Get VI bindings in IEX (Elixir REPL)
# 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
\iex

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 https://gist.githubusercontent.com/sgmeyer/f622dd49e661c4b62e447530af2762b8/raw/c39122d57cf3ae41b6fd17019432b48edb8415e0/checkout-all-repos.sh" > checkout-all-repos.sh
@arcseldon
arcseldon / music.md
Created August 13, 2017 08:54 — forked from staltz/music.md
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
arcseldon / automate-login-page-email-templates.md
Created June 7, 2017 10:00 — forked from sandrinodimattia/automate-login-page-email-templates.md
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
arcseldon / details.txt
Created May 30, 2017 03:31
override facebook
52.77.92.156 www.facebook.com
52.77.92.156 facebook.com
52.77.92.156 graph.facebook.com
52.77.92.156 login.facebook.com
52.77.92.156 www.login.facebook.com
52.77.92.156 fbcdn.net
52.77.92.156 www.fbcdn.net
52.77.92.156 fbcdn.com
52.77.92.156 www.fbcdn.com