Skip to content

Instantly share code, notes, and snippets.

View aishenreemo's full-sized avatar
:accessibility:

Aishen aishenreemo

:accessibility:
View GitHub Profile
@aishenreemo
aishenreemo / arch.md
Created March 3, 2025 02:21
Fresh install arch linux

How to install Arch

  • Boot into Live ISO
  • Load keyboard layout
  • timedatectl set-ntp true
  • Make a boot, swap and root partition.
  • Format boot using mkfs.fat -F 32
  • Format swap using mkswap
  • Format root with mkfs.ext4
  • Mount root to /mnt
  • mkdir -p /mnt/boot/efi and mount the boot partition there.
@aishenreemo
aishenreemo / ascii-bad-apple.md
Last active October 14, 2025 22:50
ascii-bad-apple

ASCII Art Bad Apple

Here is a step-by-step procedure on how to play Bad Apple on your Linux terminal (could also work with any video you want if you use your common sense).

  1. Install these tools.
  • ffmpeg: Processes the Video into series of images/frames.
  • jp2a: Image to ASCII Art converter.
  • python: ASCII Art video player.
  • python-pygame: Just to play sound asynchronously.
  • yt-dlp: Download videos from Youtube.
@aishenreemo
aishenreemo / convert_base.py
Last active October 8, 2023 04:18
base-A to base-B converter
import os
DEBUG = os.environ.get("DEBUG_CONVERTER") or False
DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
# in order to convert a number from base-A to base-B
# we have to convert base-A to base-10 then convert the output to base-B
# works if A and B is greater than 1 and less than len(DIGITS)
@aishenreemo
aishenreemo / music-player.sh
Last active November 15, 2022 10:31
my music player shell script
#!/bin/bash
sh="zsh"
MUSIC_DIR="~/Music"
SESSION="cmus"
WINDOW="music"
if tmux ls | grep "$SESSION"
then
tmux attach -t cmus
else