Skip to content

Instantly share code, notes, and snippets.

View jstoiko's full-sized avatar

Jonathan Stoikovitch jstoiko

View GitHub Profile
@jstoiko
jstoiko / autossh.md
Last active August 29, 2015 14:13 — forked from gparuthi/autossh.md

Userful while using local ipython notebooks or local code while accessing secure remote servers like redis, mongodb, etc.

autossh -M0 -fN -l -i ~/.ssh/id_rsa -L :localhost:

@jstoiko
jstoiko / gist:6f0ee2d78d3ebd4b5096
Created February 25, 2015 16:21
pip upgrade --all
# equiv: pip upgrade --all
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
@jstoiko
jstoiko / CLA
Last active November 12, 2015 05:28
Individual Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, Sosign Interactive Inc. ("Sosign") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Sosign; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Sosign. Except for the license granted herein to Sosign and recipients of software distributed by Sosign, You reserve all right, title, and interest in and to Your Contributions.
1. Definitions.
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Sosign. For legal entities, the entity making a Contribution and all
@jstoiko
jstoiko / firewall
Created July 20, 2016 14:32
Turn OS X firewall on/off from the command-line (and refresh BitBar)
#!/bin/bash
socketfilterfw=/usr/libexec/ApplicationFirewall/socketfilterfw
if [[ "$1" == on ]]; then
sudo $socketfilterfw --setglobalstate on
sudo $socketfilterfw --setblockall on
open -g bitbar://refreshPlugin?name=firewall.*?.sh
elif [[ "$1" == off ]]; then
sudo $socketfilterfw --setglobalstate off
#%RAML 1.0
title: Human API
types:
Human: |
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"properties": {
#%RAML 1.0
title: Human API
types:
Human:
type: object
properties:
first_name: string
last_name: string
age?: number
@jstoiko
jstoiko / affirmation
Created March 20, 2018 02:57
MuleSoft Contributor Agreement Acceptance by Test Jo
I, Test Jo, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Mon Mar 19 2018 19:57:51 GMT-0700 (PDT)
@jstoiko
jstoiko / affirmation
Created March 20, 2018 02:58
MuleSoft Contributor Agreement Acceptance by Test2
I, Test2, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Mon Mar 19 2018 19:58:50 GMT-0700 (PDT)
#%RAML 1.0
title: Example API
mediaType: application/json
traits:
sparsable: !include sparsable.raml
/resource:
get:
is: [ sparsable: { fieldset: Foo|Bar } ]
#%RAML 1.0 Trait
usage: Apply this to a method that supports sparse fieldsets
queryParameters:
fields?:
type: string
pattern: (<<fieldset>>),?