Skip to content

Instantly share code, notes, and snippets.

@jveldboom
jveldboom / bisac.csv
Created September 12, 2013 18:52
BISAC codes and values
ANT000000 Antiques & Collectibles / General
ANT001000 Antiques & Collectibles / Americana
ANT002000 Antiques & Collectibles / Art
ANT003000 Antiques & Collectibles / Autographs
ANT005000 Antiques & Collectibles / Books
ANT006000 Antiques & Collectibles / Bottles
ANT007000 Antiques & Collectibles / Buttons & Pins
ANT008000 Antiques & Collectibles / Care & Restoration
ANT009000 Antiques & Collectibles / Transportation
ANT010000 Antiques & Collectibles / Clocks & Watches
@calebperkins
calebperkins / safari-cache
Created October 13, 2013 02:11
View all the images stored in Safari's cache.
#!/bin/sh
# View all the images stored in Safari's cache.
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" > ~/Desktop/cache.html
echo " \"http://www.w3.org/TR/html4/strict.dtd\">" >> ~/Desktop/cache.html
echo "<html lang=\"en\">" >> ~/Desktop/cache.html
echo " <head>" >> ~/Desktop/cache.html
echo " <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">" >> ~/Desktop/cache.html
echo " <title>Cached Images</title>" >> ~/Desktop/cache.html
@fomightez
fomightez / remove blank lines regex.md
Last active May 26, 2026 04:26
remove all blank lines using regular expressions
@dingzeyuli
dingzeyuli / check_github_repo_size
Created December 16, 2016 22:34
Check the size of a github repo before downloading
# http://webapps.stackexchange.com/questions/39587/view-estimated-size-of-github-repository-before-cloning
# tested on macOS
echo https://github.com/torvalds/linux.git | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:\.git)?$!' | xargs -I{} curl -s -k https://api.github.com/repos/'{}' | grep size
# output:
# "size": 1746294,
@miclf
miclf / macos_keyboard_shortcuts_exporter_importer.php
Last active July 8, 2026 16:51
A small tool to automatically export and import custom macOS keyboard shortcuts.
#!/usr/bin/env php
<?php
// Determine which command has been called.
$cmd = (!empty($argv[1])) ? strtolower($argv[1]) : null;
// If an invalid number of arguments has been passed (or if no argument
// was given at all), display help information.
if ($argc < 2 || $argc > 3 || !in_array($cmd, ['save', 'load'])) {
@trusktr
trusktr / image-grid.md
Last active April 16, 2026 01:44
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
@ammarshah
ammarshah / all_email_provider_domains.txt
Last active July 14, 2026 16:36
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@ciphercharly
ciphercharly / links.md
Last active November 21, 2018 19:53
links
@kmancher
kmancher / rethink.js
Last active March 20, 2019 03:47
quote sorter
let allButton, mortButton, partButton, impButton, mortClose;
function setup() {
createCanvas(windowWidth, windowHeight);
noStroke();
allButton = createButton('all');
allButton.position(width-220, 20);
mortButton = createButton('mortality');
mortButton.position(width-220, 90);
// This app initially started from Flavio Copes analytics example
// but diverged quite a bit to generate images as well as track views
// https://flaviocopes.com/count-visits-static-site/
const express = require('express')
const app = express()
// no db - so global var to keep track of count
let counter = 0