Skip to content

Instantly share code, notes, and snippets.

View atirut-w's full-sized avatar
💭
wawawawawawawa

Atirut Wattanamongkol atirut-w

💭
wawawawawawawa
View GitHub Profile
#!/bin/bash
#An APT utility script
#Pretty much all in one. update repos, upgrade packages, autoremove, you name it
#First update to this program:
# +Added ability to add or remove software repository
# +Utilize ppa-purge to remove software repository
# +Some more features
#My banner made using figlet
#!/usr/bin/env bash
if [[ -z "$1" && -z "$2" ]]; then
echo "PlayMIDI version 1.0
Use fluidsynth to play MIDI musics easily in one command
Usage:
playmidi soundfont.sf2 midifile.mid"
exit 1
elif [[ $1==*".mid" && -z "$2" ]]; then
fluidsynth -g 0.8 -a alsa -m alsa_seq -l -i "$1"