Skip to content

Instantly share code, notes, and snippets.


Matt Culpepper mculp

  • Mississippi
View GitHub Profile
mculp / pre-commit
Last active Sep 18, 2020
run rubocop as a git precommit hook
View pre-commit
files=$(git status -s | grep -E 'A|M' | awk '{print $2}')
files="$files $(git status -s | grep -E 'R' | awk '{print $4}')"
echo $files | xargs $(which rubocop) --display-cop-names --extra-details --parallel --force-exclusion
mculp / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
mculp / voices.txt
Created Dec 3, 2014
List of voices available by the `say` command on OS X
View voices.txt
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
mculp / potcoin.json
Created May 2, 2014
potcoin peer nodes
View potcoin.json
"addr" : "",
"services" : "00000003",
"lastsend" : 1398995130,
"lastrecv" : 1398995130,
"bytessent" : 1085124,
"bytesrecv" : 2291856,
"blocksrequested" : 163,
"conntime" : 1398856332,
mculp / haproxy.cfg
Last active Aug 29, 2015
haproxy setup
View haproxy.cfg
listen multi :6667
mode tcp
option tcplog
acl use_ruby payload(0,50) -i jimmyneutron
# acl use_ruby payload(0,50) -m sub jimmyneutron
# acl use_ruby payload(0,50) -m reg jimmyneutron
use-server ruby if use_ruby
server diamond check
mculp / gist:8962758
Created Feb 12, 2014
new gaming puter
View gist:8962758
Motherboard & CPU
ASRock Fatal1ty 990FX Killer AM3+ AMD 990FX SATA 6Gb/s USB 3.0 ATX AMD Motherboard
Corsair Carbide Series 500R Arctic White Steel / Plastic ATX Mid Tower Gaming Case
$120 ($20 rebate available)
Rosewill BRONZE Series RBR1000-M 1000W Continuous@40°C, 80Plus Bronze Certified,Modular Cable Design Power Supply
View gist:8770450
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'openssl'
require 'rubygems'
doc = open('').read
mculp / leafcoin.conf
Last active Jan 4, 2016
leafcoin config file with noirc set (for irc bootstrapping issues)
View leafcoin.conf
mculp / gist:8381641
Created Jan 12, 2014
stablecoin conf
View gist:8381641
mculp / gist:8380340
Last active Jan 3, 2016
280x settings
View gist:8380340
"pools" : [
"url" : "stratum+tcp://",
"user" : "wilrader.280x",
"pass" : "honeybadger"
"intensity" : "13",
You can’t perform that action at this time.