Skip to content

Instantly share code, notes, and snippets.

View therebelrobot's full-sized avatar
A girl made of PLA and caffeine

Aster Haven therebelrobot

A girl made of PLA and caffeine
View GitHub Profile
@therebelrobot
therebelrobot / settings.json
Created November 10, 2021 20:36
Conventional Commit VSCode Settings
View settings.json
{
"conventionalCommits.showNewVersionNotes": false,
"conventionalCommits.autoCommit": false,
"conventionalCommits.gitmoji": true,
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.lineBreak": " ",
"conventionalCommits.showEditor": true,
"conventionalCommits.editor.keepAfterSave": true
}
@therebelrobot
therebelrobot / Command to run
Last active April 21, 2021 06:00
Infra Basics: What is a web server?
View Command to run
nginx -p `pwd`/ -c nginx.conf
@therebelrobot
therebelrobot / .circleci-config.yml
Last active December 12, 2018 22:37
CircleCI Repeated Cron Job
View .circleci-config.yml
# change defaults:docker:image for a different docker image
# change jobs:checkout:steps:restore_cache:keys and :save_cache:key to the file needed for checksum
# change jobs:checkout:steps:run to whatever is needed for dep installation
# change jobs:checkout:steps:save_cache:paths to the paths you'd like to cache between runs
# change task:steps:run:command to the bash command to run
# change workflows:repeated:triggers:schedule:cron to the appropriate cron syntax
# cron reference: https://www.unix.com/man-page/POSIX/1posix/crontab/
# cron recipes: https://alvinalexander.com/linux/unix-linux-crontab-every-minute-hour-day-syntax
defaults: &defaults
@therebelrobot
therebelrobot / SketchSystems.spec
Created November 12, 2018 15:57
My Awesome Sketch
View SketchSystems.spec
My Awesome Sketch
First State
some event -> Second State
Second State
@therebelrobot
therebelrobot / Curl http > https redirect
Created May 15, 2018 21:02
Curl http > https redirect
View Curl http > https redirect
curl -vL www.saleae.com
* Rebuilt URL to: www.saleae.com/
* Trying 151.101.66.49...
* TCP_NODELAY set
* Connected to www.saleae.com (151.101.66.49) port 80 (#0)
> GET / HTTP/1.1
> Host: www.saleae.com
> User-Agent: curl/7.54.0
> Accept: */*
>
View serverless.yml
service: my-lambda
provider:
name: aws
region: us-east-1
profile: personal
functions:
legacyApiTransform:
runtime: nodejs6.10
events:
@therebelrobot
therebelrobot / UserVoiceToken.js
Last active April 10, 2018 23:35
Uservoice SSO Token Generation (Node 8.x)
View UserVoiceToken.js
const crypto = require('crypto');
/**
* Convert a valid Uservoice user object into an SSO token
*
* Uservoice documentation: https://developer.uservoice.com/docs/single-sign-on/single-sign-on/
*
* ##### documented on 4/10/2018, 4:29:17 PM
*
* #### gotchas
View jass.md
@therebelrobot
therebelrobot / secretbox-example.js
Created May 10, 2017 00:30
NACL SecretBox example (safely symm encrypt/decrypt)
View secretbox-example.js
const nacl = require('tweetnacl')
nacl.util = require('tweetnacl-util')
const crypto = require('crypto')
const key64 = '4jYJgju0rVSVSBBhihogB7dIW5UIEDhPHxwl+WJlfOk='
const keyBuff = Buffer.from(key64, 'base64')
/* -------------- */
/* Build jwt */
/* -------------- */
View ids.json
[
"3kskx8qmik",
"c7w96Gtb9i",
"hjdm969dch",
"umvek21i5m",
"2w6xe78xn7",
"0cLzWCaMlT",
"qY3WFlZusE",
"SSErKT3Sm0",
"IWjhCjaE8n",