Skip to content

Instantly share code, notes, and snippets.

View eladb's full-sized avatar
☁️
winging it

Elad Ben-Israel eladb

☁️
winging it
View GitHub Profile
@eladb
eladb / extract-jsii.sh
Last active January 19, 2021 11:19
Reflecting on the AWS CDK Type System using jsii-reflect
#!/bin/bash
set -euo pipefail
# given an aws-cdk bundle archive (the one published to github releases), extract
# all .jsii manifests and places them under "jsii/*.jsii"
# now they can be used with jsii-reflect
zip=${1:-}
if [ -z "${zip}" ]; then
echo "Usage: $(basename $0) <cdk-bundle-zip>"
@mojodna
mojodna / gist:2473893
Created April 23, 2012 21:10
Backup GitHub issues
"use strict";
var fs = require("fs"),
https = require("https"),
url = require("url"),
zlib = require("zlib");
/**
* Process HTTP responses. Handle compressed streams and convert to objects as
* appropriate.