Skip to content

Instantly share code, notes, and snippets.

View oxguy3's full-sized avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
oxguy3 / imagemagick-cheatsheet.md
Last active August 29, 2015 14:25
A list of useful commands with ImageMagick

ImageMagick commands reference

Most basic usage (convert file type)

convert SRC DEST
convert -format FORMAT SRC DEST # explicitly define type instead of relying on extensions

Basic functions

Resize image

=== EASILY INSTALL CHROME ON FEDORA 22 ===
For some reason, Google Chrome is kind of a pain in the butt to install on
Fedora, and then another pain in the butt to make it not have two icons in your
dock. Let's fix that. Just open a Terminal (no, you don't need to be root) and
paste these lines in to get pain-free Google Chrome. After you run this, press
Alt+F2 and type "r" to make GNOME update.
cat << EOF | sudo tee /etc/yum.repos.d/google-chrome.repo
@oxguy3
oxguy3 / bandcamp-to-plex
Last active September 14, 2015 17:53
Converting Bandcamp file names to Plex file names with mmv
mmv "* - * - [0-9][0-9] *.mp3" "#3#4 - #5.mp3"
mmv "* - cover.*" "cover.#2"
@oxguy3
oxguy3 / free movies.md
Last active October 13, 2015 17:30
Movies put on YouTube for free by their creators

Free legal movies on YouTube

Movies put on YouTube for free by their creators.

Free to Play by Valve Software

FREE TO PLAY is a feature-length documentary that follows three professional gamers from around the world as they compete for a million dollar prize in the first Dota 2 International Tournament. In recent years, E Sports has surged in popularity to become one of the most widely-practiced forms of competitive sport today. A million dollar tournament changed the landscape of the gaming world and for those elite players at the top of their craft, nothing would ever be the same again. Produced by Valve, the film documents the challenges and sacrifices required of players to compete at the highest level.

Kung Fury by Laser Unicorns

Kung Fury is an over-the-top 80’s action comedy that was crowd funded through Kickstarter. It features Kung Fury, a Kung Fu renegade cop who travels back in time to ki

@oxguy3
oxguy3 / awsconsolehome.css
Last active December 14, 2015 03:37
Highlight the services that are important to you on the AWS Console home page
/**
* HOW TO INSTALL THIS STYLE
*
* This is a user style written for Stylish. To use it, first install the Stylish
* extension for your browser. Once it's installed, go to the "Installed Styles"
* page and click "Write new style". Click the Import button (under the "Mozilla
* Format" heading), then copy-paste the entire contents of this file.
*
* Follow the instructions below to edit this style and customize it to your
* preferences. When you are finished, hit the Save button.

Things to do when you set up a new computer

(Windows) Run Ninite

On Windows, installing lots of software at once is a huge pain. Use Ninite to install most of the basics all at once.

Opt-out of tracking ads

The Digital Advertising Alliance has this page where you can request that you not be tracked by the 120+ ad agencies associated with the DAA.

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