Skip to content

Instantly share code, notes, and snippets.

View H3wastooshort's full-sized avatar
:octocat:
probably screaming at code rn

H3 H3wastooshort

:octocat:
probably screaming at code rn
View GitHub Profile
@H3wastooshort
H3wastooshort / autocdrip.sh
Created February 9, 2019 14:56
rips inserted cd's
#/bin/bash
while :; do
if /usr/bin/trayopen /dev/sr0; then
sleep 20
until abcde -c /home/hacker3000/.abcde.conf; do
beep -l 10000 -f 100
done
beep -f 1000 -n -f 1500 -n -f 600 -n -f 500 -n -f 100 -r 2 -l 10 -n -f 50 -r 2 -l 200 -n -f 40 -r 2 -l 300 -n -f 60 -r 3 -n -f 50 -r 3
until ! /usr/bin/trayopen /dev/sr0; do
printf "close tray\n"
#/bin/bash
while :;do
printf "\n"
sleep 0.1
clear
printf ".\n"
sleep 0.1
clear
printf "o\n"
sleep 0.1
@H3wastooshort
H3wastooshort / f1.ino
Last active February 7, 2019 19:42
A sketch for the Digispark wich presses F1 evey 5 secs, to convince wired servers to boot.
#include "DigiKeyboard.h"
void setup() {
// put your setup code here, to run once:
pinMode(1, OUTPUT); //LED on Model A
pinMode(5, INPUT);
digitalWrite(1, HIGH);
DigiKeyboard.delay(100);
digitalWrite(1, LOW);
DigiKeyboard.delay(1000);
}
@H3wastooshort
H3wastooshort / nyanbeep.sh
Created January 30, 2019 18:50
nyanbeep.sh
beep -f 622.25 -l 119.60 -D 5.20 -n -f 659.26 -l 119.60 -D 5.20 -n -f 739.99 -l 244.40 -D 5.20 -n -f 987.77 -l 244.40 -D 5.20 -n -f 622.25 -l 119.60 -D 5.20 -n -f 659.26 -l 119.60 -D 5.20 -n -f 739.99 -l 119.60 -D 5.20 -n -f 987.77 -l 119.60 -D 5.20 -n -f 1108.73 -l 119.60 -D 5.20 -n -f 1244.51 -l 119.60 -D 5.20 -n -f 1108.73 -l 119.60 -D 5.20 -n -f 932.33 -l 119.60 -D 5.20 -n -f 987.77 -l 244.40 -D 5.20 -n -f 739.99 -l 244.40 -D 5.20 -n -f 622.25 -l 119.60 -D 5.20 -n -f 659.26 -l 119.60 -D 5.20 -n -f 739.99 -l 244.40 -D 5.20 -n -f 987.77 -l 244.40 -D 5.20 -n -f 1108.73 -l 119.60 -D 5.20 -n -f 932.33 -l 119.60 -D 5.20 -n -f 987.77 -l 119.60 -D 5.20 -n -f 1108.73 -l 119.60 -D 5.20 -n -f 1318.51 -l 119.60 -D 5.20 -n -f 1244.51 -l 119.60 -D 5.20 -n -f 1318.51 -l 119.60 -D 5.20 -n -f 1108.73 -l 119.60 -D 5.20 -n -f 739.99 -l 244.40 -D 5.20 -n -f 830.61 -l 244.40 -D 5.20 -n -f 622.25 -l 119.60 -D 5.20 -n -f 622.25 -l 119.60 -D 130.00 -n -f 493.88 -l 119.60 -D 5.20 -n -f 587.33 -l 119.60 -D 5.20 -n -f 554.37 -l 119
@H3wastooshort
H3wastooshort / wuupload.sh
Created January 29, 2019 15:15
uploads a pic every minute
#!/bin/bash
HOST='webcam.wunderground.com'
USER='WU_8595713CAM1'
PASSWD='NOT UR PW!!'
FILE='/tmp/camsnap.jpg'
fswebcam -r 640x480 --jpeg 50 $FILE
#FILE=`ls -lt *snapshot.jpg | head -1 | awk '{print $9}'`
#echo "file is $FILE"
/usr/bin/ftp -n -v $HOST << END_SCRIPT
user $USER $PASSWD
#/bin/bash
while true;do
MONITORDIR="/srv/dev-disk-by-label-Podcasts/"
inotifywait -m --exclude "[^m][^3][^u]$" "$MONITORDIR" -e create -e moved_to |
while read path action file; do
@H3wastooshort
H3wastooshort / faxout.sh
Last active November 21, 2018 14:45
Simple samba fax server
#!/bin/bash
#is dependent on [efax,inotify-tools,beep] and your samba server of choice
#===HOW2INSTALL===#
#make the fax dir "sudo chmod +rw"
#make the sript "sudo chmod +rx" and run it as sudo!
#