Skip to content

Instantly share code, notes, and snippets.

View blaineam's full-sized avatar
💻
Eat, Sleep, Code, Repeat

Blaine Miller blaineam

💻
Eat, Sleep, Code, Repeat
View GitHub Profile
@blaineam
blaineam / awon.ps1
Created May 24, 2024 22:28
AWON - Windows 11 Privacy Booster - Disables many of Microsoft's tracking mechanisms in Windows 11
Write-Host "AWON will now disable all of the windows envasive tools that inhibit user privacy."
# Disable Windows 11 Tracking Functions
# Disable Telemetry
Write-Host "Disabling Telemetry..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Value 0 -Type DWord -Force
@blaineam
blaineam / delete_photos.js
Last active March 21, 2023 04:47
Google Photos Delete Tool
if(typeof runDelete === 'undefined') {
function runDelete(backoff = 0) {
// How many photos to delete?
// Put a number value, like this
// const maxImageCount = 5896
let maxImageCount = "ALL_PHOTOS";
// Selector for Images and buttons
let ELEMENT_SELECTORS = {
checkboxClass: '.ckGgle',
@blaineam
blaineam / index.php
Last active February 23, 2023 06:05
A simple php script to have a Raspberry Pi send ddc and ir signals to use as a makeshift KVM over webhooks.
<?php
/**
* rPi4 KVM using
* DDC,
* a USB Switcher:https://amzn.to/3IAunJR
* Flirc: https://amzn.to/3EjM7qj
* and webhooks
*
* use debian based image
* install flirc cli
@blaineam
blaineam / compressor.sh
Last active November 1, 2022 05:19
Bulk Video and Image Compression Bash Script
#!/usr/bin/env bash
echo Install Dependencies
if [ "$(uname)" == "Darwin" ]; then
brew install ffmpeg gifscile imagemagick
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
apt update && apt install -y ffmpeg gifsicle imagemagick
fi
@blaineam
blaineam / muxAudio.php
Last active November 6, 2021 06:00
Automux audio to mp4 VEAI Upscale
<?php
/**
This is a simple php script I wrote to automate converting
from h264 mp4 with a missing webm audio track to a muxed
hevc/h265 mp4 file using a mac or linux with php, and
ffmpeg installed first.
It automatically handles if the source file has no audio and will still convert to h265.
@blaineam
blaineam / S3Dropzone.php
Last active May 6, 2022 20:39
Dropzone.js direct to S3 PHP Page
<?php
// Config: Update This especially the CAPS
$title = "S3 File Upload";
$disclaimer = "Send us files";
$bucketName = "BUCKET";
$AWSAccessKeyId = "ACCESS_KEY";
$AWSSecretAccessKey = "ACCESS_SECRET";
$folder = "uploaded";
$region = "REGION";
$acl = 'private';