Skip to content

Instantly share code, notes, and snippets.

Avatar

Víctor Román Archidona vroman

View GitHub Profile
@dlangille
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
daily_status_disks_enable="NO"
daily_status_network_enable="NO"
daily_status_uptime_enable="NO"
# not needed on jails
daily_ntpd_leapfile_enable="NO"
@lucasw
lucasw / open_source_dos_games.md
Last active Aug 8, 2020
Open Source DOS Games
View open_source_dos_games.md

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 http://dosgames.com/forum/about19706.html

@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016
This is an ANSIBLE Cheat Sheet from Jon Warbrick
View ansible-summary.md

An Ansible summary

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

Configuration file

intro_configuration.html

First one found from of

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

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
hfreire / qemu_osx_rpi_raspbian_jessie.sh
Last active Nov 25, 2020
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
View qemu_osx_rpi_raspbian_jessie.sh
# 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 \
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
@plentz
plentz / nginx.conf
Last active Nov 27, 2020
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@sergiitk
sergiitk / osx-terminal.md
Last active Sep 30, 2020
OSX terminal tips an tricks
View osx-terminal.md

OS X terminal tips an tricks

Shell tools

System

  • 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
digitaljhelms / gist:4287848
Last active Nov 26, 2020
Git/GitHub branching standards & conventions
View gist:4287848

Branching

Quick Legend

Instance Branch Description, Instructions, Notes
@jboner
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.