Skip to content

Instantly share code, notes, and snippets.

View harrisj's full-sized avatar

Jacob Harris harrisj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am harrisj on github.
  • I am harrisj (https://keybase.io/harrisj) on keybase.
  • I have a public key whose fingerprint is E181 A3C9 F101 EE15 337E C8E5 B1F3 3CAA 5BC8 4BCC

To claim this, I am signing this object:

@harrisj
harrisj / toasternet.html
Created January 25, 2014 01:08
ToasterNet: a theoretical paper in which we proposed using consumer electronics to build a secret supercomputer for evil ends
<HEAD>
</HEAD>
<BODY>
<H1 ALIGN=CENTER>Toaster Net: Design and Feasibility Analysis of a Java-Based Key Search System</h1>
<H2 ALIGN=CENTER>12/9/96</H2>
<H2 ALIGN=CENTER>Jake Harris, Katy King, Darrin Jewell</H2>
<HR>
<H2>Abstract</H2>
<P>As recent RSA factorization efforts have shown
@harrisj
harrisj / load.rb
Created January 16, 2014 21:11
Here's an example of doing yields in Ruby. The fail! and finished! methods set the state of the load in the DB and save the execution time
def self.audit(command = 'Load')
unless block_given?
raise ArgumentError, "You can only invoke audit with a block"
end
a = nil
begin
a = Load.create :command => command, :status => 'started', :start_time => Time.now
yield a
@harrisj
harrisj / encodings.md
Created October 15, 2013 19:23
A bit of text about encodings from a piece I'll never run, but I felt like sharing this bit

Encodings are the bane of any developer who works with the web. The problem is, the world is filled with many different languages and the ways to represent them have evolved with the evolution of computers. In the beginning, each character was represented as a single byte. This was enough for many Western languages, and the ISO standards defined orthogonal character sets for that. For instance, most Western European languages can be represent with the ISO-8859-1 (aka ISO-Latin-1) character set. ISO-8859-2 has characters used by Central European languages and so on. Asian languages have many more characters and thus used more complicated encoding schemes like Shift JIS. What these means is that each page on the World Wide Web needs to specify its encoding to ensure it's rendered correctly in the browser (although the browser can sometimes guess).

As computers became more powerful and computer memory/storage became marke

@harrisj
harrisj / gist:6701852
Created September 25, 2013 16:01
Awesome spear-phishing email
Your Mit.edu Mail quota has reached limit, You might not be
able to send or receive new mail until you re-validate your
mailbox .To re-validate your mailbox reply to this mail and
fill your mit.edu Email information.
{ Email:
{ User Name:
{ Password:
{Confirm Password:
@harrisj
harrisj / test_output.txt
Created July 17, 2013 19:32
Mr. Show in my tests from an old application
republican candidate
name_with_party
should == "Dickie Crickets (R)"
last_name_with_party
should == "Crickets (R)"
from another party
name_with_party
should == "Mountain Dougie (GRN)"
last_name_with_party
should == "Dougie (GRN)"
@harrisj
harrisj / gist:5767243
Created June 12, 2013 17:12
Recent additions to the Haiku syllable dictionary
50% 4
A.C.L.U. 4
A.F.L. 3
A.T.P. 3
abase 2
abettor 3
ablution 3
Abramovich 4
abridgment 3
absurdum 3
@harrisj
harrisj / gist:5531841
Created May 7, 2013 11:02
Recent additions to the haiku syllable count dictionary 5/7/2013
absoluta 4
acclimatizing 5
acquiescent 4
adjoined 2
afarensis 4
afectado 4
agencias 4
ahora 3
ahorros 3
albumen 3
@harrisj
harrisj / ambiguous_pronunciations
Created April 26, 2013 18:43
Here are the words we have flagged as having possibly ambiguous pronunciations. The haiku dictionary is case-insensitive, which is why there are in all caps (sometimes, there is an issue because of an abbreviation looks like a word)
AB
ABELES
ABERLE
ABKHAZIAN
ABLER
ABS
ABT
ABTS
ACQUIRING
ACREAGE
@harrisj
harrisj / gist:5431899
Created April 22, 2013 01:38
Additions to the haiku syllable dictionary 4/21/2013
100th 3
1850s 4
1860 4
1861 5
1862 5
1863 5
1865 5
1885 5
1909 4
1911 5