Skip to content

Instantly share code, notes, and snippets.

@boredzo
boredzo / Enhanced paper trimmer project.md
Last active May 21, 2023 17:24
Enhanced paper trimmer project plan (untested, this is just a braindump)

Enhanced paper trimmer project plan

The Project I'm Not Doing

This project, if I were to do it, would hopefully improve a paper trimmer's ability to deliver consistent, precise cuts to specific measurements.

I developed the urge to do this project after using my existing paper trimmer in the making of my postcards, which came out about the right size but with some variation. I think having hard stops rather than just grid lines might help solve the variation problem.

I don't really have the time or the severity of need to do this project, but it would be nice, so my brain has been hung up on it and I've been researching the heck out of it despite my conscious preference to not do the project.

Hopefully braindumping into this document will be the final step and I won't have to think about it again, at least until the next time I'm unhappy with what comes out of my paper trimmer.

@boredzo
boredzo / gmail-basic-dark.css
Last active April 9, 2022 06:12
Gmail basic UI dark mode stylesheet
/*Gmail dark mode*/
@media(prefers-color-scheme: dark) {
/*
Ideally we could set the background-color of the body itself, but there's no way to refer to that element specifically enough to not also apply to many other sites. This is as close as we can get and it's still fairly generic (though maybe bgcolor= is rare enough these days that it could work).
Next best thing is to set the background-color of every sibling of Gmail's canonical link, which works except for thin strips on the left and right. Oh well.
html[lang="en"] body[bgcolor="#ffffff"],
*/
link[href="https://mail.google.com/mail/"] ~ * {
background-color: #222 !important;
}
@boredzo
boredzo / yes.plist
Created October 27, 2016 05:02
launchctl load yes.plist (launchctl unload yes.plist to undo)
<?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>Label</key>
<string>org.lirpasloof.yes</string>
<key>Program</key>
<string>/usr/bin/yes</string>
<key>RunAtLoad</key>
<true/>
@boredzo
boredzo / nojs.diff
Created August 20, 2016 04:46
Banish needless JavaScript from WordPress 4.5.3.
Index: wp-includes/default-filters.php
===================================================================
--- wp-includes/default-filters.php (revision 38151)
+++ wp-includes/default-filters.php (working copy)
@@ -165,7 +165,7 @@
add_filter( 'the_title_rss', 'ent2ncr', 8 );
add_filter( 'the_title_rss', 'esc_html' );
add_filter( 'the_content_rss', 'ent2ncr', 8 );
-add_filter( 'the_content_feed', 'wp_staticize_emoji' );
+#add_filter( 'the_content_feed', 'wp_staticize_emoji' );
@boredzo
boredzo / colorman.zsh
Last active June 19, 2017 14:44 — forked from cocoalabs/gist:2fb7dc2199b0d4bf160364b8e557eb66
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_md=$'\e[1;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;40;92m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[1;32m' \
man "$@"
}
@boredzo
boredzo / seeyouspacecowboy.sh
Last active July 21, 2018 17:47
A shell script to display SEE YOU SPACE COWBOY whenever you logout of your terminal!
#!/usr/bin/env bash
# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence
@boredzo
boredzo / namegen.py
Last active April 12, 2016 05:46 — forked from fluffy-critter/namegen.py
Dissociator to generate names by example
#!/usr/bin/env python
#
# Based on https://gist.github.com/plaidfluff/aa9983161b2b56f8f2750d661279cb9e
#
# Silly thing to generate random names from examples. Uses the CSV files obtained from
# http://catalog.data.gov/dataset/baby-names-from-social-security-card-applications-national-level-data
#
# Any corpus will work if it's formatted like:
# Name,[ignored],weight
@boredzo
boredzo / skew.scad
Created January 5, 2016 06:02
Skew operator for OpenSCAD
/*skew takes an array of six angles:
*x along y
*x along z
*y along x
*y along z
*z along x
*z along y
*/
module skew(dims) {
matrix = [
@boredzo
boredzo / linux.txt
Created January 5, 2016 05:40
The Linux Cheatsheet I published 12 and a half years ago (and almost 15 years after the original Linux Cheatsheet).
About the Linux Cheatsheet
==========================
maintained by Mac-arena the Bored Zo, [email address that no longer works]
copyright 2003 Mac-arena the Bored Zo
available from [URL no longer works]
HTML/PHP version at [URL works but no longer has a mirror]
MIRRORS WELCOME! please email me if you want to mirror.
some commands submitted by Steve Leopardi [email address deleted],
frost, and rajnchaos
Linux Cheatsheet IS NOT PUBLISHED BY IDG BOOKS and anyone who says it is is
@boredzo
boredzo / YYYY.md
Created October 26, 2015 14:41
Unicode date formats, YYYY?!