Skip to content

Instantly share code, notes, and snippets.

@unixabg
unixabg / clip-ripper
Last active February 18, 2025 01:01
Script to generate clip rips from a video
#!/bin/bash
# clip-ripper v1.0.0
# Author: Richard Nelson [email protected]
# Description: A script to slice videos into smaller clips using FFmpeg.
# Usage: Run with required parameters to extract video segments.
VERSION="1.0.0"
# Function to display help message
@unixabg
unixabg / chroot-tools
Last active February 18, 2025 01:02
Script to aid in chroot operations
#!/bin/bash
# chroot-tools v1.0
# Author: Richard Nelson [email protected]
# This script sets up a chroot environment for testing on a Debian system.
# Run with sudo privileges.
VERSION="1.0"
# Default chroot directory, action, and packages
CHROOT_DIR=""
@unixabg
unixabg / veyron-install.sh
Created November 23, 2023 13:39
Veyron Installer Script
#!/bin/bash
set -x
_VER='1.0.1-beta'
echo "Script version veyron-install: $_VER"
export TGTDEV=mmcblk0
sgdisk -Z /dev/$TGTDEV
sync
partprobe /dev/$TGTDEV
partprobe /dev/$TGTDEV
sgdisk -C -e -G /dev/$TGTDEV
@unixabg
unixabg / Digital Signage
Last active June 8, 2024 14:01
Upcycle example kiosk Debian 12 XFCE
1. connect to network
2. open terminal
3. change password
1. $: passwd
4. update packages
1. $: sudo apt update
5. install chromium
1. $: sudo apt install chromium unclutter
6. Reboot
7. set chromium to launch at start up with custom url and flags
@unixabg
unixabg / gist:4ca86477b6ad0504d8b9486f1a160057
Created July 22, 2022 23:43
Samsung Chromebook 4 alsa helper script for the glkda7219max
#!/bin/bash
echo Adding microphone to Pulseaudio
grep -qxF 'load-module module-alsa-source device=hw:0,99' /etc/pulse/default.pa || echo 'load-module module-alsa-source device=hw:0,99' >> /etc/pulse/default.pa
echo Adding headphone to Pulseaudio
grep -qxF 'load-module module-alsa-sink device=hw:0,1' /etc/pulse/default.pa || echo 'load-module module-alsa-sink device=hw:0,1' >> /etc/pulse/default.pa
echo Adding headset microphone to Pulseaudio