const Secrets = require('./Secrets')
const secrets = new Secrets({
accessKeyId: 'some aws access key id',
secretAccessKey: 'some aws secret access key'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function merge(dest, src, discriminator) { | |
if (!discriminator) { | |
return [...dest, ...src]; | |
} | |
const result = [...dest]; | |
src.forEach((s) => { | |
const match = dest.find(d => d[discriminator] === s[discriminator]); | |
if (match) { | |
const oldVal = JSON.stringify(match); | |
const newVal = JSON.stringify(s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function runFn (q) { | |
try { | |
if (q === 1) { | |
throw q | |
} | |
return q | |
} catch (e) { | |
throw e | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some test gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
-
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-app="mcloud-pen" | |
ng-controller="mainController" | |
class="form-mini-container" | |
> | |
<div class="row"> | |
<div class="col-xs-2 col-md-4"> | |
</div> |