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 / 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']);
}
};
@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'

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

@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
language: en
bfid: 201901-bitshares-ui
type: budget
workerid: 1.14.xxx
title: BitShares UI Team
name: Bill Butler
company:
name:
@wmbutler
wmbutler / zoom-yealiink-CP960.md
Last active December 11, 2025 21:36
A guide for updating the firmware for a Yealink CP960 used for Zoom Room Meetings

Upgrading the Yealink CP960

After the big Zoom 5.0 upgrade, I discovered that my yealink phones were not working as expected. Yealink's documentation sucks on the matter. There are a couple of issues with their documentation:

  • The first set of instructions says to login to the phone by getting the IP address and opening a web browser to that IP. https://xxx.xxx.xxx.xxx. My phones had the web access disabled.

If the phone is managed by Zoom:

  1. Login to your Zoom account as an admin
  2. ADMIN -> Company Info -> Desk Phone
  3. Set Web Interface to on
@wmbutler
wmbutler / react-youtube.md
Created December 24, 2021 01:22
Adding a react-youtube component to Plasmic.app

Plasmic react-youtube

I'm posting these notes because it wasn't very clear how to do this the first time I set it up. If you are using Plasmic to build a website or create react components, this will help you understand how to import existing React components. There are a few that the Plasmic Team has created wrappers for. I used this method to install it, but there were several manual steps that weren't all that obvious.

This assumes you already have created a github repo for your plasmic site and that you are following the NextJS path.

  1. On the root level, add this file plasmic-init.ts. Be sure to include your id and token. I've redacted them in this example:
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs";
/**
* @license Angular v13.2.7
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
import { Observable } from 'rxjs';
import { Subject } from 'rxjs';
import { Subscribable } from 'rxjs';
import { Subscription } from 'rxjs';
@wmbutler
wmbutler / todo.md
Last active April 22, 2022 19:11
todo.md

Todo List

  • Learn Gistpad
  • Paragraph nuance in ecfr