Skip to content

Instantly share code, notes, and snippets.

Leeroy akaleeroy

Block or report user

Report or block akaleeroy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akaleeroy
akaleeroy / README.md
Last active May 30, 2018
Add to Reddit Bookmarklet
View README.md

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
akaleeroy / Slick-Scrollbars.md
Last active May 30, 2018
Slick Scrollbars Userstyle
View Slick-Scrollbars.md

Slick Scrollbars Userstyle

Replace the appalling default Windows scrollbars with these good ones.

Slick Scrollbars Userstyle Demo

They are thin and unobtrusive but by using border: 5px solid transparent they are just as easy to hit.
No need to change width on hover and reflow contents!

View taskbar-quick-close.ahk
; Taskbar Quick Close
; Quick closing windows from the taskbar with Middle-click.
; Ctrl + Middle-click for original action (new window)
#If ShouldActivateMButton()
; Control + Middle-click does the middle-click action (new window)
^MButton::MButton
; Middle-click to close, for quicker one-handed use
MButton::
MouseClick, Right
@akaleeroy
akaleeroy / youtube-thumbnail.js
Last active Aug 22, 2018
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 = `https://i.ytimg.com/vi/${ytplayer.config.args.video_id}/hqdefault.jpg`;
const imageSearchUrl = 'https://images.google.com/searchbyimage?site=search&image_url=' + thumbnailUrl;
const thumbnailWindow = window.open(thumbnailUrl, 'thumbnailWindow');
const imageSearchWindow = window.open(imageSearchUrl, 'imageSearchWindow');
setTimeout(function() {
newWindow.focus();
}, 250);
@akaleeroy
akaleeroy / README.md
Last active Nov 16, 2018
When Over - Run command on event (application close, progress finished, idle)
View README.md

When Over

whenthe muuusic-s.exe "Ooover" "turn /off the-liiiiights"

Usage examples

  • Application closes: whenover 7zG.exe "shutdown -s -t 60" Demo

This will wait for the 7zip archival process to finish and execute system shutdown in 60 seconds

  • Window title becomes "100% of file Bla":
@akaleeroy
akaleeroy / Subreddit-to-YouTube-Source-Bookmarklet.md
Last active Dec 15, 2018
Subreddit to YouTube Source Bookmarklet - Play YouTube music from subreddits in Foobar with foo_youtube
View Subreddit-to-YouTube-Source-Bookmarklet.md

Subreddit to YouTube Source Bookmarklet

No Maintenance Intended

Generates .M3U playlist of all YouTube videos in current subreddit listing for use in foobar2000 with the foo_youtube component.

This isn't maintained, look into R2YS - a foo_jscript_panel script for foobar2000.
Its use of the Reddit API requires an account though.

Preview of Subreddit to YouTubeSource. Creating an M3U playlist from posted YouTube videos

@akaleeroy
akaleeroy / Quick Folder Aliases.md
Last active Jan 20, 2019
Quick Folder Aliases - Self-shortcut aliases to help you find a folder by several names
View Quick Folder Aliases.md

Quick Folder Aliases

Windows AutoHotkey Usability Accelerator

Quick Folder Aliases with Hotkey

In Windows Explorer press Win + F2 or Win + ; to create a self-shortcut alias for the currently opened folder.

@akaleeroy
akaleeroy / fluxautomation.ahk
Last active Mar 12, 2019
Disable f.lux when specific display connected
View fluxautomation.ahk
; Listens for display connected and checks its name against TARGET_DISPLAYS
; then automates "disable for fullscreen apps" option
; CONFIGURE your projector/TV here. Use the names from Screen resolution control panel
global TARGET_DISPLAYS := "MP-CL1A,SONY TV XV" ; MatchList
; [Beginner question and script for dual monitors](https://autohotkey.com/boards/viewtopic.php?t=6035)
OnMessage(0x7E, "onDisplayChange")
onDisplayChange() {
@akaleeroy
akaleeroy / Flatten Black.md
Last active Jun 8, 2019
Flatten Black - Illustrator script to batch convert rich blacks to 100%K
View Flatten Black.md

Flatten Black

Convert rich blacks to flat black

Flatten Black.jsx Demo

Description

Finds all items with enhanced blacks in the artwork and changes their color to flat black.

@akaleeroy
akaleeroy / README.md
Last active Jun 10, 2019
d3.js – Automatic label placement with d3-labeler
View README.md

d3.js v3 + tinker10/D3-Labeler: D3 plug-in for automatic label placement using simulated annealing.

Trying to get good auto-placing of labels on a map.

Am I doing something wrong? It doesn't completely avoid overlaps...
I don't want to have to manually go in and fix overlaps. That way these SVGs can be exported automatically by a build system.

⚠️ Give it a refresh so that the webfont loads from cache.
I didn't take the time to fix orchestration here because I have Montserrat v5 installed, I don't care about running it on the web.

You can’t perform that action at this time.