Skip to content

Instantly share code, notes, and snippets.

View gnu-user's full-sized avatar

Jonathan Gillett gnu-user

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gnu-user on github.
  • I am gnu_user (https://keybase.io/gnu_user) on keybase.
  • I have a public key ASAUKdUn1dROfLNqM_RHHzqhjx7murMacorksRiAoUnm3Qo

To claim this, I am signing this object:

@gnu-user
gnu-user / setup.sh
Last active January 15, 2017 20:39
Linux Setup Script
#!/bin/bash
# To install the build systems and tools
sudo apt-get update -y
sudo apt-get install -y build-essential clang lldb valgrind htop vim git
# Install chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update -y
@gnu-user
gnu-user / passphrases
Created February 18, 2015 20:48
CSCLUB PASSPHRASES
PASSPHRASE: coinsjesusthree
PASSPHRASE: reluctanthaving
PASSPHRASE: devilcockhorse
@gnu-user
gnu-user / MATCHING TEST
Last active August 29, 2015 13:56
MATCHING TEST
=================== BEFORE MATCHING ===================
Index 1: 1 => 493.712, 3 => 682.01, 4 => 69.814,
Index 2: 1 => 54.5619, 3 => 263.31, 5 => 296.589,
Index 3: 2 => 526.541, 3 => 435.147, 5 => 436.406,
Index 4: 1 => 196.087, 3 => 56.2228, 5 => 59.6825,
Index 5: 1 => 379.613, 2 => 73.8173, 3 => 354.515,
@gnu-user
gnu-user / MATCHING ALGORITHM
Last active August 29, 2015 13:56
ONE ROUND OF MATCHING
FIRST FRAME
=================== BEFORE MATCHING ===================
Index 0: 0 => 0, 2 => 110.2, 4 => 116.927,
Index 1: 1 => 0, 2 => 171.451, 6 => 105.127,
Index 2: 0 => 110.2, 2 => 0, 5 => 153.346,
Index 3: 3 => 0, 4 => 83.6504, 7 => 43.8724,
Index 4: 4 => 0, 5 => 76.7654, 8 => 78.9044,
Index 5: 4 => 76.7654, 5 => 0, 8 => 49.4199,
Index 6: 1 => 105.127, 6 => 0, 9 => 92.5667,
@gnu-user
gnu-user / tinfoil-sms crash
Created January 10, 2014 03:41
Tinfoil-SMS Crash Log
01-09 22:39:10.846: E/AndroidRuntime(6751): FATAL EXCEPTION: main
01-09 22:39:10.846: E/AndroidRuntime(6751): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tinfoil.sms/com.tinfoil.sms.sms.ConversationView}: android.database.sqlite.SQLiteException: 11 values for 10 columns (code 1): , while compiling: INSERT OR IGNORE INTO walkthrough (id, intro,start_import, import,start_exchange, set_secret,pending, accept,success, close) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
01-09 22:39:10.846: E/AndroidRuntime(6751): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
01-09 22:39:10.846: E/AndroidRuntime(6751): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
01-09 22:39:10.846: E/AndroidRuntime(6751): at android.app.ActivityThread.access$600(ActivityThread.java:141)
01-09 22:39:10.846: E/AndroidRuntime(6751): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
01-09 22:39:10.846: E/AndroidRuntime(6751): at android.o
@gnu-user
gnu-user / gist:5703269
Created June 4, 2013 02:57
Apache Virtual Hosts Configuration
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
@gnu-user
gnu-user / gist:5691987
Created June 1, 2013 22:54
Add 10 test accounts for testing the elections website
INSERT INTO ucsc_members VALUES ('Bobby', 'Tables', AES_ENCRYPT('100123456', 'test123'), 'test@gmail.com', 'test1', AES_ENCRYPT('DEADBEEFtest123', 'test123'), NULL, '2012-01-23', CURDATE(), TRUE);
INSERT INTO ucsc_members VALUES ('Timmy', 'Tables', AES_ENCRYPT('100123456', 'test123'), 'test@gmail.com', 'test2', AES_ENCRYPT('DEADBEEFtest123', 'test123'), NULL, '2013-01-23', CURDATE(), TRUE);
INSERT INTO ucsc_members VALUES ('Jimmy', 'Tables', AES_ENCRYPT('100123456', 'test123'), 'test@gmail.com', 'test3', AES_ENCRYPT('DEADBEEFtest123', 'test123'), NULL, '2013-01-03', CURDATE(), TRUE);
INSERT INTO ucsc_members VALUES ('Harry', 'Tables', AES_ENCRYPT('100123456', 'test123'), 'test@gmail.com', 'test4', AES_ENCRYPT('DEADBEEFtest123', 'test123'), NULL, '2013-01-03', CURDATE(), TRUE);
INSERT INTO ucsc_members VALUES ('Larry', 'Tables', AES_ENCRYPT('100123456', 'test123'), 'test@gmail.com', 'test5', AES_ENCRYPT('DEADBEEFtest123', 'test123'), NULL, '2012-05-03', CURDATE(), TRUE);
@gnu-user
gnu-user / diff.py
Created March 18, 2013 00:23
Diff.py use instead of the normal diff if you want git to use meld for diffing files.
#!/usr/bin/python
import sys
import os
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5]))
@gnu-user
gnu-user / layout.txt
Created February 22, 2013 19:14
The structure/layout of the front-end project
front-end
src/
include/
lib/
include/
Poco/
...
...poco header files..
...
static/