Skip to content

Instantly share code, notes, and snippets.

View wuseman's full-sized avatar
🏴‍☠️

wuseman wuseman

🏴‍☠️
View GitHub Profile
@wuseman
wuseman / matrix-rain-colors.sh
Last active September 17, 2026 05:10
Framed Matrix Rain Hex Wall with Random Colors (Green Digits Inside a Terminal Border)
#!/usr/bin/env bash
# - iNFO --------------------------------------
#
# Author: wuseman
# FileName: matrix_wall.sh
# Created: 2026-09-17
# License: WTFPL (https://www.wtfpl.net)
#
# ---------------------------------------------
#
@wuseman
wuseman / ram-max-memory.sh
Created September 17, 2026 05:07
How much RAM can the computer handle?
#!/bin/bash
hexdump -v -e '1/1 "%02x "' /sys/firmware/dmi/tables/DMI | \
awk '{
for (i = 1; i <= NF; i++) {
# Matcha endast Type 16 (0x10) med längd 23 bytes (0x17)
if ($i == "10" && $(i+1) == "17") {
# Läs 32-bit KB på offset 0x07 (byte i+7 till i+10)
b0=$(i+7); b1=$(i+8); b2=$(i+9); b3=$(i+10);
@wuseman
wuseman / wuseman-in-matrix-rain.sh
Last active September 17, 2026 05:12
Matrix with wuseman moving around, chaos!" ;)
#!/usr/bin/env bash
ESC=$'\033'
USERNAME="WUSEMAN"
SPRITE_LEN=$(( ${#USERNAME} + 8 ))
hide_cursor() { printf "${ESC}[?25l"; }
show_cursor() { printf "${ESC}[?25h"; }
clear_screen() { printf "${ESC}[2J"; }
@wuseman
wuseman / screensaver-hearts.sh
Last active September 17, 2026 05:11
Screensaver for console
emojis=("❤️" "🧡" "💛" "💚" "💙" "💜" "🤎" "🖤" "🤍" "💖" "💗" "💘" "💝" "💞" "💟")
cleanup() {
tput cnorm
tput sgr0
printf '\033[2J\033[H'
}
trap cleanup INT TERM EXIT
tput civis
@wuseman
wuseman / matrix-rain-green.sh
Last active September 17, 2026 05:11
Framed Matrix Rain Hex Wall (Green Digits Inside a Terminal Border)
#¤!/bin/bash
columns=$(tput cols)
lines=$(tput lines)
wall_start_x=10
wall_start_y=5
wall_end_x=$((columns - 10))
wall_end_y=$((lines - 5))
@wuseman
wuseman / cmus_autosave
Last active March 29, 2026 01:26
CMUS Theme and Configuration
set aaa_mode=all
set altformat_current= %F
set altformat_playlist= %f%= %d %{?X!=0?%3X ? }
set altformat_title=%f
set altformat_trackwin= %f%= %d
set auto_expand_albums_follow=true
set auto_expand_albums_search=true
set auto_expand_albums_selcur=true
set auto_hide_playlists_panel=false
set auto_reshuffle=true