Skip to content

Instantly share code, notes, and snippets.

View oxguy3's full-sized avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
oxguy3 / filters.txt
Last active February 2, 2024 13:57
Custom adblocking filters for removing annoyances
[Adblock Plus 2.0]
! Title: oxguy3's adblocking filters
! Expires: 1 hour
! Homepage: https://gist.github.com/oxguy3/dda7958f7da766eed9fa
! Licence: http://www.wtfpl.net/txt/copying/
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! smooth scrolling
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Keybase proof

I hereby claim:

  • I am oxguy3 on github.
  • I am oxguy3 (https://keybase.io/oxguy3) on keybase.
  • I have a public key whose fingerprint is 754F FF90 7E28 2085 32E5 BE86 D902 728B 9E15 BA71

To claim this, I am signing this object:

@oxguy3
oxguy3 / Clark County NV building permits without IE.js
Last active December 29, 2015 16:35
Clark County NV's building permits report generator relies on clientside VBScript to work. Since this isn't 2002 and since I'm not using Internet Explorer, I ported (some of) that code to JavaScript (via a TamperMonkey script) so the website is usable.
// ==UserScript==
// @name Make Clark County NV building permits IE-free
// @namespace http://tampermonkey.net/
// @version 0.1
// @description For some awful reason, Clark County uses clientside VBScript. This is a drop-in JavaScript replacement for that code.
// @author Hayden Schiff (oxguy3)
// @match http://dsnet.co.clark.nv.us/dsreports/bldgpermits.asp
// @grant unsafeWindow
// ==/UserScript==
/* jshint -W097 */
@oxguy3
oxguy3 / codefonts.md
Last active December 30, 2015 23:18
Some very nice fonts to write code in

code fonts

Some very nice fonts to write code in

the fonts

3270font

get it
Recreation of the IBM 3270 terminal font

@oxguy3
oxguy3 / google sheets better formulas.md
Last active January 8, 2016 00:07
scratchpad of ideas for making Google Sheets formulas much nicer

Google Sheets better formulas idea

Basically, I passionately hate the cramped awkward language that Google Sheets uses for formulas. Wouldn't it be super cool if there were a much nicer language you could work with that compiled back into Google Sheets? It'd be like CoffeeScript, but for Google Sheets, and with a browser extension so you could do it all seamlessly in Google Sheets.

So first off, there's some basic obvious stuff you'd want to do:

  • Pretty printing: split across multiple lines, add indentation, add color coding
  • Cleaner logical operators: replace AND(x,y) with x && y, replace IF(a,b,c) with something like if (a) { b } else { c }, etc.
  • Better function names: kill the ALL CAPS regime, and give things clearer names (for example, why the hell does FIND() mean case-sensitive search and SEARCH() means case-insensitive search?? how are you supposed to remember which is which??)

Beyond that basic cleanup, there's some further really complicated (but really convenient) stuff you coul

@oxguy3
oxguy3 / miscellaneous_cleanup.css
Last active March 1, 2019 16:26
A master stylesheet for fixing little frustrations all over the web. Import to your browser with the Stylus extension.
/**
* Strike out links to certain websites to avoid accidentally visiting them.
*/
a[href*="//forbes.com"], a[data-href*="//forbes.com"], a[data-full-url*="//forbes.com"],
a[href*="//www.forbes.com"], a[data-href*="//www.forbes.com"], a[data-full-url*="//www.forbes.com"],
a[href*="//onforb.es"], a[data-href*="//onforb.es"], a[data-full-url*="//onforb.es"],
a[href*="//bizjournals.com"], a[data-href*="//bizjournals.com"], a[data-full-url*="//bizjournals.com"],
a[href*="//www.bizjournals.com"], a[data-href*="//www.bizjournals.com"], a[data-full-url*="//www.bizjournals.com"],
a[href*="//wired.com"], a[data-href*="//wired.com"], a[data-full-url*="//wired.com"],
a[href*="//www.wired.com"], a[data-href*="//www.wired.com"], a[data-full-url*="//www.wired.com"],
@oxguy3
oxguy3 / figlol.sh
Last active February 24, 2016 03:15
bash script for giant animated rainbow text in your terminal
# Run `figlol <your message...>` to start it. To stop, mash ^C til it terminates, then run `unfiglol` to clean up.
# It's sorta derpy on some terminal window sizes; you might need to adjust it.
# Requires figlet (`brew/yum/dnf/apt-get install figlet`) and lolcat (`gem install lolcat`)
figlol() {
echo $@ | figlet -w `tput cols` -c -f doh > /tmp/figlol.txt;
clear;
tput civis;
i=1;
while true; do
@oxguy3
oxguy3 / RoughScroll.js
Last active September 27, 2023 15:02
Greasemonkey script for disabling smooth scrolling across the web (WIP! currently breaks a few websites, unfortunately)
// ==UserScript==
// @name RoughScroll
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Disables smooth scrolling on ALL websites
// @author Hayden Schiff (oxguy3)
// @match *://*/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@oxguy3
oxguy3 / watchlist.enwiki.txt
Last active September 1, 2017 00:47
My English Wikipedia watchlist (backed up here just in case)
2017 FC Cincinnati season
ASafaWeb
Alan Koch (soccer)
Atlantic Coast Conference Men's Soccer Offensive Player of the Year
Butler County OH
CSP Industries
Camp Camp
Carl H. Linder III
Carl H. Lindner III
Carl Henry Linder III
@oxguy3
oxguy3 / adblock_whitelist.txt
Last active March 3, 2017 00:35
whitelist for my adblocker
192.168.1.32
about-scheme
achievementhunter.com
adf.ly
analytics.google.com
app.plex.tv
arstechnica.com
asdf.com
askubuntu.com
bandcamp.com