This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# userlist only address : | |
toot search bash | grep ^* |awk '{print $2}' | |
# userlist and profile advanced : | |
readarray -t tooter_array <<<"$(toot search bash | grep ^* |awk '{print $2}')" && for i in "${tooter_array[@]}"; do echo -e "$(toot whois $i) \n ------------------\n";done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read -i "Stunden " later ; (sleep $later"h" && toot post "$later Stunden später")& |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {1..5}; do | |
mx=480;my=320;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" RGB:- random$i.jpg | |
done | |
convert -delay 20 -loop 0 *.jpg myimage.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readarray -td ";" lq <<< $(curl "https://www.umweltbundesamt.de/api/air_data/v2/airquality/csv?date_from=$(date +%F)&time_from=$(($(date +%H)-1))&date_to=$(date +%F)&time_to=$(date +%H)&station=1460&lang=de"| grep -m1 DERP023) ; echo ${lq[5]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#curl --request GET "https://api.twitter.com/2/tweets/search/recent?query=context%3A65.852262932607926273%20-is%3Aretweet%20has%3Aimages%20lang%3Aja" -H "Authorization: Bearer $BEARER_TOKEN" | jq . | grep \"id\": | sed s/\"id\"://g | sed s/" "//g | sed s/\"//g | sed s/,//g >katzenbilder.txt | |
#curl --request GET "https://api.twitter.com/2/tweets/search/recent?query=context%3A65.852262932607926273%20-is%3Aretweet%20has%3Aimages%20lang%3Ade" -H "Authorization: Bearer $BEARER_TOKEN" | jq . | grep \"id\": | sed s/\"id\"://g | sed s/" "//g | sed s/\"//g | sed s/,//g >katzenbilder.txt | |
#curl --request GET "https://api.twitter.com/2/tweets/search/recent?query=linux%20-is%3Aretweet%20lang%3Ade" -H "Authorization: Bearer $BEARER_TOKEN" | jq . | grep \"id\": | sed s/\"id\"://g | sed s/" "//g | sed s/\"//g | sed s/,//g >katzenbilder.txt | |
#curl --request GET "https://api.twitter.com/2/tweets/search/recent?query=chat%20context%3A65.852262932607926273%20%20-is%3Aretweet%20has%3Aimages%20lang%3Afr" -H "Author |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --request GET "https://api.twitter.com/2/tweets/search/recent?query=context%3A65.852262932607926273%20-context%3A66.852262932607926273%20-is%3Aretweet%20has%3Aimages%20lang%3Aja" -H "Authorization: Bearer $BEARER_TOKEN" | jq . | grep \"id\": | sed s/\"id\"://g | sed s/" "//g | sed s/\"//g | sed s/,//g >katzenbilder.txt | |
while read line | |
do | |
date=$(date) | |
a="Ich mag Japanische Katzenfotos. $date: https://twitter.com/dewomser/status/$line" | |
twurl -u twitteruser -X POST "/1.1/statuses/update.json?status=$a" | |
echo $a | |
sleep 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TWURLIST KAPUTT! | |
# Funktioniert nict mehr ! | |
#!/bin/bash | |
twurl /1.1/followers/ids.json?screen_name=your_twittername > follower.json | |
# STOP! | |
# Open in editor , cut head and buttom , erase all kommas. Save the list as follower.txt | |
# -------------------------------------------------------------------------------------------- | |
#Now follows heavy hackaound due twurl is Grrrrrr ! | |
touch test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datum=$(date -u '+%y%m%d%H'); minute5=$(printf %02d $((($(date '+%M')-5)/5*5))) ; for ((i = 0 ; i < 125 ; i=i+5)); do wget https://opendata.dwd.de/weather/radar/radvor/re/RE$datum$minute5"_"$(printf %03d $i).gz; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cowsay -f dragon "lolo" | convert -background lightblue -fill black -font Liberation-Mono-Bold -size '640x480' -trim label:@- drache.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pegelstand als csv für Grafik (1-liner) | |
wetterdienst values --provider=wsv --network=pegel --si-units=True --station=23900200 --parameter=water_level,WsvPegelDataset --resolution=dynamic --debug --tidy --format=csv > pegel.csv | |
# Pegelstand Echtzeit als Text (1-liner) | |
datum=$(date '+%d.%m.%Y');pegel=$curl "https://pegelonline.wsv.de/webservices/files/Wasserstand+Rohdaten/RHEIN/WORMS/$datum/down.txt" 2>&1 | grep "^[0-2][0-9]:[0-5][0-9]#[0-9]" | tail -1 | cut -c 7- | tr -d '\r' ; echo Pegel in Worms: "$pegel" cm |