Skip to content

Instantly share code, notes, and snippets.

View scott-joe's full-sized avatar
🛠️
Tinkering

Scott Williams scott-joe

🛠️
Tinkering
View GitHub Profile

Gather the Top 500 Albums from Rolling Stone

A TamperMonkey Script

About

I'm trying to listen to a new album every day, or at least 365 by the end of a year. To help figure out what to listen to, I thought I could use this list as a source. But their site is slow and riddled with riddled with ad-bloat.

Format

Screenshot 2023-03-20 at 10 54 59

Using

> kill all ssh-agent entries
ssh-add -D
> kill all ssh-agent running processes
ssh-agent -k
> Create new token(s)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
@scott-joe
scott-joe / pg-backup.zsh
Last active September 23, 2015 18:55
Automatically create/update Heroku Postgres databases locally. Add to your custom.zsh file or .bashrc. Also, add `/dumps/*` to your .gitignore if you don't want all that in your repo
alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/log/postgres/server.log start"
alias pgstop="pg_ctl -D /usr/local/var/postgres stop -m fast"
# find id of last backup
__getBackupId() {
echo $( heroku pg:backups | grep 'b\d\d\d' | head -1 | cut -b 1-6 | xargs )
}
# get the app's name from heroku info
__getAppName() {
@scott-joe
scott-joe / kitten-game-styles.css
Last active March 1, 2018 19:05
Changes on top of Sleek theme. I've only styled for things I've seen up to something like year 800 but I wanted something a little cleaner.
#calendarSign {
font-size: 22px;
}
#devPanel {
display: none;
}
#gameLog {
font-size: 10px;
@scott-joe
scott-joe / catnip-guard.js
Last active March 1, 2018 17:55
Catnip Guard
// ==UserScript==
// @name Kitten Game
// @namespace www.soilandthesea.com
// @version 0.6.0
// @description Automates certain production cycles
// @author Scott Williams
// @include http://bloodrizer.ru/games/kittens/
// @include http://bloodrizer.ru/games/kittens/#
// @grant none
// ==/UserScript==
@scott-joe
scott-joe / tasks.hidden-tmTheme
Created June 2, 2015 21:08
Non-italic default PlainTasks theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Notebook</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@scott-joe
scott-joe / gmail-filter-ooo.json
Last active August 29, 2015 14:18
Gmail Filter - OoO
[
{
"name": "OoO",
"author": {
"name": "Scott Williams",
"email": "scott.joe.williams@gmail.com"
},
"filters": {
"operator": null,
"filter-groups": [{
@scott-joe
scott-joe / filter-doc.json
Last active August 29, 2015 14:18
Format for Gmail Filter
[
{
"name": "Email Filter Datastore",
"author": {
"name": "Scott Williams",
"email": "scott.joe.williams@gmail.com"
},
"filters": {
"operator": "one of: AND, OR. Is added between each filter group",
"filter-groups": [{

###Create and checkout a new branch git checkout -b [branchName]

###Checkout a remote branch git checkout -b [localBranchName] origin/[remoteBranchName]

###Push local branch to remote git push -u origin [branchName]

###Delete remote branch

@scott-joe
scott-joe / Invisibility
Last active December 19, 2015 13:18
Works like .hide and .show but maintains element height. Based on http://jsfiddle.net/nGhjQ/
(function($) {
$.fn.invisible = function() {
return this.each(function() {
$(this).fadeTo(100, 0);
$(this).css("visibility", "hidden");
});
};
$.fn.visible = function() {
return this.each(function() {
$(this).css("visibility", "visible");