Skip to content

Instantly share code, notes, and snippets.

View nonken's full-sized avatar
🚢

Nikolai Onken nonken

🚢
  • Asymmetric, Former AWS, Cloud9
  • Amsterdam
  • X @nonken
View GitHub Profile
import {Readable} from 'stream';
class ReadableStream extends Readable {
constructor() {
super({objectMode: true});
}
_read() {
this.emit('error', 'Error');
}
@nonken
nonken / blog.ts
Created March 29, 2020 16:14
Ghost Blog with CDK - Note: This has some security issues which would need to be addressed on a production environment.
import {App, Duration} from '@aws-cdk/core';
import {
ApplicationListener,
ApplicationListenerRule,
ApplicationLoadBalancer,
ApplicationProtocol,
ApplicationTargetGroup,
InstanceTarget
} from "@aws-cdk/aws-elasticloadbalancingv2";
@nonken
nonken / gist:3823920
Created October 2, 2012 23:18
Ace selection
editor.getSession().addMarker(new Range(0,0,0,10),"ace_active_line","background");
========
Uncaught TypeError: Object function (deps, callback, relModuleMap) {
var moduleName, fullName, moduleMap;
if (typeof deps === "string") {
if (isFunction(callback)) {
//Invalid call