Skip to content

Instantly share code, notes, and snippets.

@TheFallender
TheFallender / debloatLossLessCut.ps1
Created October 13, 2022 12:35
Script to debloat the LossLessCut installation from https://community.chocolatey.org/packages/lossless-cut
# To the one that made the original bloatware script, you will be glad to hear that I will give you my most sincere and lovely fuck you.
# Like, who the adds +1500 entries to the registry and doesn't delete them when uninstalling.
# Still, thank you for making the package and mantaining it.
# So, while I have tested this script, I recommend checking it just in case I screwed up in something.
# Remove the media association with LosslessCut
if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut") -eq $true) {
Remove-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut" -Recurse -Force -Confirm:$false;
};
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 16, 2024 13:44
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@stuartsierra
stuartsierra / fresh-chrome.sh
Last active October 13, 2020 16:07
Launch new instances of Google Chrome on OS X with isolated cache, cookies, and user config
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@shello
shello / gist:1670681
Created January 24, 2012 15:26
Write to a 'files.shasum' file the SHA Checksum of the regular files under the current directory (recursively), sorted alphabetically within each directory, while avoiding the output file.
OUTFILE='files.shasum' find -s . -type f -not -samefile $OUTFILE -exec shasum {} \; > $OUTFILE
@paulirish
paulirish / utmstrip.user.js
Last active April 11, 2024 07:53
userscript: Drop the UTM params from a URL when the page loads
// ==UserScript==
// @name UTM param stripper
// @author Paul Irish
// @namespace http://github.com/paulirish
// @version 1.2
// @description Drop the UTM params from a URL when the page loads.
// @extra Cuz you know they're all ugly n shit.
// @include http*://*
// ==/UserScript==