Skip to content

Instantly share code, notes, and snippets.

View wi-ski's full-sized avatar
:octocat:
<3

Will Dembinski wi-ski

:octocat:
<3
View GitHub Profile
@wi-ski
wi-ski / vs-code-settings.json
Created January 11, 2021 23:47
VSCode settings
{
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
// Set the default
"editor.formatOnSave": false,
// Enable per-language
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
@wi-ski
wi-ski / cloudSettings
Last active March 4, 2020 23:58
Gist Me
{"lastUpload":"2020-03-04T23:58:23.233Z","extensionVersion":"v3.4.3"}
#!/bin/sh
MONGO_CONNECTION_URI="mongodb://localhost:27017/bc-local-opps"
fopid="ObjectId('bbbbbbbbbbbbbbbbbbbbbb32')"
docker exec -i bc_mongo mongo $MONGO_CONNECTION_URI --eval "db.HistoricalImports.remove({})"
# read -r -d '' VVVVV <<- EOM
# db.ForeignOpportunities.insert({
# _id: $fopid,
# name: 'foo',
# requestType: 'PROPOSAL',
@wi-ski
wi-ski / get_this_gist
Created November 8, 2019 18:24
Gist Me
#!/bin/sh
echo "
*scratch.md*
*scratch.sh
*scratch.js
" > foo
curl https://gist.githubusercontent.com/wi-ski/910f2919c49c92ad97b1c521995489c7/raw/c3663026a31f93ce57cf0d501c4b81680adc8436/get_this_gist > scratch.sh
curl https://gist.githubusercontent.com/wi-ski/07f66c13eebd8b0042effa7f5162aa64/raw/245816df1b7f43b0db6fb349548c73dc35332510/get_this_gist > scratch.js
WILLS_TOKEN=903156bf6d69cb0676acb10b9d6b209fd00847dd
export WILLS_TOKEN=903156bf6d69cb0676acb10b9d6b209fd00847dd && cat scratch.js | ./scratch.js
@wi-ski
wi-ski / get_this_gist
Created November 8, 2019 18:22
Gist Me
#!/usr/bin/env /Users/wiski/.nvm/versions/node/v10.15.1/bin/node
'use strict'
const stdin = process.openStdin()
const GitHub = require(`/Users/${
process.env.USER
}/.nvm/versions/node/v10.15.1/lib/node_modules/github-api`)
const confs = { gistId: '714f1ee81af795c4cd57b36cbe4daa58' }
const gh = new GitHub({ token: process.env.WILLS_TOKEN })
let mahData = ''
const fileName = 'get_this_gist'
@wi-ski
wi-ski / get_this_gist
Created November 7, 2019 22:42
Gist Me
#!/bin/sh
# _ _ __ _
# | | | |___ ___ / _|_ _| |
# | | | / __|/ _ \ |_| | | | |
# | |_| \__ \ __/ _| |_| | |
# \___/|___/\___|_| \__,_|_|
# BC id: 5430e7bc5cdc2e0300dd8b78
# http://localhost:3000/admiin/historical-opportunity-imports/5430e7bc5cdc2e0300dd8b78
@wi-ski
wi-ski / get_this_gist
Created November 7, 2019 22:42
Gist Me
#!/bin/sh
# _ _ __ _
# | | | |___ ___ / _|_ _| |
# | | | / __|/ _ \ |_| | | | |
# | |_| \__ \ __/ _| |_| | |
# \___/|___/\___|_| \__,_|_|
# BC id: 5430e7bc5cdc2e0300dd8b78
# http://localhost:3000/admiin/historical-opportunity-imports/5430e7bc5cdc2e0300dd8b78
@wi-ski
wi-ski / get_this_gist
Created November 7, 2019 22:41
Gist Me
#!/bin/sh
# _ _ __ _
# | | | |___ ___ / _|_ _| |
# | | | / __|/ _ \ |_| | | | |
# | |_| \__ \ __/ _| |_| | |
# \___/|___/\___|_| \__,_|_|
# BC id: 5430e7bc5cdc2e0300dd8b78
# http://localhost:3000/admiin/historical-opportunity-imports/5430e7bc5cdc2e0300dd8b78
@wi-ski
wi-ski / get_this_gist
Created November 7, 2019 22:37
Gist Me
#!/bin/sh
# _ _ __ _
# | | | |___ ___ / _|_ _| |
# | | | / __|/ _ \ |_| | | | |
# | |_| \__ \ __/ _| |_| | |
# \___/|___/\___|_| \__,_|_|
# BC id: 5430e7bc5cdc2e0300dd8b78
# http://localhost:3000/admiin/historical-opportunity-imports/5430e7bc5cdc2e0300dd8b78
@wi-ski
wi-ski / get_this_gist
Created November 7, 2019 22:36
Gist Me
#!/bin/sh
# _ _ __ _
# | | | |___ ___ / _|_ _| |
# | | | / __|/ _ \ |_| | | | |
# | |_| \__ \ __/ _| |_| | |
# \___/|___/\___|_| \__,_|_|
# BC id: 5430e7bc5cdc2e0300dd8b78
# http://localhost:3000/admiin/historical-opportunity-imports/5430e7bc5cdc2e0300dd8b78