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
@peterdemartini
peterdemartini / command.sh
Last active May 20, 2024 11:04
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
@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
http://localhost:3000/magic-link?uuid=6e0a26ac-765c-429a-bbe0-12fc7a97a80f&token=9ce75c5c6663bba7d14ba6ef120cadb23d9fb87a
{
"root": true,
"extends": [
"eslint:recommended",
"prettier"
],
"rules": {
"semi": [ 2, "never" ],
"no-undefined": "error"
},
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'
{
"message": "what is the current version of meshblu?"
}