Skip to content

Instantly share code, notes, and snippets.

View JesseHerrick's full-sized avatar

Jesse Herrick JesseHerrick

View GitHub Profile
@JesseHerrick
JesseHerrick / kettering-staff.rb
Last active August 29, 2015 14:15
A little Ruby script to quickly get my teacher's emails.
# Kettering Staff "API"
#
# kettering-staff.rb <LAST NAME>
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Jesse Herrick
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

Keybase proof

I hereby claim:

  • I am JesseHerrick on github.
  • I am jesseg17 (https://keybase.io/jesseg17) on keybase.
  • I have a public key whose fingerprint is 4C6A B069 91E2 1130 40F9 E813 CE5E BC41 A8B6 2FDE

To claim this, I am signing this object:

@JesseHerrick
JesseHerrick / cast.json
Last active August 29, 2015 14:09
A secret Santa name assigner.
[
// fusion
"Ashlynn Broedling",
"Ben Phipps",
"Ben Reineke",
"Danni McClendon",
"Eric Turner",
"Imani Terrell",
"Jean Joo",
"Jesse Herrick",
@JesseHerrick
JesseHerrick / gist:717ae9d8f1e694504e53
Created November 10, 2014 00:38
Get all wifi passwords.
mkdir passwds
cd passwds
netsh wlan export profile key=clear
ren *.xml *.txt
@JesseHerrick
JesseHerrick / best-buy.rb
Created October 29, 2014 15:13
Basic attempt at using Best Buy's API.
require 'faraday'
require 'json'
class BestBuy
API_KEY = 'APIKEYHERE' # get one at developer.bestbuy.com
# initializes faraday and adds API key to options hash
def initialize
@options = { apiKey: API_KEY }
@JesseHerrick
JesseHerrick / nginx-user-hosting.conf
Created October 11, 2014 14:24
Nginx user hosting.
location ~ ^/(.+?)(/.*)?$ {
alias /home/$1/www$2;
index index.html;
autoindex on;
}

Keybase proof

I hereby claim:

  • I am jesseherrick on github.
  • I am jesseherrick (https://keybase.io/jesseherrick) on keybase.
  • I have a public key whose fingerprint is 28E9 77CE AB9B D9D4 929A 60F5 CC7B F739 4445 BE75

To claim this, I am signing this object:

@JesseHerrick
JesseHerrick / disk-transfer.txt
Last active August 10, 2016 13:21
Transfer disk image to drive with PROGRESS!
pv -tpreb ~/path/to/foo.img | sudo dd of=/dev/rdisk2 bs=1m
@JesseHerrick
JesseHerrick / breakpoints.scss
Created August 8, 2014 04:37
My SCSS breakpoints.
// responsiveness
@mixin breakpoint($point) {
@if $point == morbidly-obese-bear {
@media (min-width: 1601px) { @content; }
}
@if $point == papa-bear {
@media (max-width: 1600px) { @content; }
}
@else if $point == mama-bear {
@media (max-width: 1250px) { @content; }
@JesseHerrick
JesseHerrick / reset.css
Created August 8, 2014 03:12
Proper reset CSS.
/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,