Skip to content

Instantly share code, notes, and snippets.

Avatar

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 = 'https://TENANT.auth0.com/api/v2/device-credentials';
var access_token;
var user_id = ctx.body.user_id;
@arcseldon
arcseldon / tmux-cheats.md
Created Feb 18, 2018 — 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`.
View tmux-cheats.md

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
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View gist:618a1e2d87d98d1ee95c685cce908e2b

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 Nov 7, 2017 — forked from shashankmehta/setup.md
Setup PHP and Composer on OSX via Brew
View setup.md

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 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
\iex
View README.md

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 Aug 13, 2017 — forked from staltz/music.md
coding music
View music.md

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 Jun 7, 2017 — forked from sandrinodimattia/automate-login-page-email-templates.md
Automatic configuration of the Auth0 Login Page and Email Templates
View automate-login-page-email-templates.md

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
override facebook
View details.txt
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