Skip to content

Instantly share code, notes, and snippets.

View peterdemartini's full-sized avatar
😎
being awesome

Peter DeMartini peterdemartini

😎
being awesome
View GitHub Profile
{
"message": "what is the current version of meshblu?"
}
curl \
--fail \
--location \
--silent \
--data '{"name":"Meshblu Connector Say Hello","connector":"meshblu-connector-say-hello","type":"device:say-hello","githubSlug":"octoblu/meshblu-connector-say-hello","version": "latest"}' \
--request POST \
--header 'Content-Type: application/json' \
--user 'my-octoblu-uuid:my-octoblu-token' \
'https://connector-service.octoblu.com/users/my-octoblu-connector-uuid/connectors'
{
"root": true,
"extends": [
"eslint:recommended",
"prettier"
],
"rules": {
"semi": [ 2, "never" ],
"no-undefined": "error"
},
http://localhost:3000/magic-link?uuid=6e0a26ac-765c-429a-bbe0-12fc7a97a80f&token=9ce75c5c6663bba7d14ba6ef120cadb23d9fb87a
@peterdemartini
peterdemartini / gist:1bbcb83a6fcf02f6a92fa28337e22fc6
Created January 10, 2017 22:19
Find slow queries from compose mongo logs
zgrep -E ".*keysExamined.*[0-9]{3,}ms" mongodb82.log-2017-01-08.gz
@peterdemartini
peterdemartini / command.sh
Last active September 19, 2024 15:14
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
@peterdemartini
peterdemartini / one-liner.js
Last active November 28, 2016 17:17
SumTotalHack
m_objCurrentSco.TimeSession = `0000:${(Math.floor(Math.random() * (30 - 10 + 1)) + 10)}:${Math.floor(Math.random() * 55)}`; m_objCurrentSco.ScoreRaw = "100"; m_objCurrentSco.LessonStatus = "completed"; API.SetTotalTime(); API.SetPostComplete(true)
Trigger {Name}
Trigger hello {Name}
Trigger hi {Name}
Trigger start {Name}
Trigger open {Name}
Trigger trigger {Name}
Trigger {Name} there is a problem
Trigger {Name} I need help
Trigger {Name} {SymptomPrefix} {Symptom}
Trigger tell the {Name} {SymptomPrefix} {Symptom}
set -g default-command /usr/local/bin/fish
set -g default-shell /usr/local/bin/fish