Skip to content

Instantly share code, notes, and snippets.

View Kaylebor's full-sized avatar

Ender Kaylebor

View GitHub Profile
@Kaylebor
Kaylebor / repair-wine-url-handlers.sh
Created October 8, 2025 16:45
Repairs Wine URL handlers to ensure that Windows programs use the system browser to open URLs
#!/usr/bin/env bash
set -Eeuo pipefail
usage() {
cat <<USAGE
Usage: $(basename "$0") [--force] [--schemes list] [--filetypes list]
Ensures selected Wine URL protocol and file associations use winebrowser.
Options:
@Kaylebor
Kaylebor / fl-studio-webview2-install.sh
Created September 26, 2025 10:26
Install FL Studio with working WebViews
#!/usr/bin/env bash
set -Eeuo pipefail
# --- FL Studio + WebView2 Installation Script ---
# Complete setup: WebView2 Runtime -> Environment -> FL Studio
# --- Config ----------------------------------------------------------------
WINEPREFIX="${WINEPREFIX:-$HOME/.wine}"
WINEBIN="${WINEBIN:-wine}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Kaylebor
Kaylebor / webview2-env-setup.sh
Created September 26, 2025 10:22
Fix environment to ensure FL Studio can use installed Microsoft Edge WebView2 correctly
#!/usr/bin/env bash
set -Eeuo pipefail
# --- WebView2 Environment Setup Script ---
# Sets up the minimal working WebView2 configuration for FL Studio
# --- Config ----------------------------------------------------------------
WINEPREFIX="${WINEPREFIX:-$HOME/.wine}"
WINEBIN="${WINEBIN:-wine}"
FL_EXE_NAME="FL64.exe"
@Kaylebor
Kaylebor / deepfilternet-build.sh
Last active January 4, 2025 19:38
Manually build and install DeepFilterNet ladspa for EasyEffects (non-Flatpak, may work with Flatpak with the right permissions)
git clone [email protected]:Rikorose/DeepFilterNet.git
cd DeepFilterNet
cargo build --release -p deep-filter-ladspa
sudo cp target/release/libdeep_filter_ladspa.so /usr/lib64/ladspa/
@Kaylebor
Kaylebor / sh
Last active June 7, 2021 12:36
Remove Mobvoi apps (bloat) from TicWatch using GNU Parallels
parallel adb shell pm uninstall -k --user 0 ::: $(adb shell pm list packages mobvoi | cut -d: -f2)

Keybase proof

I hereby claim:

  • I am kaylebor on github.
  • I am kayleb0r (https://keybase.io/kayleb0r) on keybase.
  • I have a public key ASBTg5kksTEo9YCR2jxPPVzp2DibDvtEnshJGP71LzjrDAo

To claim this, I am signing this object:

%% @doc
%% USAGE:
%% In the $HOME folder, create a file called .erlang
%% On that file, write the following line:
%%
%% code:load_abs("/path/to/user_default").
%%
%% Note that user_default must have been compiled
%% (there must be a user_default.beam file in the folder)
%%
@Kaylebor
Kaylebor / keybindings-fix.zsh
Created October 26, 2019 10:42
Fix for several key combinations on zsh
case "${TERM}" in
cons25*|linux) # plain BSD/Linux console
bindkey '\e[H' beginning-of-line # home
bindkey '\e[F' end-of-line # end
bindkey '\e[5~' delete-char # delete
bindkey '[D' emacs-backward-word # esc left
bindkey '[C' emacs-forward-word # esc right
;;
*rxvt*) # rxvt derivatives
bindkey '\e[3~' delete-char # delete
#!/usr/bin/env sh
#===========================================================================================#
# This script is a workaround for compiling Erlang with crypto below version 20 via kerl #
# #
# The need for this script came about because newer versions of OpenSSL are not #
# properly detected by the compiler when choosing an Erlang version under 20; #
# most distros have an openssl 1.0 compatibility package in their package managers, #
# but I have found them unreliable at best, when it comes to compiling Erlang #
# #
# The script will download the OpenSSL source code for version 1.0.2 to $HOME/openssl, #
@Kaylebor
Kaylebor / setup_proxy_script.sh
Last active January 31, 2019 15:53
Settings for a user behind a corporate MITM-style proxy on a Debian-based system
#! /bin/bash
#
# setup_proxy_script.sh
# Copyright (C) 2019 Ender Veiga Bueno <[email protected]>
#
# Distributed under terms of the MIT license.
#
# Check that the script is being run as root (sudo ./setup_proxy_script.sh)
if [ "$EUID" -ne 0 ]