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 / prettylink.js
Last active Aug 29, 2015
Pretty Link Bookmarklet
View prettylink.js
@akaleeroy
akaleeroy / loadfonts.cmd
Last active Dec 29, 2015
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
akaleeroy / toggle.bat
Last active Dec 29, 2015
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
:Lock
ren "E:\Stash" Inconspicuous.{ed50fc29-b964-48a9-afb3-15ebb9b97f36}
cacls Inconspicuous.{ed50fc29-b964-48a9-afb3-15ebb9b97f36} /e /c /d %username%
goto :End
@akaleeroy
akaleeroy / youtube-fragment.js
Last active Dec 29, 2015
YouTube Fragment Bookmarklet - Link to a specific portion of a video.
View youtube-fragment.js
/*jslint */
/*global movie_player */
//javascript:
(function () {
var id = document.querySelector('meta[itemprop="videoId"]').content,
markIn,
markOut,
w;
console.info('YouTube Fragment Bookmarklet\n' +
'Keyboard shortcuts:\n' +
@akaleeroy
akaleeroy / Configure-Blender-STL.md
Last active Apr 4, 2016
Configure Blender STL Import/Export default settings
View Configure-Blender-STL.md

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 _init_.py#L102 becomes default=0.1

ExportSTL use_selection below at _init_.py#L166 becomes default=True.

@akaleeroy
akaleeroy / Conjoined-Twins.md
Last active Jan 3, 2017
Conjoined Twins - IFTTT-style application actions using auditing and scheduled tasks under Windows
View Conjoined-Twins.md

Conjoined Twins

IFTTT-style application actions using auditing and scheduled tasks under Windows

Conjoined Twins IFTTT-style application actions PowerShell script demo

How it works

The script audits a trigger application to make it raise an event when it's executed, then schedules a task to run an action command on that event. For example an automation script, or a batch file, or another app.

Advantages

@akaleeroy
akaleeroy / Internet-Connection.ps1
Created May 12, 2017
PowerShell Internet Connection helper functions: Test-InternetAccess, Go-Offline, Go-Online
View Internet-Connection.ps1
#Requires -Version 2.0
function Test-InternetAccess {
<#
.SYNOPSIS
Tests connectivity by pinging Google DNS servers once
.DESCRIPTION
Uses Test-Connection to ping a host, with -Quiet for returning a boolean. The default is a highly available Google DNS server (8.8.4.4)
.EXAMPLE
Test-InternetAccess
@akaleeroy
akaleeroy / README.md
Last active Nov 9, 2017
Portabilitate Bookmarklet - Verifica in ce retea suni
View README.md

Portabilitate Bookmarklet

Verifică în ce rețea suni

Cum arata cand folosesti bookmarkletul

Instalare

Copiază textul fișierului portabilitate-bookmarklet.min.js și pune-l în câmpul URL când creezi un nou bookmark.

Folosire

@akaleeroy
akaleeroy / Currently-Opened-Folders.md
Last active Feb 20, 2018
Easy Access to Currently Opened Folders
View Currently-Opened-Folders.md

Easy Access to Currently Opened Folders

Windows Enhancement Productivity

Enhance Open... or Save As... dialogs with a quick way to navigate to currently opened folders.

Easy Access to Currently Opened Folders - Demo

This is an AutoHotkey script that gives common file selection dialogs an extra feature: middle-clicking invokes a menu of currently opened folders. Say you want to save or upload something to/from a folder you've got open in Windows Explorer. The dialog box pops up with the last folder (from another project) or My Documents, and now you have to manually navigate to the folder you want, or copy-paste its path from the open Explorer window. I wanted to get to the active locations quicker. Recent Items wasn't exactly helping, so I made this by forking FavoriteFolders.ahk by Savage. Tested

@akaleeroy
akaleeroy / MovableBlank.ahk
Last active Feb 28, 2018
Movable Blank - Blank fullscren GUI window that's click-through
View MovableBlank.ahk
; Movable blank
; Blank fullscren GUI window that's click-through
; It's not power-saving but allows you to peek through when you need it.
; For power saving consider just switching (native Windows shortcut Win + P)
; Move it from screen to screen (native Windows shortcut Win + Shift + Left/Right)
; Make it translucent (Helpers enhancement Win + PgUp/PgDn or Win + WheelUp/WheelDn)
; Close it like a regular window (native Windows Alt + F4)
; Start multiple instances for multiple monitors
You can’t perform that action at this time.