Skip to content

Instantly share code, notes, and snippets.

Does it spark joy?

Brandon Him brh55

Does it spark joy?
View GitHub Profile
View script.js
(function (d, s, id) {
var js,
sjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = "";
sjs.parentNode.insertBefore(js, sjs);
if (
brh55 /
Last active Nov 8, 2019
DB Notes

UI Renders List View

  • Location
    • Merchant.Thumbnail
    • Merchant.Name
    • Merchant.ID
    • Location.Name
    • Location.ID
    • Location.City
    • Location.State
    • Items.Name
brh55 / pokedex.js
Created Sep 19, 2019
Pokedex Skills Code
View pokedex.js
const Pokedex = require('../services/pokedex');
const convert = require('convert-units');
// Add this helper method
const parseParameter = (command, text) => {
const start = text.indexOf(command);
const textStart = text.substring(start)
const parameters = textStart.split(" ");
if (parameters[1]) {
brh55 /
Last active Jul 27, 2019
Minimum Terraform for AWS API Gateway <-> Lambda
import json
def handler(event, context):
return {
"statusCode": 200,
'headers': {'Content-Type': 'application/json'},
"body": json.dumps('Hi!')
brh55 / GPB-KV.json
Last active Jan 15, 2019
Telemetry Metrics
View GPB-KV.json
"nodeIdStr": "dr01",
"subscriptionIdStr": "base_metrics",
"encodingPath": "Cisco-IOS-XR-wdsysmon-fd-oper:system-monitoring/cpu-utilization",
"collectionId": "3689119",
"msgTimestamp": "1547512956008",
"dataGpbkv": [
"timestamp": "1547512956007",
"fields": [
brh55 / ideal.json
Last active Jan 3, 2019
Telemetry mock data
View ideal.json
"name": "leaf1",
"children": [
brh55 /
Created Jan 26, 2018
Stopping New McAffee Agent in Mac
sudo lsof -n -i4TCP:8081 # get the process' PID
sudo launchctl list | grep 5693 # find the launchd endpoint
sudo launchctl remove com.mcafee.agent.macmn
brh55 /
Last active Dec 6, 2017
My Minimalist Closet

My Fundamental Minimalist Closet

This is an current working draft of my minimalist wardrobe. The intent of following items will slowly be added to my wardrobe as I build it from the grounds up.

The premise of these items should meet these minimal requirements:

  • High-quality construction along while intent behind materials used
  • Versatile to be interchangeable (neutral colors: navy, grey, black, white, oatmeal)
  • Not subjected to trends or fast fashion

Sweater Drawing Board

brh55 / nginx.conf
Created Sep 13, 2017
Docker nginx default configuration File
View nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/;
events {
worker_connections 1024;
View payload.txt
Content-Disposition: form-data; name="__EVENTTARGET"
Content-Disposition: form-data; name="__EVENTARGUMENT"
Content-Disposition: form-data; name="__LASTFOCUS"
You can’t perform that action at this time.