Skip to content

Instantly share code, notes, and snippets.

View jakerullman's full-sized avatar
☁️
Building the cloud.

Jake Rullman jakerullman

☁️
Building the cloud.
View GitHub Profile
@jakerullman
jakerullman / pip.js
Created January 17, 2017 19:31
bookmarklet to activate safari picture-in-picture mode
javascript:document.querySelector("video").webkitSetPresentationMode("picture-in-picture");
@jakerullman
jakerullman / compilation.sh
Last active January 17, 2017 19:30
look like you're busy
#!/bin/bash
collect()
{
while read line;do
if [ -d "$line" ];then
(for i in "$line"/*;do echo $i;done)|sort -R|collect
echo $line
elif [[ "$line" == *".h" ]];then
echo $line
fi
@jakerullman
jakerullman / nginx.conf
Created August 13, 2015 19:31
Nginx configuration for dash.json
server {
server_name $domain_name;
root /var/www;
index index.html index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Cache static files for as long as possible
location ~* \.(?:xml|ogg|mp3|mp4|ogv|svg|svgz|eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico)$ {
try_files $uri =404;
@jakerullman
jakerullman / death.js
Created March 11, 2015 23:37
Browser reload death.
window.onbeforeunload = function () {
while (true) {
console.log("AAAA");
}
};
@jakerullman
jakerullman / superfish.crt
Created February 19, 2015 17:42
Superfish
-----BEGIN CERTIFICATE-----
MIIC9TCCAl6gAwIBAgIJANL8E4epRNznMA0GCSqGSIb3DQEBBQUAMFsxGDAWBgNV
BAoTD1N1cGVyZmlzaCwgSW5jLjELMAkGA1UEBxMCU0YxCzAJBgNVBAgTAkNBMQsw
CQYDVQQGEwJVUzEYMBYGA1UEAxMPU3VwZXJmaXNoLCBJbmMuMB4XDTE0MDUxMjE2
MjUyNloXDTM0MDUwNzE2MjUyNlowWzEYMBYGA1UEChMPU3VwZXJmaXNoLCBJbmMu
MQswCQYDVQQHEwJTRjELMAkGA1UECBMCQ0ExCzAJBgNVBAYTAlVTMRgwFgYDVQQD
Ew9TdXBlcmZpc2gsIEluYy4wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOjz
Shh2Xxk/sc9Y6X9DBwmVgDXFD/5xMSeBmRImIKXfj2r8QlU57gk4idngNsSsAYJb
1Tnm+Y8HiN/+7vahFM6pdEXY/fAXVyqC4XouEpNarIrXFWPRt5tVgA9YvBxJ7SBi
3bZMpTrrHD2g/3pxptMQeDOuS8Ic/ZJKocPnQaQtAgMBAAGjgcAwgb0wDAYDVR0T

Keybase proof

I hereby claim:

  • I am jakerullman on github.
  • I am rullman (https://keybase.io/rullman) on keybase.
  • I have a public key whose fingerprint is 5A5E FF6C 5ACF C350 04FE 011C DBB2 D326 9C69 BF87

To claim this, I am signing this object:

@jakerullman
jakerullman / index.php
Created April 3, 2014 01:39
Leaked Facebook files from 2007
<? php
include_once $_SERVER['PHP_ROOT'].'/html/init.php';
include_once $_SERVER['PHP_ROOT'].'/lib/home.php';
include_once $_SERVER['PHP_ROOT'].'/lib/requests.php';
include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php';
include_once $_SERVER['PHP_ROOT'].'/lib/poke.php';
include_once $_SERVER['PHP_ROOT'].'/lib/share.php';
include_once $_SERVER['PHP_ROOT'].'/lib/orientation.php';
include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php';
@jakerullman
jakerullman / random.py
Last active August 29, 2015 13:58
Random Numbers
# Lottery Number Generator
from random import choice
import console
#Helper function to input a number within a given range:
def input_number(prompt, min_value, max_value):
value = None
while value is None:
try:
@jakerullman
jakerullman / lock.js
Last active January 1, 2016 17:39
Scrolling lock JavaScript.
// VARIABLES
var counter = 1;
var scrollDirection;
var slides = $('#main div');
var slidesLength = slides.length;
var inTransition = false;
// SCROLL DISTANCES
function scrollAnimate(distance){
inTransition = true;
class TodoList < Array
def self.load(file)
# read the file, create a list, create items, add them to the list, return the list
list = TodoList.new
File.read(file).each_line do |line|
list << line.chomp
end
list
end