Skip to content

Instantly share code, notes, and snippets.

View vovw's full-sized avatar
🍊
orange

atharva vovw

🍊
orange
View GitHub Profile
@nullcline
nullcline / baka_trace.py
Created March 9, 2023 08:20
tsundere error traces
import traceback
import openai
import sys
# list models
models = openai.Model.list()
def baka(error, character="tsundere",):
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback_list = traceback.extract_tb(exc_traceback)
@mateoppalacios
mateoppalacios / tinyfetch
Created July 29, 2021 09:18
A tiny fetching utility for Linux.
#!/usr/bin/env bash
n=printf\ "\n"; i="${TF_INFO:=title os kernel host uptime memory shell colors}"
c="\e[1;${TF_COLOR-34}m"; r="\e[0m"; for o in $i; do case "$o" in title)
printf "${c}%s${r}@${c}%s\n" "$USER" "$HOSTNAME" ;; os) [ -f /etc/os-release ]\
&& { . /etc/os-release; printf "${c}OS${r}\t%s\n" "$NAME"; } ;; kernel)
printf "${c}Kernel${r}\t%s\n" "$(uname -r)" ;; host) printf \
"${c}Host${r}\t%s\n" "$HOSTNAME" ;; uptime) t="$(cat /proc/uptime)"; printf \
"${c}Uptime:${r}\t%s\n" "$(date -d@${t%% *} -u +%H:%M:%S)" ;; memory) printf \
"${c}Memory:${r}\t%s\n" "$(free -h | awk 'NR == 2 { printf("%s/%s\n", $3, $2) \
@ylixir
ylixir / main.md
Last active April 7, 2023 21:29
Blog : Getting bluetooth headphones working on void linux with ALSA

I have a great little sub $20 bluetooth headset that I've been too lazy to get working on my laptop. I run Void Linux because for me systemd creates more headaches than it solves and I prefer minimalism for a machine beholden to a battery. Similarly I consider PulseAudioto have an unacceptable level of overhead for what it brings to the table. So my goal is to get my headphones working on my laptop with these constraints.

Unfortunately the [Bluetooh page of the Void Wiki][void-wiki] is less than useless. I should probably go back and add some stuff for them one of these days. Fortunately the [Bluetooth page of the Arch Wiki][arch] is more helpful, but not 100% precise.

You will need to install Bluez with # xpbs-install -Sy bluez and add yourself to the bluetooth group with the command # useradd -G bluetooth . You might want to log out and back in at this point. This way you can make sure your