Skip to content

Instantly share code, notes, and snippets.

View brh55's full-sized avatar
Hello! 👋

Brandon Him brh55

Hello! 👋
View GitHub Profile
@brh55
brh55 / script.js
Created May 29, 2020 21:18
script.js
(function (d, s, id) {
var js,
sjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "https://sdk.snapkit.com/js/v1/create.js";
sjs.parentNode.insertBefore(js, sjs);
if (
@brh55
brh55 / Notes.md
Last active November 8, 2019 20:47
DB Notes

UI Renders List View

  • Location
    • Merchant.Thumbnail
    • Merchant.Name
    • Merchant.ID
    • Location.Name
    • Location.ID
    • Location.City
    • Location.State
  • Items.Name
@brh55
brh55 / pokedex.js
Created September 19, 2019 07:01
Pokedex Skills Code
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
brh55 / lambda.py
Last active December 1, 2023 09:00
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
brh55 / GPB-KV.json
Last active January 15, 2019 01:40
Telemetry Metrics
{
"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
brh55 / ideal.json
Last active January 3, 2019 18:55
Telemetry mock data
{
"name": "leaf1",
"children": [
{
"name":"transmitted-packets",
"timestamp":1538521275265,
"value":1521726,
"tags":{
"node-name":"0/0/CPU0",
"subscription":"telemetrytest",
@brh55
brh55 / script.sh
Created January 26, 2018 15:56
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
brh55 / wardrobe.md
Last active December 6, 2017 19:27
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
brh55 / nginx.conf
Created September 13, 2017 22:37
Docker nginx default configuration File
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@brh55
brh55 / payload.txt
Created June 15, 2017 17:17
Payload
-----------------------------215622282028325
Content-Disposition: form-data; name="__EVENTTARGET"
ctl00$uxContent$ctl01$folderPageHost$uxFolderPageViewModule$uxFolderGridView$s;1$uxSummaryButton
-----------------------------215622282028325
Content-Disposition: form-data; name="__EVENTARGUMENT"
-----------------------------215622282028325
Content-Disposition: form-data; name="__LASTFOCUS"