Skip to content

Instantly share code, notes, and snippets.

View mshick's full-sized avatar
💭
🥇

Michael Shick mshick

💭
🥇
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mshick on github.
  • I am mshick (https://keybase.io/mshick) on keybase.
  • I have a public key ASAK0I32-sdxpOVjR43i_p1n_zC9rP8JH_YxZgczqxckpgo

To claim this, I am signing this object:

@mshick
mshick / install.sh
Last active April 2, 2020 10:01
Installing Node.js with Homebrew and nvm
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install nvm
brew install nvm
# Export nvm environment
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
@mshick
mshick / animated.svg
Created July 9, 2020 21:22
animated svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mshick
mshick / README.md
Last active July 27, 2020 18:05
dnsmasq script

Running

$ bash <(curl -Ls https://gist.githubusercontent.com/mshick/414612f1f5426242d4fa0744d509a82a/raw/dnsmasq-setup.sh)

sudo permissions are required

What?

@mshick
mshick / stripe-fragment.md
Last active August 9, 2021 19:31
stripe-fragment.md
"stripeCustomer": {
    "title": "Stripe Customer",
    "description": "",
    "@ref": "stripe:Customer",
    "@resolver": {
        "name": "rest:get",
        "service": "stripe",
        "options": {"path": "/v1/customers/{customer}"},
 "argsMapping": {
{
    "searchParamsMapping": [
        [
            "expand[]", 
            [
                ["get": {"path": "somepath"}], ["concat": {"path": "somepath"}]]
        ], 
        ["expand[]", 
 [["set": {"value": "somepath"}]]
{
  "resultsMapping": [
    ["expressionEval", { "expression": "{...steps[0], sku: steps[0].id}" }]
  ]
}
{
import {
FieldNode,
OperationDefinitionNode,
SelectionNode,
SelectionSetNode,
getVisitFn,
Kind,
ASTNode,
DocumentNode,
visit,
@mshick
mshick / code-examples.md
Last active September 29, 2021 21:08
mapping