Skip to content

Instantly share code, notes, and snippets.

@irnnr
irnnr / c4q_techinterview.md
Created September 4, 2018 02:22 — forked from jamtur01/c4q_techinterview.md
C4Q Technical Interview Slides

Interviewing for Engineering roles


Workshop timetable

  • 15 mins Introduction

Per interview.

/**
* Simple userland heapdump generator using v8-profiler
* Usage: require('[path_to]/HeapDump').init('datadir')
*
* @module HeapDump
* @type {exports}
*/
var fs = require('fs');
var profiler = require('v8-profiler');
@irnnr
irnnr / docker-fwd
Last active June 8, 2016 06:58 — forked from deinspanjer/boot2docker-fwd
Tool to manage Docker (docker-machine) port forwarding rules on OS X
#!/usr/bin/env bash
# forked from https://gist.github.com/deinspanjer/9215467
# changed to work with docker-machine instead of boot2docker
usage ()
{
cat <<USAGE
docker-fwd -- Helper function to quickly manage port forwards between the docker-machine-vm and the host
Usage: docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT