Skip to content

Instantly share code, notes, and snippets.

@shortstuffsushi
shortstuffsushi / index.js
Created April 25, 2017 23:52
Skip Google Music
// This script will monitor the Google Music page and skip songs you've already downvoted.
// Google doesn't do this automatically for some weird reason, so this hacks around that.
// Note that you're limited to somewhere around five skips per hour per station, so you
// can pretty quickly run into a scenario where this won't work. In the case that you want
// to stop the script, just run clearInterval(skipper) after this script.
var skipper = setInterval(function() {
// Grab the rating container (first of two with the same class)
var ratingContainer = document.getElementsByClassName('rating-container')[0];
@kizbitz
kizbitz / dockerhub-v2-api-user.sh
Last active April 17, 2023 23:30
Get the list of images and tags for a Docker Hub user account.
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all imagas and tags associated with a Docker Hub user account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username and password
UNAME=""
UPASS=""
@soh-i
soh-i / gist:5866222
Last active May 5, 2021 13:49
Convert XLSX/XLS to CSV file
#!/usr/bin/env perl
use strict;
use warnings;
use Carp;
use Getopt::Long;
use Pod::Usage;
use File::Basename qw/fileparse/;
use File::Spec;
use Spreadsheet::ParseExcel;
@semperos
semperos / newlisp-mgrep.lisp
Created March 15, 2012 05:01
Multi-grep utility with newLISP
#! /usr/bin/newlisp
;; ## Multi-Grep ##
;;
;; First arg should be a regex, or multiple regexes separated by `||`,
;; in which case only lines matching both regexes will be printed.
;;
;; The second arg can be either a file or a glob.
;;
;; Regularize between shell script and executable

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: