Skip to content

Instantly share code, notes, and snippets.

View tree-s's full-sized avatar
👋

Michael J. MacMullin tree-s

👋
View GitHub Profile
@tree-s
tree-s / outline
Created March 2, 2021 13:22
Outline reader tool
javascript: (function() % 7 Bwindow.location.href % 3 D 'https%3A%2F%2Foutline.com%2F' % 2 B window.location.href % 7 D)()
@tree-s
tree-s / cookie-monster
Created March 2, 2021 12:50
Cookie clicker helper script
@tree-s
tree-s / convert
Created March 2, 2021 12:44
Convert from metric and empirical units
javascript:(function(){var head=document.getElementsByTagName('head')[0],script=document.createElement('script');script.type='text/javascript';script.src='http://www.ossus.ch/convert.js?'+Math.floor(Math.random()*99999);head.appendChild(script);})(); void 0
//javascript: (function() {
// var head = document.getElementsByTagName('head')[0],
// script = document.createElement('script');
// script.type = 'text/javascript';
// script.src = 'http://www.ossus.ch/convert.js?' + Math.floor(Math.random() * 99999);
// head.appendChild(script);
//})();
//void 0
@tree-s
tree-s / curl-transmission.sh
Last active January 30, 2025 00:58
--curl new torrents to a transmission web daemon
#!/bin/bash
test -z $1 && echo "need magnet link!
$0 <magnet link>" && exit -1
HOST=YourRemoteHostNameOrIP
PORT=YourPort(default is 9091)
USER=User
# NOTE: I had issues using passwords with semicolons (;) in them,
# you might want to stay away from them
PASS=pass
@tree-s
tree-s / foreground-lock-timeout.reg
Last active August 21, 2024 00:09
--prevent applications from stealing focus on Windows 10
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ForegroundLockTimeout"=dword:00000000
@tree-s
tree-s / config.yml
Last active August 21, 2024 00:09
Flexget archiso
tasks:
arch_task:
regexp_parse:
source: 'https://www.archlinux.org/download/'
keys:
title:
regexps:
- {regexp: '(?<=title=\"Magnet link\">)[a-zA-Z0-9\.\s]*'}
url:
regexps:
@tree-s
tree-s / nethack.bdf
Last active August 21, 2024 00:10
Big Sony Nethack characters
STARTFONT 2.1
COMMENT
COMMENT This font is a modification of the Sony 12x24 font distributed
COMMENT with X11. The Sony copyright and license agreement are below.
COMMENT
COMMENT Modifications for Nethack: Copyright 1998-2002
COMMENT by Thomas A. Fine
COMMENT Email to my last name at head.cfa.harvard.edu
COMMENT http://hea-www.harvard.edu/~fine/
COMMENT
@tree-s
tree-s / .nethackrc
Last active August 21, 2024 00:10
Big Sony Nethack Font
## This is an example nethackrc file. You should edit this to suit your needs
## Edit this on the NAO website: https://alt.org/nethack/webconf/
## or if in terminal, see https://alt.org/nethack/virus.txt
## curses options
OPTIONS=windowtype:curses
## use IBMgraphics or DECgraphics
#OPTIONS=symset:DECgraphics
@tree-s
tree-s / Makefile.global.diff
Last active August 21, 2024 00:10
homebrew-php update for Formula/abstract-php.rb
diff --git a/Makefile.global b/Makefile.global
index b30c318..e8dd419 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -20,7 +20,7 @@ libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
- $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+ $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(MH_BUNDLE_FLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
@tree-s
tree-s / tmux-resurrect.sh
Last active August 21, 2024 00:10
Resurrect tmux session backup/restore
#!/bin/bash
#######################
# Usage
usage() {
echo "USAGE: ${0} -b | -r [backup_number]"
exit 1
}
#######################
# Config Variables