Skip to content

Instantly share code, notes, and snippets.

@brentsimmons
brentsimmons / NSMenuItem+RSCore.swift
Created January 6, 2026 04:11
Disable all menu item images in a Mac app.
//
// NSMenuItem+RSCore.swift
// RSCore
//
// Created by Brent Simmons on 1/5/26.
//
#if os(macOS)
import AppKit
import ObjectiveC
@bramus
bramus / bookmarklet.md
Last active September 20, 2024 07:01
Mastodon User Page Bookmarklet
@katef
katef / life-utf8.c
Last active September 8, 2024 05:59
XBM to UTF-8 braille image things
/*
* John Conway's Game of Life.
*
* This is written for POSIX, using Curses. Resizing of the terminal is not
* supported.
*
* By convention in this program, x is the horizontal coordinate and y is
* vertical. There correspond to the width and height respectively.
* The current generation number is illustrated when show_generation is set.
*
@kangalio
kangalio / all-discord-emojis-2020-05-08.json
Last active August 13, 2021 04:46
This is an exhaustive list of all Discord emojis in use as of 2020-05-08. It's scraped from the Discord Javascript source code. Licensed under the [CC0](https://creativecommons.org/publicdomain/zero/1.0/legalcode) (effectively public domain)
{
"people": [
{
"names": [
"grinning"
],
"surrogates": "πŸ˜€",
"unicodeVersion": 6.1
},
{
@adamghill
adamghill / clean_macos.md
Last active May 24, 2026 14:48
Things to setup on a clean MacOS install

An opinionated list of things that I tend to do on a clean install of MacOS.

MacOS applications

  • Rectange: Resize and move around windows with the keyboard
  • Postgres.app: Easiest way to run a local Postgres server
  • VS Code: For when an IDE might actually be useful
  • 1Password: Better than a Post-It note stuck to your monitor
  • Ghostty: Scary-fast replacement for the basic Term.app
  • GitUp: A clean git UI
@oliveratgithub
oliveratgithub / emojis.json
Last active May 21, 2026 09:29
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@MichaelLawton
MichaelLawton / deleteAmazonSavedItems.js
Last active May 29, 2026 05:53
Removes all Amazon saved for later items on the cart page. It will only remove visible items. You might want to scroll first to make more items visible. To use paste code in developer console (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
function deleteSavedItems() {
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]")
if (query.length) {
query[0].click();
}
if (query.length > 1) {
setTimeout(deleteSavedItems,100);
}
else {
console.log('Finished');
@russellaugust
russellaugust / PlexVideoSnippets.py
Last active December 18, 2017 14:25
Script that will grab a one minute clip from the current playhead of Plex. The idea is if you're watching Plex and see something funny/awesome/weird, you can click a button and grab that moment.
# Meant to allow you to grab and save 1 minute videos at any given moment while watching something on Plex.
# This also saves it to Dropbox. It needs to be run locally.
# This has a few dependencies. Needs moviepy, ffmpeg, anddddddd I think that's it.
import os
import urllib
import urllib2
import xml.etree.ElementTree as etree
from moviepy.editor import *
from click import command, option, Option, UsageError
class MutuallyExclusiveOption(Option):
def __init__(self, *args, **kwargs):
self.mutually_exclusive = set(kwargs.pop('mutually_exclusive', []))
help = kwargs.get('help', '')
if self.mutually_exclusive:
ex_str = ', '.join(self.mutually_exclusive)
kwargs['help'] = help + (
@shmup
shmup / torrents.md
Last active May 25, 2026 22:53
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client: