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 / 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 / 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 / cookie-monster
Created March 2, 2021 12:50
Cookie clicker helper script
@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 / text-editor
Created March 2, 2021 13:30
Simple text editor
data: text / html, < title > Text Editor < /title><body contenteditable style="font-size:2rem;font-family:Helvetica;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
@tree-s
tree-s / the-printliminator
Created March 2, 2021 13:35
THE PRINTLIMINATOR
javascript:/*THE.PRINTLIMINATOR*/(function(){function%20loadScript(a,b){var%20c=document.createElement('script'),d=document.getElementsByTagName('head')[0],e=!1;c.type='text/javascript',c.src=a,c.onload=c.onreadystatechange=function(){e||this.readyState&&'loaded'!=this.readyState&&'complete'!=this.readyState||(e=!0,b())},d.appendChild(c)}loadScript('//css-tricks.github.io/The-Printliminator/printliminator.min.js',function(){thePrintliminator.init()});})();
//javascript: /*THE.PRINTLIMINATOR*/ (function() {
// function loadScript(a, b) {
// var c = document.createElement('script'),
// d = document.getElementsByTagName('head')[0],
// e = !1;
// c.type = 'text/javascript', c.src = a, c.onload = c.onreadystatechange = function() {
// e || this.readyState && 'loaded' != this.readyState && 'complete' != this.readyState || (e = !0, b())
// }, d.appendChild(c)
// }
@tree-s
tree-s / reddit-stream
Created March 2, 2021 13:37
Reddit stream comments
javascript: (function stream() % 7 Bvar s % 3 D window.location.href.split( % 27 / % 27) % 3 Bvar id % 3 D s % 5 Bs.indexOf( % 27 comments % 27) % 2 B1 % 5 D % 3 Bif(s.indexOf( % 27 comments % 27) ! % 3 D - 1) % 7 B window.location.href % 3 D % 27 http: //reddit-stream.com/comments/%27 %2B id%3B %7D%7D)()%3B
@tree-s
tree-s / github-code
Created March 2, 2021 13:42
Github web IDE
javascript: /^github(?:1s)?\.com$/.test(location.hostname) ? location.hostname = `github${location.hostname === 'github.com' ? '1s' : ''}.com` : location.href = 'https://github.com'
@tree-s
tree-s / vimium-options.json
Last active August 21, 2024 00:07
vimium options to get closer to qutebrowser
{
"settingsVersion": "1.67",
"exclusionRules": [
{
"pattern": "https?://remotedesktop.google.com/*",
"passKeys": ""
},
{
"pattern": "https?://www.vimgenius.com/*",
"passKeys": ""
@tree-s
tree-s / hello-assembly.asm
Created June 9, 2022 16:42
Hello, Windows! in x86 ASM - (c) 2021 Use at your own risk, no warranty!
;-------------------------------------------------------------------------------------------------------------------
; Hello, Windows! in x86 ASM - (c) 2021 Use at your own risk, no warranty!
;-------------------------------------------------------------------------------------------------------------------
; Compiler directives and includes
.386 ; Full 80386 instruction set and mode
.model flat, stdcall ; All 32-bit and later apps are flat. Used to include "tiny, etc"
option casemap:none ; Preserve the case of system identifiers but not our own, more or less