Refer to the previous tutorial and this answer on StackOverflow.
Follow this tutorial first on setting up ROC: https://gavv.net/articles/roc-0.4/
Instead of following the config file provided on the tutorial, use this config to route ROC source to a Loopback device and an Echo Cancel device.
Restart PipeWire afterwards:
systemctl restart --user pipewire.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Adapted from https://stackoverflow.com/a/65851533 | |
The input SVG must be flattened/combined into single node/path first. | |
Recommended to optimize the SVG first with SVGO or Inkscape's Save As Optimized SVG. | |
First two columns are the starting coordinates and the second ones are the ending ones. | |
""" | |
from xml.dom import minidom | |
from svg.path import parse_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Install Rembg with CoreML support to use Neural Engine | |
# Tested on macOS 14.1, M1 MBP, 2024-05-14 | |
# Licensed under MIT. (c) 2024 Aldo Adirajasa Fathoni | |
# Assuming Xcode CLT and Homebrew have been installed | |
brew install [email protected] | |
mkdir rembg-env | |
/opt/homebrew/bin/python3.9 -m venv rembg-env | |
source rembg-env/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Install Apple Silicon-native Spleeter without Conda | |
# Tested on macOS 14.1, M1 MBP, 2024-05-07 | |
# Licensed under MIT. (c) 2024 Aldo Adirajasa Fathoni | |
# Assuming Xcode CLT and Homebrew have been installed | |
brew install [email protected] ffmpeg libsndfile | |
mkdir spleeter | |
python3.9 -m venv spleeter | |
source spleeter/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# retouchid - Script to enable PAM authentication with Touch ID on macOS | |
# Licensed under MIT. (c) 2022 Aldo Adirajasa Fathoni | |
if grep -q pam_tid.so /etc/pam.d/sudo; then | |
echo "Already set. no need to update /etc/pam.d/sudo." | |
exit 0 | |
fi | |
if [ $(id -u) = 0 ];then |
This trick automatically opens meeting on your browser without having to click "Join from Your Browser" manually, useful to save some space used by Zoom Desktop or run on unsupported platforms such as i386 and ARM.
There is a Chromium extension to do this, but this method works on any XDG-compliant browser without additional extensions and fearing your data collected by them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# findsym.sh - Print filename that contains the specified symbol | |
# Usage: findsym.sh [symbol] [file ...] | |
# Licensed under MIT. (c) 2024 Aldo Adirajasa Fathoni | |
findsym() { | |
for f in ${@:2}; do | |
found=$(nm -a "$f" | \grep $1) | |
if [ $? -eq 0 ]; then | |
echo ${f}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script to analyze macOS executable(s) with VirusTotal. | |
# Requires virustotal-cli and jq to be present in PATH. | |
# Licensed under MIT. (c) 2023-2024 Aldo Adirajasa Fathoni. | |
INPUT=$@ | |
FILELIST=filelist.txt | |
TMPSCAN=vtscan.txt | |
TMPANLYS=vtanalysis.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Taken from https://git.adelielinux.org/adelie/packages/-/blob/abefa433c8e2199520e5a763e415e7ed4d60f551/legacy/syslinux/update-extlinux | |
# Modified for Legacy & UEFI Syslinux | |
version= | |
default=0 | |
timeout=5 | |
verbose=0 | |
conf=/boot/syslinux/syslinux.cfg |
NewerOlder