Skip to content

Instantly share code, notes, and snippets.

View wrburgess's full-sized avatar
:shipit:
Shippin'

Randy Burgess wrburgess

:shipit:
Shippin'
View GitHub Profile
@wrburgess
wrburgess / gist:7f8d7feea27cdbe3f2f52403430c2f6b
Created September 10, 2019 01:42
Error Message Scenarios

Error Message Scenarios

  • There is an unknown column in the file
  • There is a missing required column in the file
  • There is missing data in the file
  • The file is not a properly formatted csv file

There is an unknown column in the file

@wrburgess
wrburgess / example.md
Created June 1, 2019 21:56
azure shorts

Create HTML Web App

  • az webapp up --location westeurope --name parcel-test-2
@wrburgess
wrburgess / example.md
Created May 11, 2019 19:35
ngrok commands

Set custom subdomain

  • command: ngrok http -subdomain=inconshreveable 5000
  • result: http://inconshreveable.ngrok.io on port 5000
@wrburgess
wrburgess / example.md
Last active October 5, 2019 15:58
npm and nvm shortcuts

Update Node with NVM and move global packages

  • nvm install node --reinstall-packages-from=node or nvmup
  • npm update -g or npmgup
  • npm list -g --depth 0 or npmgout

Aliases

alias nor="npm outdated"
@wrburgess
wrburgess / example.md
Created May 7, 2019 02:20
Rails new with postgres

rails new myapp --database=postgresql

import Vue from 'vue'
import Vuex from 'vuex'
import firebase from 'firebase'
import router from '@/router'
Vue.use(Vuex)
export const store = new Vuex.Store({
state: {
appTitle: 'My Awesome App',
import Vue from 'vue'
import Vuex from 'vuex'
import firebase from 'firebase'
import router from '@/router'
Vue.use(Vuex)
export const store = new Vuex.Store({
state: {
appTitle: 'My Awesome App',
@wrburgess
wrburgess / heroku_pg_db_reset.md
Last active November 30, 2018 02:52 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

@wrburgess
wrburgess / a11y_research.md
Created August 29, 2018 18:10
A11y Research

Accessibility Research

Goals

  • Understand Web Accessibility and WCAG basics
  • Understand how Wordpress and Accessibility work together
  • Find any plugins or themes that are ideal for the Gallery400 project
  • Build a list of questions we may have for Gallery400 about what you've learned

SoundCloud

@wrburgess
wrburgess / exportToFile.ts
Created July 25, 2018 18:06
Using Firebase Functions to create and upload a text file to Firebase Storage using Node and firebase-admin
import * as path from 'path';
import * as os from 'os';
import * as fs from 'fs';
import * as admin from 'firebase-admin';
const exportToFile = async (req, _, next) => {
try {
const fileName = 'test002.csv';
const tempFilePath = path.join(os.tmpdir(), fileName);