Skip to content

Instantly share code, notes, and snippets.

View AustinSpafford's full-sized avatar

Austin Spafford AustinSpafford

View GitHub Profile
@AustinSpafford
AustinSpafford / filename_muxy.ps1
Last active April 16, 2018 05:19
Utility for converting files with indices in their names to be the quotient/remainder of a divisor. This is useful if there's a large number of files that actually represent groups of 3/4/5/etc, and it'd be less confusing for them to be indexed by what group they're in.
param
(
[int]$divisor = 3,
[int]$indexingOrigin = 1, # Set to "0" if you want zero-based indexing, and likewise to "1" for one-based.
[bool]$padNumbers = $true
)
[regex]$indexRegex = "\d+"
Get-ChildItem -File -Recurse | ForEach-Object `
@AustinSpafford
AustinSpafford / clean_amazon.adblock_rules
Last active May 21, 2016 07:26 — forked from anonymous/clean_amazon.adblock_rules
AdBlock rules for cleaning up Amazon's storefront.
feedly.com##div#discoverModule_part
feedly.com##div#herculePanel
//s3.feedly.com/production/head/images/icon-action-markasread.png
! Main page ad-carousel, recommendations, and ad-grid
amazon.com##div#gw-desktop-herotator
amazon.com##div#rhf-container
amazon.com##div#gw-content-grid
! Title bar department-menu and middle-ads