Skip to content

Instantly share code, notes, and snippets.

View blueal's full-sized avatar

Alex Friedberg blueal

View GitHub Profile
@blueal
blueal / createSynologyAcmeCerts.sh
Last active June 5, 2023 20:47
Commands to enter into SSH to create files with the correct permissions and request and deploy initial certs
cd /volume1/docker
sudo mkdir acme
cd acme
sudo touch account.conf
sudo cat << EOF > account.conf
#Cloudflare Configuration
export CF_Token="TOKEN"
export CF_Account_ID="ACCOUNTID"
#Synology Main and Wild Deploy
@blueal
blueal / moveFilesIntoFolders.bat
Created June 9, 2020 03:46
Program prompts for directory path, and continusously prompts for new folder names for each file found in the directory. It will than move each file into it's own directory and optionally prompt for renaming the file as well. This program is designed for manual human input. Useful for moving a large collection of Plex Movie files into there own …
@echo off
REM No Direct Inputs, Program will ask for Manual Input
REM Purpose: Take a directory of files, Place file within it's own folder prompting for folder name,
REM and give an opportunity to rename the file.
REM Workflow:
REM Program always asuumes you are moving files into folders, it will always prompt for input but
REM always opportunity to skip
@blueal
blueal / copyMediaIntoMediaFolder.bat
Last active June 9, 2020 04:23
Batch script to copy folders or files based on Media Category
@echo off
REM Script to copy completed torrent files to there respective folders
REM Parameter 1: Full file path. Sometimes it's a directory, sometimes it's just a file.
REM Parameter 2: Category of file. The copy location will vary based on this. The deafault is DO NOTHING.
REM PLEASE NOTE: THIS HAS NOT BEEN SANITIZED: DO NOT COPY YOUR ROOT DIRECTORY BY ACCIDENT
REM ROBOCOPY WILL OVERWRITE EVERYTHING IF THERE'S EXISTING CONTENT WITH THE SAME NAME! BE CAREFUL!
echo ROBOCOPY WILL OVERWRITE EVERYTHING