Skip to content

Instantly share code, notes, and snippets.

@Akczht
Akczht / paragon reset.txt
Created February 12, 2025 18:28
reset paragon ntfs trial cycle
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
sudo rm -rf /Library/PreferencePanes/ParagonNTFS.prefPane
@Akczht
Akczht / subs.sh
Last active December 30, 2024 22:00
a script to change things from subtitle file ass
#!/bin/bash
set -e
# Directory to process (current directory)
DIRECTORY="$PWD"
# Loop through all .ass files in the directory
for file in "$DIRECTORY"/*.ass; do
# Check if the file exists (to avoid issues if no .ass files are present)
if [[ -f "$file" ]]; then
@Akczht
Akczht / zeroes.py
Created December 13, 2024 11:53
a script to add leading zeroes in a directory recursively according to the folder structures inside
import os
def rename_files_with_leading_zeroes(folder_path=os.getcwd()):
for root, _, files in os.walk(folder_path):
total_files = len(files)
# Determine the number of digits needed
digits = len(str(total_files))
# Sort files for consistent renaming order
@Akczht
Akczht / cbz.py
Last active December 13, 2024 11:56
a script to convert all the folders in a directory to CBZ files using 7-zip
import os
import subprocess
def convert_folders_to_cbz(folder_path=os.getcwd()):
# Get all folders in the specified directory
dirs = [d for d in os.listdir(folder_path) if os.path.isdir(os.path.join(folder_path, d))]
for dir_name in dirs:
folder_to_convert = os.path.join(folder_path, dir_name)
zip_file = os.path.join(folder_path, f"{dir_name}.zip")
@Akczht
Akczht / yt-dlp.conf
Last active November 26, 2024 19:47
my yt-dlp config backup
--embed-subs
--embed-chapters
--embed-thumbnail
--embed-metadata
--sub-langs all
--compat-options no-live-chat
--output "$HOME/Movies/%(title)s.%(ext)s"
# --format-sort "vcodec:avc,aext:m4a" #for a-Shell iOS#
# --output "$PATH_LOCALE/%(title)s.%(ext)s" #for a-Shell iOS#
@Akczht
Akczht / mpv.conf
Last active December 7, 2024 19:06
This is my mpv config for my Apple Silicon mac
# Player #
no-border
no-osc
window-scale=0.8
# Screenshots #
screenshot-template="%x%F-T%wH.%wM.%wS.%wT-F%{estimated-frame-number}"
screenshot-format=png
screenshot-png-compression=9
@Akczht
Akczht / ffmpeg.sh
Last active February 6, 2025 17:59
A script to run ffmpeg on all the files in a folder and remux videos also you can add other files in the sec folder
#!/bin/bash
set -e
# Set input and output file extensions and additional ffmpeg arguments here
input_ext="mkv" # Input file extension (e.g., mp4, mkv) without the dot
output_ext="mkv" # Output file extension (e.g., mp4, mkv) without the dot
# Create the output directory if it doesn't exist
output_dir="$PWD/dir"
mkdir -p "$output_dir"
@Akczht
Akczht / trim.sh
Last active December 30, 2024 22:00
trims videos from start for a few seconds
#!/bin/bash
set -e
# Set default values for input and output formats
input_format="mkv"
output_format="mkv"
# Folder containing the video files
input_folder="./" # Change this if needed
@Akczht
Akczht / defaults.txt
Last active August 25, 2024 20:26
Sensible Microsoft Office Defaults for macOS
defaults write com.microsoft.office SendAllTelemetryEnabled -bool FALSE
defaults write com.microsoft.office ShowFileExtensions -bool TRUE
defaults write com.microsoft.Word SendAllTelemetryEnabled -bool FALSE
defaults write com.microsoft.Excel SendAllTelemetryEnabled -bool FALSE
defaults write com.microsoft.Powerpoint SendAllTelemetryEnabled -bool FALSE
defaults write com.microsoft.Office365ServiceV2 SendAllTelemetryEnabled -bool FALSE
defaults write com.microsoft.autoupdate2 SendAllTelemetryEnabled -bool FALSE
@Akczht
Akczht / base.sh
Last active July 31, 2024 13:28
base dependencies for ntfs-3g
#!/usr/bin/env bash
set -e
findcd() {
local search_string="$1"
target_dir=$(find . -maxdepth 1 -type d -name "$search_string*" -print -quit)
if [ -n "$target_dir" ]; then