Skip to content

Instantly share code, notes, and snippets.

@deltafoxin
deltafoxin / unitune.py
Created October 18, 2025 07:38 — forked from Irt291/unitune.py
Remove unnecessary Itune's mp4 tag like account name, email, purchase info from ripped AAC or ALAC files.
# Requirements:
# ffmpeg: https://ffmpeg.org/download.html
# mutagen: https://pypi.org/project/mutagen/
# atomicparsley: https://github.com/wez/atomicparsley
import pathlib
import subprocess
from mutagen import mp4
from concurrent.futures import ProcessPoolExecutor
@deltafoxin
deltafoxin / For Mac 4.2.6 unlimited trial.md
Created September 5, 2025 06:12 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@deltafoxin
deltafoxin / serve.go
Created May 17, 2024 20:37 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
@deltafoxin
deltafoxin / GradleCheatsheet.md
Created April 14, 2024 10:00 — forked from jiffle/GradleCheatsheet.md
Cheatsheet of Gradle Commands and Config

Command Cheatsheet

  • Convert Maven build to gradle

    gradle init

  • Initialise new project folder structure (Java example)

    gradle init --type java-library

Go to onedrive folder in your pc and create a folder for git repository.
Usually onedrive resides in `C:\Users\%username%\OneDrive`
Open GitBash
cd ~/OneDrive
mkdir git
cd git
mkdir myproject
cd myproject
@deltafoxin
deltafoxin / init_postgres_windows.md
Created April 8, 2024 04:23 — forked from jctosta/init_postgres_windows.md
A simple guide on initializing the Windows version of Postgres using the zip file instead of msi installer
@deltafoxin
deltafoxin / sqlite.py
Created February 22, 2024 13:00 — forked from michalc/sqlite.py
Use libsqlite3 directly from Python with ctypes: without using the built-in sqlite3 Python package, and without compiling anything
# From https://stackoverflow.com/a/68876046/1319998, which is itself inspired by https://stackoverflow.com/a/68814418/1319998
from contextlib import contextmanager
from collections import namedtuple
from ctypes import cdll, byref, string_at, c_char_p, c_int, c_double, c_int64, c_void_p
from ctypes.util import find_library
from sys import platform
def query(db_file, sql, params=()):
@deltafoxin
deltafoxin / dash-doggybag.py
Created July 7, 2023 17:09 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
#!/usr/bin/env python3
import sys
import json
import os
import os.path
import shutil
import logging
import tempfile
import glob
import argparse
@deltafoxin
deltafoxin / _readme.md
Created June 17, 2023 18:02 — forked from steeve/_readme.md
How to cross compile Go with CGO programs for a different OS/Arch

How to cross compile Go with CGO programs for a different OS/Arch

It is possible to compile Go programs for a different OS, even though go build says otherwise.

You'll need: