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 / 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
View Readable-Bookmarklet.md

Readable Bookmarklet

Bookmarklet Browser Enhancement Readability

Readable dark theme

rdbl.us

Readable is an application that helps you read more of the web. It reformats text — on any website — according to your exact specifications.

@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

View Goto-Registry-Key.md

Go to registry key

Go to registry key


Opens regedit at your specified location. Copied registry paths will automatically populate the input box (like in the above image).

You may use these formats:

@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 / redditp-feature-collect.user.js
Last active Mar 30, 2018
RedditP Collect feature userscript
View redditp-feature-collect.user.js
// ==UserScript==
// @name RedditP Collect
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Collect cool stuff while staying in the flow. Download them at the end.
// @author Leeroy
// @match http://redditp.com/*
// @grant GM_addStyle
// @grant GM_download
// @noframes
@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 / Connect-to-Android-WebDAV-Server.md
Last active Jul 8, 2019
Access phone storage over WiFi with WebDAV Server for Android
View Connect-to-Android-WebDAV-Server.md

Access phone storage over WiFi

Batch file to map your Android phone as network drive in Windows.

Preview of Phone.cmd usage

Requirements

@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 / 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.
You can’t perform that action at this time.