I hereby claim:
- I am adamjarret on github.
- I am atj (https://keybase.io/atj) on keybase.
- I have a public key ASD05HPxI3ZcvsRS52voRRB4HaIcVOzCw2yKVxRbISlQ2wo
To claim this, I am signing this object:
# Thanks https://unix.stackexchange.com/a/128436 | |
grep -le "string-a" * --null | xargs -0 -n 1 -I {} grep -Le "string-b" "{}" | |
# Simplified version can be used if file paths have no spaces: | |
grep -Le "string-b" $(grep -le "string-a" *) |
# Usage: | |
# | |
# yqblank '. | .some-prop = false' file.yml | |
# | |
# Thanks https://github.com/mikefarah/yq/issues/515#issuecomment-1113957629 | |
yq "$1" "$2" | diff -B "$2" - | patch "$2" - |
const { get } = require('https'); | |
function getJSON(url, options) { | |
return new Promise((resolve, reject) => { | |
get(url, options, (res) => { | |
let body = ''; | |
res.setEncoding('utf8'); | |
res.on('data', (data) => { | |
body += data; | |
}); |
#!/bin/bash | |
WAN=$(curl -s https://api.ipify.org) | |
LAN=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) | |
echo "ssh ec2-user@$WAN -L 8080:$LAN:8080" |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3({apiVersion: '2006-03-01'}); | |
const cw = new aws.CloudWatchLogs({apiVersion: '2015-01-28'}); | |
const AlreadyExists = 'ResourceAlreadyExistsException'; | |
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
// Thanks https://github.com/caolan/async/blob/master/lib/waterfall.js | |
function cascade(tasks, callback, ignoreError) |
I hereby claim:
To claim this, I am signing this object: