Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Page faults left and right

David Jimenez dvejmz

🐧
Page faults left and right
View GitHub Profile
@GLMeece
GLMeece / latency_numbers.md
Last active Apr 14, 2021
Latency Numbers Every Programmer Should Know - MarkDown Fork
View latency_numbers.md

Latency Comparison Numbers

Note: "Forked" from Latency Numbers Every Programmer Should Know

Event Nanoseconds Microseconds Milliseconds Comparison
L1 cache reference 0.5 - - -
Branch mispredict 5.0 - - -
L2 cache reference 7.0 - - 14x L1 cache
Mutex lock/unlock 25.0 - - -
@magnetikonline
magnetikonline / README.md
Last active Jan 7, 2021
AWS CloudFormation YAML template - appending to list parameter types.
View README.md

AWS CloudFormation YAML template - appending to list parameter types

Documenting this here, as I often forget (what I have found) is the best way to do this at the moment.

For example, you have a list of two existing security groups given to a stack and wish to create (and use) a third - attaching all to an ALB:

AWSTemplateFormatVersion: "2010-09-09"
Description: "Example template"

Parameters:
@a-h
a-h / .vimrc
Last active Apr 8, 2020
My .vimrc
View .vimrc
" Plugins used
" Install vim-plug.
" https://github.com/junegunn/vim-plug
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" Install dependencies.
" python3 -m pip install --user --upgrade pynvim
" python -m pip install --user --upgrade pynvim
" :PlugInstall
@garethrees
garethrees / plot.p
Last active Apr 6, 2020
Graphing apache benchmark results with gnuplot
View plot.p
# Output to a jpeg file
set terminal jpeg size 1280,720
# Set the aspect ratio of the graph
set size 1, 1
# The file to write to
set output "timeseries.jpg"
# The graph title
@benyanke
benyanke / fidget.sh
Last active Nov 5, 2017
Bash fidget spinner
View fidget.sh
# Bash Fidget Spinner
# Could also be included in a bashrc file
fidget() {
start_time="0.02";
spin_efficiency="0.99";
end_time="3";
time="$start_time";
printf "\e[92mPress any key to give another spin...\n\n";