This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers | |
-------------------------- | |
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 | |
Context switch 25,000 ns 25 us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BIN=/usr/bin | |
MAN=/usr/share/man/man1 | |
PRIORITY=360 | |
BINV=3.6 | |
MANV=3.6.1 | |
update-alternatives --install $BIN/clang clang $BIN/clang-$BINV $PRIORITY \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
The following script will import Tellico book data into Calibre. | |
For more details, see: | |
http://ebixio.com/blog/2016/04/23/import-tellico-books-into-calibre/ | |
""" | |
import os, sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: vim-tail.sh <filename> | |
# | |
# This script turns vim into a `tail -f` equivalent, but with syntax | |
# highlighting and all the other goodies. | |
# | |
# A version of vim compiled with +clientserver is required. | |
# Run `vim --version` to see what options were compiled in. | |
# On Ubuntu 14.04, vim.tiny, vim.basic and vim.nox won't work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Gabriel Burca (gburca dash flac2mp3dir at ebixio dot com) | |
# Version: 1.0 | |
# | |
# Copyright (C) 2006-2009 Gabriel Burca (gburca dash flac2mp3dir at ebixio dot com) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 |