How Do You Get a New Job?

How do you get a new job in the tech industry? Perhaps even your first job? What if you don't have any experience? Are you screwed?

No. You can do it. You will get rejected. A LOT. Be prepared to experience 15 or more rejections for every offer you get. It will suck. But if you go out and pound the pavement, if you keep persisting, and if you keep improving your skills - some daring soul will take a chance on you, you will get a job, and the next time you go through the whole circus it will be easier.

It's not going to be easy, but it's possible. And every subsequent job hop (if you're doing it right) should be easier for you, so you might as well get started now. If you execute your job search(es) well, the difference it will make over your whole career will add up to anywhere from tens of thousands to millions of dollars, depending on how lucky you get and how savvy you are. There are, of course, many other benefits from landing a good job from flexible working hour

View zookeeper-kafka.markdown

invoke as root:


set -e

apt-get update

# alt: 'apt-get install -y zookeeperd' might set up the service as well

Sorting in Golang, the old (pre-1.8) way:

type ByLength []string

func (s ByLength) Len() int {
    return len(s)

func (s ByLength) Swap(i, j int) {

This is slightly trickier than I anticipated so noting it down for future reference.

The command should be along these lines (assuming AWS keys are configured via environment variables or config file):

$ docker-machine create \
  -d amazonec2 \
  --amazonec2-region us-west-1 \
  --amazonec2-ami ami-818bd5e1 \
  --amazonec2-zone b \
View gist:6447b040c1a43ef9d7c139bece440808
# Create node-1
$ docker-machine create -d virtualbox \
--virtualbox-memory 2048 \
$ eval $(docker-machine env node-1)
$ docker node update --label-add type=db node-1
$ docker swarm init --advertise-addr x.x.x.x
# Create overlay network
export PROMPT_COMMAND=__prompt_command
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/|\1|/'
/ # strace wget
execve("/usr/bin/wget", ["wget", ""], [/* 6 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x7f91a6059c28) = 0
set_tid_address(0x7f91a6059c60)         = 27
mprotect(0x7f91a6056000, 4096, PROT_READ) = 0
mprotect(0x556817c8d000, 16384, PROT_READ) = 0
getuid()                                = 0
brk(NULL)                               = 0x556818b84000
brk(0x556818b89000)                     = 0x556818b89000
ime="2016-08-19T17:46:11Z" level=warning msg="Running experimental build"
time="2016-08-19T17:46:11.007350700Z" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING [!]"
time="2016-08-19T17:46:11.010019300Z" level=info msg="libcontainerd: new containerd process, pid: 1306"
time="2016-08-19T17:46:12.209278000Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-08-19T17:46:12.210020700Z" level=info msg="Loading containers: start."
time="2016-08-19T17:46:12.472661000Z" level=info msg="Default bridge (docker0) is assigned with an IP address Daemon option --bip can be used to set a preferred IP address"

time="2016-08-19T17:46:12.627017500Z" level=info msg="Loading containers: done."
time="2016-08-19T17:46:12.627140500Z" level=info msg="Daemon has completed initialization"
View dnscheck.go
package main
import (
const (
service = "servers"

This is all on a Debian Jessie system where I had a previous version of Docker (1.11.2) and upgraded to 1.12.0 by doing sudo apt-get update; sudo apt-get install -y docker-engine.

most relevant seeming section of sudo journalctl -u docker.service

Aug 05 09:03:35 neuromancer docker[29172]: time="2016-08-05T09:03:35.319932470-07:00" level=info msg="raft.node: 4f8494c0ac79011c elected leader 4f8494c0ac79011c at term 2"
Aug 05 09:03:35 neuromancer docker[29172]: time="2016-08-05T09:03:35.526397640-07:00" level=info msg="Initializing Libnetwork Agent Local-addr= Adv-addr= Remote-addr ="
Aug 05 09:03:35 neuromancer docker[29172]: time="2016-08-05T09:03:35.531757839-07:00" level=info msg="Initializing Libnetwork Agent Local-addr= Adv-addr= Remote-addr ="
Aug 05 09:03:35 neuromancer docker[29172]: time="2016-08-05T09:03:35.570030223-07:00" level=error msg="Could not open netlink handle during vni population for ns /var/run/docker/netns/1-6tn0mhbopi: failed to set