Skip to content

Instantly share code, notes, and snippets.

View redaphid's full-sized avatar
💭
Adrift, in an ocean of stars.

Aaron Herres redaphid

💭
Adrift, in an ocean of stars.
  • Loqwai
  • Drifting
View GitHub Profile
@redaphid
redaphid / badinstance
Last active March 11, 2016 22:30
badinstance
flowId: 93534f2b-0b0b-4d65-a1e6-e8d278e73c8e
instanceId: c666e846-b139-4402-b645-eb76de0f07ad
flowId: e498fa3b-ef2c-466c-a4b9-8536d6c1524b
instanceId: 52fdb5e6-9330-4292-b333-5920dacc3ee3
flowId: d5f84846-aaf7-4427-bb5d-d2eaeae3d34d
instanceId: a5c62cfb-7c1b-4ea0-8566-22ef159fae3d
@redaphid
redaphid / git-semver
Last active April 15, 2016 03:37
github semver extensions
version() {
VERSION=$(git tag --list | xargs semver -v | tail -n 1)
echo $VERSION
}
version
major() {
semver -i major $(git tag --list | xargs semver -v | tail -n 1)
}
@redaphid
redaphid / gotta-do-it.md
Created June 22, 2016 22:07
Bluprinter stuff

Everything Store-related

  • Curation of Bluprints
  • Detail view of bluprint

Bluprinter

  • Styles eeeeverywhere
  • Create Bluprint
    • Name the Bluprint
  • Make required
@redaphid
redaphid / particle.ino
Created October 6, 2016 07:15
octoblu-particle integration
// Define the Pin the Temperature sensor is on
int tempPin = A0;
// Create a variable that will store the temperature value
double temperature = 0.0;
double temperatureF = 0.0;
double lastTempF = 0.0;
String temperatureString = "";
void setup()
@redaphid
redaphid / random-mac.sh
Created August 5, 2018 12:41
Randomize your mac address for...macs
#!/bin/sh
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
@redaphid
redaphid / routes.js
Created May 10, 2019 05:49
Dreaming of the old Meshblu
const routes = [
{method: 'get ', route: '/ping',},
{method: 'get ', route: '/authenticate/:uuid'},
{method: 'post ', route: '/authenticate'},
{method: 'post ', route: '/broadcasts'},
{method: 'post ', route: '/claimdevice/:uuid'},
{method: 'get ', route: '/devices'},
{method: 'post ', route: '/devices'},
{method: 'put ', route: '/devices/:uuid'},
{method: 'get ', route: '/devices/:uuid'},
@redaphid
redaphid / keybindings.json
Created May 15, 2019 01:38
vscode let me pick when to autocomplete!
[
{
"key": "tab",
"command": "tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "ctrl+space",
"command": "editor.emmet.action.expandAbbreviation",
"when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
@redaphid
redaphid / kill-alexa-scenes.js
Created May 24, 2019 04:33
Has Alexa filled your "scenes" with multiple redundant scenes from pairing a device over and over again? Just run this script in the developer console!
//Go to:
// https://alexa.amazon.com/spa/index.html#scenes
function killEm(){
$("#connected-home-delete-button").click()
setTimeout(function(){$('.accept').click()}, 200)
setTimeout(killEm, 300)
}
killEm()
@redaphid
redaphid / watch-tests.sh
Last active July 15, 2019 03:17
Much faster ginkgo watch. Because I'm procrastinating doing actual work.
#!/bin/bash
PROJECT_PATH=`pwd`
CODE_PATH=`pwd`
chsum1=""
while [[ true ]]
do
chsum2=`find $CODE_PATH -maxdepth 4 -type f -name "*.go" -exec ls -al {} \; | md5`
if [[ $chsum1 != $chsum2 ]] ; then
@redaphid
redaphid / find-window.sh
Created September 25, 2019 00:00
find windows by name for yabai
#!/bin/bash
eval "yabai -m query --windows | jq '.[] | {id, app} | select(.app == \"${1}\") | .id'"