Skip to content

Instantly share code, notes, and snippets.


Ken Taylor switchspan

  • Viking Sasquatch
  • Chesapeake, VA
View GitHub Profile
switchspan / states.csv
Created December 9, 2021 20:13
US States and Abbreviations
View states.csv
State Abbreviation
Alabama AL
Alaska AK
Arizona AZ
Arkansas AR
California CA
Colorado CO
Connecticut CT
Delaware DE
District of Columbia DC
switchspan /
Created December 9, 2021 20:11
Git Flow Cheatsheet


Initialize a Repository for git-flow

git flow init -d

(Omit -d if you want to select values other than the defaults.)


switchspan /
Created December 9, 2021 19:32
Gcloud CLI Commands

GCloud CLI commands


List all of the current logins

gcloud auth list

Change the active account

switchspan /
Created November 1, 2021 18:04
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
default * virtualbox Running tcp:// v1.9.1
# Note the host URL - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
switchspan / reconnect.js
Created November 13, 2018 17:55 — forked from carlhoerberg/reconnect.js
How to build reconnect logic for amqplib
View reconnect.js
var amqp = require('amqplib/callback_api');
// if the connection is closed or fails to be established at all, we will reconnect
var amqpConn = null;
function start() {
amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) {
if (err) {
console.error("[AMQP]", err.message);
return setTimeout(start, 1000);
switchspan / gdrive.js
Created August 9, 2018 02:41 — forked from Teivaz/gdrive.js
Google Drive API V3 simple but working use case.
View gdrive.js
'use strict';
const driveUploadPath = '';
// 'id' is driveId - unique file id on google drive
// 'version' is driveVersion - version of file on google drive
// 'name' name of the file on google drive
// 'appProperties' keep the custom `ifid` field
const fileFields = 'id,version,name,appProperties';
switchspan /
Last active June 15, 2018 23:25
Mule Netsuite SavedSearch Criteria JavaComponent
import org.mule.api.MuleEventContext;
import org.mule.api.lifecycle.Callable;
import com.netsuite.webservices.lists.relationships.CustomerSearchAdvanced;
public class CustomerSearchAdvancedSavedComponent implements Callable {
public Object onCall(MuleEventContext eventContext) throws Exception {
CustomerSearchAdvanced searchCriteria = new CustomerSearchAdvanced();
switchspan / NetsuiteCustomCriteria.dwl
Last active June 15, 2018 23:26
Netsuite Mule Criteria via Dataweave
View NetsuiteCustomCriteria.dwl
%dw 1.0
%output application/java
email: {
operator: "IS",
searchValue: inboundProperties["http.query.params"].email
customFieldList: {
customField: [{
switchspan /
Created June 14, 2018 18:52 — forked from JeOam/
Install Java 8 on OS X

on El Capitan, after installing the brew...

$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java

And Java 8 will be installed at /Library/Java/JavaVirtualMachines/

Check version:


Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes