Skip to content

Instantly share code, notes, and snippets.


Víctor Román Archidona vroman

View GitHub Profile
dlangille / 1 - I plan to turn these off
Last active Oct 8, 2020
Periodic things to turn off in FreeBSD jails
View 1 - I plan to turn these off
# after reviewing /etc/defaults/periodic.conf I have decided
# to disable these items in jails
# not needed on jails
lucasw /
Last active Aug 8, 2020
Open Source DOS Games

Actual dos games that could at least theoretically be recompiled with the right dos tools, and then played in dosbox or on real hardware.

Doom doesn't count because the dos source is not available.

Look at

andreicristianpetcu /
Created May 30, 2016
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file


First one found from of

rudelm /
Last active Nov 26, 2020
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

# Automounter master map
+auto_master		# Use directory service
hfreire /
Last active Nov 25, 2020
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# Install QEMU OSX port with ARM support
sudo port install qemu +target_arm
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
curl -OL \
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
plentz / nginx.conf
Last active Nov 27, 2020
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
sergiitk /
Last active Sep 30, 2020
OSX terminal tips an tricks

OS X terminal tips an tricks

Shell tools


  • sw_vers — Print Mac OS X operating system version information
  • system_profiler — Reports system hardware and software configuration.
  • system_profiler SPHardwareDataType — Hardware overview.
  • hostinfo — Host information.
  • nvram -p — Print all of the firmware variables.
  • getconf DARWIN_USER_CACHE_DIR — Retrieve standard configuration variables
  • /usr/libexec/path_helper — Helper for constructing PATH environment variable
digitaljhelms / gist:4287848
Last active Nov 26, 2020
Git/GitHub branching standards & conventions
View gist:4287848


Quick Legend

Instance Branch Description, Instructions, Notes
jboner / latency.txt
Last active Nov 27, 2020
Latency Numbers Every Programmer Should Know
View latency.txt
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
You can’t perform that action at this time.