Skip to content

Instantly share code, notes, and snippets.

@jdelibas
jdelibas / remove.sh
Created Aug 17, 2017
remove node_modules recursive
View remove.sh
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
@jdelibas
jdelibas / README.md
Last active Jun 7, 2017
AWS KMS and S3 secret storage
View README.md

AWS KMS and S3 secret storage

Usage

const Secrets = require('./Secrets')
const secrets = new Secrets({
  accessKeyId: 'some aws access key id',
  secretAccessKey: 'some aws secret access key'
View keybase.md

Keybase proof

I hereby claim:

  • I am jdelibas on github.
  • I am jdelibas (https://keybase.io/jdelibas) on keybase.
  • I have a public key ASB7b63EMgVRhfw4t-AGHFNZXa4_0Wurbrb7mimimidvcQo

To claim this, I am signing this object:

@jdelibas
jdelibas / funFn.js
Created May 3, 2017
async error test
View funFn.js
async function runFn (q) {
try {
if (q === 1) {
throw q
}
return q
} catch (e) {
throw e
}
}
@jdelibas
jdelibas / gcloud.sh
Created Nov 17, 2016
kubernetes on gcp
View gcloud.sh
https://cloud.google.com/sdk/downloads#interactive
$ curl https://sdk.cloud.google.com | bash
$ exec -l $SHELL
$ gcloud init
$ gcloud components install kubectl
Installing google-cloud-sdk to $HOME directory
@jdelibas
jdelibas / openconnect.md
Created Sep 21, 2016 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X
View openconnect.md

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
     brew install openconnect
    
@jdelibas
jdelibas / index.html
Created Jul 25, 2016
mcloud-images-single-id
View index.html
<div ng-app="mcloud-pen"
ng-controller="mainController"
class="form-mini-container"
>
<div class="row">
<div class="col-xs-2 col-md-4">
</div>
@jdelibas
jdelibas / index.html
Last active Jul 26, 2016
mcloud-users-change-profile
View index.html
<div ng-app="mcloud-pen"
ng-controller="mainController"
class="form-mini-container"
>
<div class="row">
<div class="col-xs-2 col-md-4">
</div>
@jdelibas
jdelibas / index.html
Created Jul 11, 2016
mcloud-users-token-revoke
View index.html
<div ng-app="mcloud-pen"
ng-controller="mainController"
class="form-mini-container"
>
<div class="row">
<div class="col-xs-2 col-md-4">
</div>