Skip to content

Instantly share code, notes, and snippets.

@perryh
perryh / cgminer.conf
Created February 7, 2014 03:10
2x ASUS Radeon 270 @ 450 Kh/s each
{
"pools" : [
{
"url" : "stratum+tcp://middlecoin.com:3333",
"user" : "1PUvMDJchasJtNBYpRBGn1r7aPHt77Vwc1",
"pass" : "password"
},
{
"url" : "stratum+tcp://useast.middlecoin.com:3333",
"user" : "1PUvMDJchasJtNBYpRBGn1r7aPHt77Vwc1",
@perryh
perryh / sgminer.conf
Created February 5, 2014 05:57
Radeon 6870 and 6950
{
"pools" : [
{
"url" : "stratum+tcp://middlecoin.com:3333",
"user" : "1PUvMDJchasJtNBYpRBGn1r7aPHt77Vwc1",
"pass" : "x"
},
{
"url" : "http://useast.middlecoin.com",
"user" : "1PUvMDJchasJtNBYpRBGn1r7aPHt77Vwc1",
@perryh
perryh / cgminer.conf
Last active January 4, 2016 07:58
2x Radeon 7850 config
{
"pools" : [
{
"url" : "stratum+tcp://middlecoin.com:3333",
"user" : "1HeJLJ9tHdnHncgEcz5eiNXd4FF2es8Nsv",
"pass" : "password"
},
{
"url" : "stratum+tcp://useast.middlecoin.com:3333",
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-0" RightOf "aticonfig-Screen[0]-0"
EndSection
Section "Module"
EndSection
Section "Monitor"
#!/usr/bin/env ruby -wKU
require 'digest/sha1'
require 'base64'
begin
pans_input = File.open("data/pans.txt", "r")
rescue
print "Invalid file"
end
@perryh
perryh / README.md
Created November 12, 2013 20:11
Twitch.tv

How to use

perry@taylorswift:~/git/twitch.tv|⇒  ruby spellchecker.rb
> nouord
nard
> noioiiord
nard
> IIiboreginallyY
aboriginally
> weke

waka

@perryh
perryh / hw3.py
Last active December 24, 2015 00:58
import numpy as numpy
import time as time
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages as pdf
def product(a1, a2):
start = time.clock()
numpy.dot(a1, a2)
end = time.clock() - start
return end
@perryh
perryh / client.cpp
Last active December 16, 2015 16:09
real-time multimedia simulation client & server
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Argument list too long */
@perryh
perryh / disqus.haml
Last active December 16, 2015 10:09
Disqus HAML embed
#disqus_thread
:javascript
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'YOURSITE.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();