Skip to content

Instantly share code, notes, and snippets.

@acegiak
acegiak / Less Horrific Itch.js
Created February 26, 2023 13:43
Tampermonkey/Greasemonkey: Automatically filter out horror games from itch.io
// ==UserScript==
// @name Remove Horror From Itch
// @match *://itch.io/*
// @run-at document-start
// @grant none
// @description add exclude horror filter to all itch.io pages
// ==/UserScript==
var oldUrlPath = window.location;
@sunsided
sunsided / gp.sh
Created August 24, 2017 14:00
kubectl color output: finally you can tell Pending from Running
# https://unix.stackexchange.com/a/10065
# if stdout is a terminal
if test -t 1; then
# see if it supports colors
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold="$(tput bold)"
underline="$(tput smul)"
standout="$(tput smso)"
normal="$(tput sgr0)"
@squarism
squarism / iterm2.md
Last active August 6, 2025 12:58
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@JeanMertz
JeanMertz / syntax_highlighting.py
Created April 18, 2011 08:39
Ruby on Rails syntax highlight switcher for Sublime Text 2
import sublime, sublime_plugin
import os
class DetectFileTypeCommand(sublime_plugin.EventListener):
""" Detects current file type if the file's extension isn't conclusive """
""" Modified for Ruby on Rails and Sublime Text 2 """
""" Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """
def on_load(self, view):
filename = view.file_name()