Skip to content

Instantly share code, notes, and snippets.

@b9AcE
b9AcE / ki
Created April 19, 2017 01:23
Very tiny scriptlet to easily install a newly compiled Linux kernel on x86_64 using just version-name as argument.
#!/bin/bash
\/bin/cp -v arch/x86_64/boot/bzImage /boot/vmlinuz-"${1}"
\/bin/cp -v vmlinux /boot/vmlinux-"${1}"
\/bin/cp -v System.map /boot/System.map-"${1}"
\/bin/cp -v .config /boot/config-"${1}"
@b9AcE
b9AcE / tmux.conf
Last active October 13, 2017 07:28
My tmux configuration. Very simple.
#
# "/etc/tmux.conf" or "~/.tmux.conf"
#
# Revision 20171013-01
#
# Configures the terminal multiplexer tmux(1), which behaves similar to the older screen(1).
# This configuation is intended to provide a basic, sane default, without fancy features.
#
# Change the prefix key to <control>+a instead, because it is easier to press and is the default of screen(1) so no reason to use <control>+b, the default of tmux(1).
@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
@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 / 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 / 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 / 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 / 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 / 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 / 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"