Skip to content

Instantly share code, notes, and snippets.

@b9AcE
b9AcE / fbdomains.txt
Last active January 4, 2024 19:37
Facebook-related Internet domain names, minus Instagram, to be used as input for firewall/router-blocking (based on https://github.com/jmdugan/blocklists/blob/master/corporations/facebook/all)
facebook.com
facebook.com.edgekey.net
facebook.com.edgesuite.net
facebook.de
facebook.fr
facebook.net
facebook.net.edgekey.net
facebook-web-clients.appspot.com
fbcallback.wechat.com
fbcdn.com
@b9AcE
b9AcE / update.net.bat
Last active February 15, 2023 11:12
Updating .NET runtimes to re-optimize the local .NET programs
@ECHO Run as admin after updating .NET runtimes to re-optimize the local .NET programs.
@ECHO Runs once for 32-bit and then once for 64-bit.
:: Version 2
:: Version 2 changes: Cosmetic.
@ECHO 32-bit:
"%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update
"%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems
@b9AcE
b9AcE / c.bat
Last active October 17, 2022 13:21
FFmpeg compand DOS batch file
@ECHO off
REM c.bat
REM
REM DOS batch file that takes all the files with the mp4 suffix in the current working directory and runs
REM FFmpeg's "compress and expand"-filter with pre-selected parameters to the FDK-based AAC encoder
REM at 320k requested bitrate on them with output to a subdirectory named "compand".
mkdir compand
for %%f in ("*.mp4") do ffmpeg -i "%%f" -n -filter_complex "compand=attacks=0:points=-80/-900|-45/-15|-27/-9|0/-7|20/-7" -c:a libfdk_aac -b:a 320k -vcodec copy "compand\%%f"
@b9AcE
b9AcE / compand
Created April 28, 2022 11:46
FFmpeg comand bourne shell script
#!/bin/sh
#
# /usr/local/bin/compand
#
# Bourne shell scriptlet that takes all the files with the mp4 suffix in the current working directory and runs
# FFmpeg's "compress and expand"-filter with pre-selected parameters on them with output to a subdirectory named "compand"
# or if there are arguments run the same once per argument.
#
@b9AcE
b9AcE / youtube-dl.conf
Last active October 25, 2020 20:35
A youtube-dl config-file that adds use of aria2 and ffmpeg-normazlie by default.
#
# /etc/youtube-dl.conf
#
# System-wide configuration-file for youtube-dl.
# As aria2 doesn't fix the bug resulting in failed downloads with "invalid range" error-messages, the use of aria2 is currently commented out and replaced with youtube-dl's native download.
# Used to set default to call aria2 for parallelization and ffmpeg-normalize to apply EBU R128 to audio.
# Note: all config-file parameters get overridden by setting to anything else at commandline.
#
# Version: b9AcE, 20201025-01
#
@b9AcE
b9AcE / PaleMoon_Addons.md
Created November 25, 2018 20:26
Pale Moon web browser add-ons recommended by b9AcE

Pale Moon web browser add-ons recommended by b9AcE (on Mastodon and Twitter)

Revision 2018-11-25.

Since Firefox has decided to migrate itself into becoming a watered down version of Google Chrome, with similar telemetry and other anti-privacy nonsense included by default, I have looked through many of the alternatives and found that to me Pale Moon seems the best option available. Therefore I will now share my list of which add-ons I use, so that new users might use that as some inspiration for which ones they might want to consider using as well. Some parts are the same or very similar to the equivalent list I did for Firefox a while ago. The listing order is an approximation of how important I personally consider them right now.

@b9AcE
b9AcE / sources.list
Last active December 6, 2020 21:14
sources.list for Devuan ASCII with Pale Moon
#
# /etc/apt/sources.list
#
# Containts configuration of sources for the APT-system, such as online software repositories for apt-get.
#
# Version 20181125T2007Z
#
# Installation media was the next line. Left for reference.
# deb cdrom:[devuan_ascii_2.0.0_amd64_dvd-1]/ ascii main non-free
@b9AcE
b9AcE / Cygwin64_Here.reg
Created November 19, 2017 22:53
Adds a Cygwin64 entry to the right-click menu in Windows Explorer.
Windows Registry Editor Version 5.00
; Adds a MinTTY/BASH window from Cygwin64's default path to
; context (right-click) menus in explorer in every location,
; both when clicking on the object and when
; clicking on the object's background.
; It does the same as "chere" from Cygwin is expected to do,
; but sometimes it just fails unexplainedly, so I wrote my own.
@b9AcE
b9AcE / CMD_here.reg
Last active July 7, 2019 07:50
Adds cmd-prompt at right-clicked object in Windows Explorer.
Windows Registry Editor Version 5.00
; Always show CMD-prompt in all locations for explorer and rename
; it to just "CMD..." for menu brevity
; (the latter can be restored to "@shell32.dll,-8506" if desired).
; The first step is to remove the empty string "Extrended" which on some
; versions of Windows exists and will otherwise restrict the menu entry
; to being shown when shift is simultaneously pressed.
; Windows 10 requires changing permissions of the registry keys before use.
@b9AcE
b9AcE / Open public trackers
Last active November 19, 2017 23:01
List of open torrent-trackers that were functional at last check. Good to know for when seeding your favorite Linux-distro, Tails or similar.
udp://tracker.kuroy.me:5944
http://torrentsmd.com:8080/announce
udp://tracker.coppersurfer.tk:6969/announce
udp://ipv4.tracker.harry.lu:80/announce
udp://tracker.opentrackr.org:1337/announce