Skip to content

Instantly share code, notes, and snippets.

View 0ksi's full-sized avatar

Alexis Oksi 0ksi

View GitHub Profile
#!/usr/bin/env bash
# =============================================================================
# test-audio.sh — End-to-end audio pipeline verification
# =============================================================================
set -euo pipefail
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'
info() { echo -e "${CYAN}[INFO]${NC} $*"; }
success() { echo -e "${GREEN}[OK]${NC} $*"; }
#!/usr/bin/env bash
# =============================================================================
# pair-speaker.sh — Pair BT speaker and make connection persist on boot
# =============================================================================
set -euo pipefail
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'
info() { echo -e "${CYAN}[INFO]${NC} $*"; }
success() { echo -e "${GREEN}[OK]${NC} $*"; }
#!/usr/bin/env bash
# =============================================================================
# setup.sh — Bluetooth Audio Stack for Proxmox VM
# Installs: bluez, bluealsa, snapcast, librespot, mopidy
# Target: Debian 12 (Bookworm), kernel 6.x
# BT dongle: ASUS USB-BT500 (Realtek RTL8761BU chip)
# =============================================================================
set -euo pipefail
@0ksi
0ksi / ES6 support in gulp build
Created March 5, 2019 07:28
ES6 support in gulp build with browserify, babelify and sourcemaps
// Adding browserify with babelify to gulp build to support ES6 syntax
var gulp = require('gulp'),
path = require('path'),
gulpif = require('gulp-if'),
browserify = require('browserify'),
tap = require('gulp-tap'),
buffer = require('gulp-buffer'),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
@0ksi
0ksi / Brewfile-recommended
Created December 7, 2018 16:54
Brewfile with additional optional programs
@0ksi
0ksi / Brewfile
Last active February 15, 2019 09:06
Developer workstation setup brewfile
tap 'caskroom/cask'
# General
brew 'git'
brew 'yarn', args: ['without-node']
# PHP
tap 'homebrew/php'
brew 'php71'