Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Culpepper mculp

  • Mississippi
View GitHub Profile
@mculp
mculp / pre-commit
Last active Sep 18, 2020
run rubocop as a git precommit hook
View pre-commit
#!/bin/bash
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
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
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
mculp / potcoin.json
Created May 2, 2014
potcoin peer nodes
View potcoin.json
[
{
"addr" : "107.170.32.10:4200",
"services" : "00000003",
"lastsend" : 1398995130,
"lastrecv" : 1398995130,
"bytessent" : 1085124,
"bytesrecv" : 2291856,
"blocksrequested" : 163,
"conntime" : 1398856332,
@mculp
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 127.0.0.1:3420 check
@mculp
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
http://www.newegg.com/Product/ComboDealDetails.aspx?ItemList=Combo.1548261
$280
Corsair Carbide Series 500R Arctic White Steel / Plastic ATX Mid Tower Gaming Case
http://www.newegg.com/Product/Product.aspx?Item=11-139-010
$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'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
doc = open('https://www.coinmarket.io/market/LEAFBTC').read
@mculp
mculp / leafcoin.conf
Last active Jan 4, 2016
leafcoin config file with noirc set (for irc bootstrapping issues)
View leafcoin.conf
port=22813
gen=0
server=0
addnode=node-leaf.updamoon.net
addnode=5.199.149.228
noirc=1
irc=0
@mculp
mculp / gist:8381641
Created Jan 12, 2014
stablecoin conf
View gist:8381641
rpcuser=username
rpcpassword=password
server=1
daemon=1
addnode=198.143.188.42
addnode=108.186.237.29
addnode=109.121.82.231
addnode=184.171.221.204
addnode=109.80.94.251
addnode=93.138.167.14
@mculp
mculp / gist:8380340
Last active Jan 3, 2016
280x settings
View gist:8380340
{
"pools" : [
{
"url" : "stratum+tcp://pool.chunky.ms:6666",
"user" : "wilrader.280x",
"pass" : "honeybadger"
}
],
"intensity" : "13",
You can’t perform that action at this time.