Skip to content

Instantly share code, notes, and snippets.

View wmbutler's full-sized avatar

Bill Butler wmbutler

  • Butler Holdings
  • Nashville, TN
View GitHub Profile
@wmbutler
wmbutler / 2018-08-bitshares-ui
Last active July 9, 2018 23:37
Bitshares WP August 2018 - April 2018
---
layout: worker
bfid: 201808-bitshares-ui
workerid:
title: BitShares UI Team
name: Bill Butler
company:
name:
url:
status:

layout: worker bfid: 201708-bitsharesui workerid: title: BitShares UI Team name: Bill Butler company: name: url: status:

@wmbutler
wmbutler / script.sh
Last active February 19, 2016 16:51
Wordpress rename
#!/bin/bash
cd /usr/local/bin
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo mv wp-cli.phar wp
sudo chmod +x wp
cd /home/bitnami/apps/wordpress/htdocs
wp option update home 'http://www.mydomain.com'
wp option update siteurl 'http://www.mydomain.com'
@wmbutler
wmbutler / rule
Created November 17, 2014 17:28
Auth0 role rule
function (user, context, callback) {
// You can add a Role based on what you want
// In this case I check domain
var addRolesToUser = function(user, cb) {
if (user.email === '[email protected]') {
cb(null, ['admin']);
} else {
cb(null, ['user']);
}
};