I hereby claim:
- I am coreymwamba on github.
- I am coreymwamba (https://keybase.io/coreymwamba) on keybase.
- I have a public key ASDQ_FTSP4fZHGKFFvhevGzlBVbjMHEruL2-Y6V68fFTvQo
To claim this, I am signing this object:
#!/bin/bash | |
eval $(acpi -b | sed "s/Battery 0: //g" |sed "s/,//g"| awk 'BEGIN {FS=" "}; {print "ch="$1, "percent="$2, "countdown="substr($3,0,5)}') | |
case $ch in | |
Discharging) | |
sign="-" | |
;; | |
Unknown) | |
sign="~" | |
;; | |
Charging) |
#!/bin/bash | |
#you will need to modify the device names for JACK... | |
choose_params() { | |
qy=$(yad --form --item-separator="|" --field "Purpose:CB" "CD|Live|HD") | |
jackparams=$(echo $qy | awk -F '|' '{print $1}') | |
case $jackparams in | |
CD) | |
jackd -dalsa -r44100 -p4096 -n3 -D -dhw:Device & | |
export JACK_SAMPLE_RATE=44100 | |
export JACK_SETTING="REC" |
#!/bin/bash | |
today=$(date +%s) | |
echo "press q to stop..." | |
ffmpeg -f alsa -i hw:0 -v 1 ~/audio-notes/$today.flac $@ |
I hereby claim:
To claim this, I am signing this object:
convert_ogg() { | |
ffmpeg -hide_banner -nostats -loglevel panic -i ~/audio/convert_to_ogg/$file -vn -b:a 320k ~/audio/convert_to_ogg/${file%.*}.flac & | |
echo "converting $file" | |
} | |
while true; do | |
inotifywait -m ~/audio/convert_to_ogg -e create -e moved_to | while read path action file; do | |
if [ ${file##*.} != "ogg" ]; then | |
convert_ogg | |
fi |
#! env /bin/bash | |
# ffpmeg-jack-AV-rec - record video from a webcam, audio from a soundcard, using FFMpeg in JACK. | |
# Corey Mwamba 2018 | |
# You will need jack_autoconnect (https://github.com/kripton/jack_autoconnect) | |
# And FFMpeg. And JACK. | |
# the -thread_queue_size option for ffmpeg reduces xruns | |
FR=25 | |
VC=h264 | |
AC=aac |
#!/bin/sh | |
today=$(date +'%A %e %B %Y') # obviously you can modify this line | |
D=$(echo $today | grep -E -o "(\b(|[0-3])[0-9]\b)") | |
case $D in | |
1|21|31) | |
mod="st" | |
;; | |
2|22) | |
mod="nd" | |
;; |
#!/bin/bash | |
# simple-ssb - a simple Site Specific Browser application | |
# 2014, 2017 Corey Mwamba | |
# requirements: Yad/Zenity, WebKitGTK+2, cURL, gjs | |
# If you need Flash then download the NPAPI Flash plugin | |
vcheck(){ | |
hash gjs 2>/dev/null || { echo >&2 $(${GUICMD} --text "gjs is not installed"); exit 1; } | |
hash curl 2>/dev/null || { echo >&2 $(${GUICMD} --text "curl is not installed"); exit 1; } | |
} | |
join_strings() { |