Skip to content

Instantly share code, notes, and snippets.

NEW: Acknowledge and confirm acceptance
Yes - I confirm that I will speak at SREcon19Asia
NEW: Public Talk Title
Implementing Distributed Consensus
NEW: Short description
May I introduce "Skinny", an education-focused, distributed lock service.
With the help of Skinny, we will...
Proposal Type
talk
Title
How we un-scattered our DNS setup and unlocked new automation options
Talk Length
20min
Topic Category
@danrl
danrl / The Technical Interview Cheat Sheet.md
Last active January 18, 2024 14:04 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is TSiege's technical interview cheat sheet. Please find the original and updated at their gist page.

NOTE Forked from @TSiege on Fri 3. May, 2019

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

package main
import (
"fmt"
"github.com/danrl/golibby/queue"
"github.com/danrl/golibby/stack"
"github.com/danrl/golibby/graph"
)
syntax = "proto3";
message GuessRequest {
int32 red = 1;
int32 green = 2;
int32 blue = 3;
}
message GuessResponse {
string result = 1;
- name: bar.foo
addresses:
literals:
- 2001:db8::1
- name: foo
delegation:
nameservers:
- ns-cloud1.googledomains.com.
- ns-cloud2.googledomains.com.
- ns-cloud3.googledomains.com.
config:
zonedatadirectory: zonedata
defaults:
ttl: 300
managedzones:
- fqdn: example.com.
ttl: 3600
- fqdn: example.org.
templates:
- template: gmail
description: >
This template adds Google mail servers to a zone.
names:
- name: '@'
mail:
ttl: 604800 # 1 week = 604800 seconds
mailservers:
- mailserver: aspmx.l.google.com.
zones:
- zone: egym.coffee
description: Test zone.
ttl: 300
templates:
- gmail
- website
names:
- name: '@'
texts:
#include <unistd.h>
#include <sys/types.h>
int main(int argc, char *argv[]) {
pid_t pid = fork();
if (pid == 0) {
// child being lazy
sleep(30);
return 0;
}