Skip to content

Instantly share code, notes, and snippets.

View fredrik's full-sized avatar
🚀

Fredrik Möllerstrand fredrik

🚀
View GitHub Profile
@fredrik
fredrik / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

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:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@fredrik
fredrik / Preferences.sublime-settings
Created January 21, 2015 15:02
Sublime Text 3 settings
{
"font_size": 14.0,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"auto_complete": false,
"copy_with_empty_selection": false,
@fredrik
fredrik / keybase.md
Created March 7, 2014 11:57
keybase.md

Keybase proof

I hereby claim:

  • I am fredrikmollerstrand on github.
  • I am mollerstrand (https://keybase.io/mollerstrand) on keybase.
  • I have a public key whose fingerprint is 0A7C ADE3 E8BD E541 D16C 3040 F8F2 4277 C0E4 4953

To claim this, I am signing this object:

import itertools
import random
from string import ascii_lowercase as alphabet
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
consonants = list(set(alphabet) - set(vowels))
def random_pronouncable_string(length):
@fredrik
fredrik / Preferences.sublime-settings
Last active December 22, 2015 20:39
sublime text 2 settings
{
"auto_complete": false,
"color_scheme": "Packages/User/Tomorrow-Night.tmTheme",
"copy_with_empty_selection": false,
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "all",
"font_size": 20.0,
"highlight_line": true,
"hot_exit": false,
"ignored_packages":
@fredrik
fredrik / linode
Last active December 22, 2015 06:19 — forked from cmer/gist:1566734
(old) linode four cores 512MB RAM
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: fakedew.net: GNU/Linux
OS: GNU/Linux -- 2.6.32.16-linode28 -- #1 SMP Sun Jul 25 21:32:42 UTC 2010
Machine: i686 (unknown)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4533.5 bogomips)
Hyper-Threading, MMX, Physical Address Ext
@fredrik
fredrik / linode basic
Last active December 22, 2015 06:18 — forked from cmer/gist:1566734
digital ocean basic ~2.2GHz 512MB RAM
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: bark: GNU/Linux
OS: GNU/Linux -- 3.2.0-23-virtual -- #36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: QEMU Virtual CPU version 1.0 (4600.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
@fredrik
fredrik / Hetzner-EX6S
Last active December 22, 2015 06:09 — forked from cmer/gist:1566734
Hetzner EX6S (Intel Xeon E3-1245 Quadcore, 32GB RAM, ..)
=> http://www.hetzner.de/en/hosting/produkte_rootserver/ex6s
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: wtfbbq: GNU/Linux
OS: GNU/Linux -- 3.8.0-29-generic -- #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
@fredrik
fredrik / gist:6166061
Created August 6, 2013 16:23
POST yaml with curl
curl -X POST --data-binary @payload.yaml -H "Content-type: text/x-yaml" http://localhost:4200/some-url/1024
@fredrik
fredrik / ssh config
Created April 22, 2013 10:38
Re-use network connections for quicker ssh.
Host *
ControlMaster auto
ControlPath ~/.ssh/auth/%r@%h:%p
ControlPersist yes