Skip to content

Instantly share code, notes, and snippets.

akaleeroy / loadfonts.cmd
Last active December 29, 2015 00:59
LoadFonts SendTo Command - Load missing fonts required by an Illustrator file from the folder where you keep your font library.
View loadfonts.cmd
@echo off
setLocal EnableDelayedExpansion
cd /d %~dp1
set init=init-%RANDOM%.tmp
set clean=clean-%RANDOM%.tmp
set fp=%~n1.fonts.txt
:: EDIT THIS LINE with the location of your own font collection folder
set fontdir="F:\Fonts"
akaleeroy / toggle.bat
Last active December 29, 2015 02:19
Pretty Decent Folder Hider - Batch file that hides a folder through shenanigans.
View toggle.bat
@echo off
:: The parent directory where the stash is
cd /d "E:\"
:: Check if the stash is exposed and lock it, unlock it if not
if not exist "*.{ed50fc29-b964-48a9-afb3-15ebb9b97f36}" ( goto Lock ) else goto Unlock
ren "E:\Stash" Inconspicuous.{ed50fc29-b964-48a9-afb3-15ebb9b97f36}
cacls Inconspicuous.{ed50fc29-b964-48a9-afb3-15ebb9b97f36} /e /c /d %username%
goto :End
akaleeroy / youtube-fragment.js
Last active December 29, 2015 12:49
YouTube Fragment Bookmarklet - Link to a specific portion of a video.
View youtube-fragment.js
/*jslint */
/*global movie_player */
(function () {
var id = document.querySelector('meta[itemprop="videoId"]').content,
w;'YouTube Fragment Bookmarklet\n' +
'Keyboard shortcuts:\n' +
akaleeroy /
Last active November 16, 2018 06:09
When Over - Run command on event (application close, progress finished, idle)
akaleeroy / prettylink.js
Last active August 29, 2015 13:57
Pretty Link Bookmarklet
View prettylink.js
akaleeroy / youtube-thumbnail.js
Last active August 22, 2018 08:54
YouTube Thumbnail Image Search Bookmarklet
View youtube-thumbnail.js
javascript: (function() {
// var thumb = document.querySelector("meta[property='og:image']").content;
// var t = document.querySelector("link[itemprop='thumbnailUrl']").href;
const thumbnailUrl = `${ytplayer.config.args.video_id}/hqdefault.jpg`;
const imageSearchUrl = '' + thumbnailUrl;
const thumbnailWindow =, 'thumbnailWindow');
const imageSearchWindow =, 'imageSearchWindow');
setTimeout(function() {
}, 250);
akaleeroy /
Last active November 9, 2017 22:52
Portabilitate Bookmarklet - Verifica in ce retea suni
akaleeroy /
Last active August 14, 2021 05:06
Subreddit to YouTube Source Bookmarklet - Play YouTube music from subreddits in Foobar with foo_youtube
akaleeroy /
Last active May 30, 2018 12:59
Add to Reddit Bookmarklet

Add to Reddit Bookmarklet

Bookmarklet to quickly submit links to your subreddit of choice. Replace YOURSUBREDDITHERE accordingly.

  • Opens in new window so it doesn't navigate away from playing music/video.
  • On YouTube it grabs the title without the - YouTube termination.
akaleeroy /
Last active April 4, 2016 19:34
Configure Blender STL Import/Export default settings

Configure Blender STL default settings

Blender STL default settings aren't what I like to have by default. Working in millimeters inside Blender makes the STLs come out tiny, so I tried to find a way to change these defaults and keep it that way.

Turns out they're baked into the io_mesh_stl script. This gist is a Windows PowerShell script to make the necessary adjustments. They are:
ImportSTL global_scale at becomes default=0.1

ExportSTL use_selection below at becomes default=True.