Skip to content

Instantly share code, notes, and snippets.

;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@lucasallan
lucasallan / client.go
Created October 1, 2016 20:49 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@lucasallan
lucasallan / The Technical Interview Cheat Sheet.md
Created August 16, 2016 22:05 — 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.
Done (finished in 2016):
- Functional Programming in Scala
- Release it
- Go in Action
Current:
- Understanding pointers in C
- High Performance Browser Networking
@lucasallan
lucasallan / gist:ed3c09fb292ca3bf2c62
Last active January 22, 2016 17:56
25 Best Kettlebell Exercises For Grapplers
1. 2-Arm Kettlebell Swings
2. Double Kettlebell Swings
3. Suitcase Swings
4. 1.5 Stance Swings – Jason C Brown
5. One Arm Cleans
6. Double Cleans
7. Gorilla Cleans
8. Clean and Press
9. Military Press
10. Snatch
@lucasallan
lucasallan / gist:63fc66b69282364e2db2
Last active January 22, 2016 23:40
do not update resolv.conf

sudo apt-get install libsodium-dev

sudo vim /etc/systemd/system/dnscrypt.service

[Unit]
Description=A tool for securing communications between a client and a DNS resolver.
After=network.target
Wants=network.target dnscrypt-proxy-backup.service
require 'fiddle'
class GVL
handle = Fiddle::Handle::DEFAULT
address = handle['rb_thread_call_without_gvl']
func = Fiddle::Function.new address, [Fiddle::TYPE_VOIDP,
Fiddle::TYPE_VOIDP,
Fiddle::TYPE_VOIDP,
Fiddle::TYPE_VOIDP], Fiddle::TYPE_VOIDP
brew install llvm36
env RUBY_CONFIGURE_OPTS='--llvm-config /usr/local/opt/llvm36/bin/llvm-config-3.6' rbenv install rbx-2.5.8
#!/usr/bin/env ruby
require 'concurrent'
require 'benchmark'
NUM = 50_000_000
WARM_UPS = NUM
def jruby?
defined? JRUBY_VERSION
@lucasallan
lucasallan / Makefile
Last active August 29, 2015 14:26 — forked from jvns/Makefile
A fun rootkit! See http://jvns.ca/blog/2013/10/08/day-6-i-wrote-a-rootkit/ for the story Most of the code is taken from https://github.com/mfontanini/Programs-Scripts/blob/master/rootkit/rootkit.c, so GPL'd as well
obj-m += rootkit.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean