Skip to content

Instantly share code, notes, and snippets.

View Dave-Snigier's full-sized avatar

Dave Snigier Dave-Snigier

  • University of Massachusetts
  • Boston, MA
View GitHub Profile
@Dave-Snigier
Dave-Snigier / README.md
Created January 28, 2018 15:51 — forked from bsodmike/README.md
OC Nvidia GTX1070s in Ubuntu 16.04LTS for Ethereum mining

Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.

First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.

# /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
@Dave-Snigier
Dave-Snigier / svnserve.sh
Last active August 29, 2015 14:25 — forked from dexterbt1/svnserve.sh
svnserve init script (tested on CentOS/RHEL 5.x)
#!/bin/bash
#
# /etc/init.d/subversion
#
# Starts the Subversion Daemon
#
# chkconfig: 2345 90 10
# description: Subversion Daemon
@Dave-Snigier
Dave-Snigier / latency.markdown
Created November 5, 2012 21:51 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs