Skip to content

Instantly share code, notes, and snippets.

@cellularmitosis
cellularmitosis / README.md
Last active July 9, 2024 06:30
Tech Links
@yantonov
yantonov / install-ghc-ubuntu.md
Last active June 11, 2020 09:20
How to install latest GHC from source + latest stack + cabal + cabal-install on ubuntu

How to install GHC from source + latest stack + cabal + cabal-install on ubuntu

for your convinience this instuction is available as:
gist
git repo

preferred way install stack than install ghc

stack (package manager and build tool, preferrered way to manage dependencies)

# settings
@leon
leon / nginx.conf
Created June 29, 2012 16:34
Nginx PHP-FPM Symfony 2 minimal config
server {
listen 80;
server_name localhost;
root /home/website/web;
rewrite ^/app\.php/?(.*)$ /$1 permanent;
try_files $uri @rewriteapp;
location @rewriteapp {
@jboner
jboner / latency.txt
Last active November 3, 2024 14:50
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@voxpelli
voxpelli / _intro.md
Created March 9, 2012 10:20
Adding Flattr in Jekyll

This is the three parts that I'm using on my Jekyll blog (http://voxpelli.com/) to add Flattr.

I add the "default.html" part in the bottom of the default layouts HTML (the one used by posts). I add it just prior to closing body-tag. Make sure to change the "uid" parameter in the s.src variable to be your Flattr username.

I then add the a-tag in "post.html" in the place where I want the flattr button to appear. Since my blog supports both swedish and english posts I define a language attribute - if you don't use that in your Jekyll-blog then feel free to leave it out. Just be sure to change the domain in the href-attribute to be to your site.

Lastly I add the "default_head.html" part in the head-section of the default layouts HTML (the one used by posts). I also define a language attribute here - if you don't use such an attribute in your Jekyll-blog then switch it to something else or leave it out. Make sure to change the domain and to change the "uid" parameter in the s.src variable to be

@mtigas
mtigas / gist:952344
Last active October 16, 2024 09:03
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: