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/sh | |
CHANNEL="$1" | |
PHPSESSID="$(curl -s -I "https://untwitch.com/" \ | |
| gawk -F '=|;' '/PHPSESSID/{print $2}')" | |
VIDEOID="$(curl -s "https://twitchrss.appspot.com/vod/$CHANNEL" \ | |
| gawk -v RS='<|>' -v FS='/' '/\/videos\//{print $5; exit}')" | |
URL="twitch.tv%2Fvideos%2F$VIDEOID&format=Audio_Only&from=1&to=150" | |
curl -L "https://untwitch.com/" -d "url=$URL" -H "Cookie: PHPSESSID=$PHPSESSID" -o "$VIDEOID.mp4" |
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
#!/usr/bin/env osascript | |
# Import Chrome History | |
tell application "Safari" to activate | |
tell application "System Events" | |
keystroke "i" using {option down, command down} | |
key code {49, 48, 48, 49} | |
keystroke return | |
end tell |
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
[default] | |
pause | |
keep-open | |
fullscreen | |
geometry=0:0 | |
hwdec=vaapi | |
framedrop=vo |
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
#!/usr/bin/env python | |
# 999dice.com claim faucet | |
import sys | |
import time | |
from selenium import webdriver as WD | |
from selenium.webdriver.common.by import By |
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
#!/usr/bin/env osascript | |
# Apply to InfoJobs offers. | |
tell application "Google Chrome" to ¬ | |
tell front window's active tab to ¬ | |
execute javascript ¬ | |
"document.getElementById" & ¬ | |
"('botonEnviar').click();" |
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
#!/usr/bin/env python | |
import sys | |
from selenium import webdriver as WD | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait as WDW | |
from selenium.webdriver.support import expected_conditions as EC | |
CO = WD.ChromeOptions() | |
CO.binary_location = sys.argv[2] |
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/zsh | |
SHOW=$1 | |
ADB="$1.adb" | |
audioDB -d "${ADB}" -N | |
audioDB -d "${ADB}" -L | |
audioDB -d "${ADB}" -P | |
audioDB -d "${ADB}" -S |
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/sh | |
# Change video-files names from YTID-based to date-based ones. | |
for MP4 in ???????????@[0-9].mp4;do | |
ULDATE=$(youtube-dl -j ${MP4/@*} | awk -F\" '{print $28}') | |
AIRDATE=$(faketime $ULDATE date -v-mon +%F) | |
mv -v $MP4 ${AIRDATE}_${MP4/*@} | |
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
#!/bin/sh | |
# Download all the photos of an instagram user, even if he/she has blocked you. | |
open "http://www.picbear.com/$1/";JS="document.body.innerHTML" | |
SCPT="'tell application \"Safari\" to do JavaScript \"$JS\" in front document'" | |
echo "Scroll to the bottom of the page and press Return.";read | |
eval osascript -e $SCPT|awk -v RS=\" '/_n.jpg$/{print $1}'|xargs -I @ curl -O @ |
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/sh | |
SD="Foto/Persone/VIP/TeleVisione/RTV38/Carlotta_Comparini" | |
GDD="/Volumes/Misc Stuff/Google Drive/$USER/MultiMedia/Immagini" | |
ID=$(youtube-dl --get-id ytsearch:tadà_$(date -v-mon -v-0w +%d/%m)) | |
VURL=$(curl -s "$(youtube-dl -g -f 135 youtu.be/$ID)" | gawk -v RS='<|>' '/"135"/{while($0!~/\/\//)getline; print}') | |
AURL=$(curl -s "$(youtube-dl -g -f 140 youtu.be/$ID)" | gawk -v RS='<|>' '/"140"/{while($0!~/\/\//)getline; print}') | |
cd $HOME/Pictures/$SD; youtube-dl --id --skip-download --write-auto-sub --sub-format=ttml --sub-lang=it youtu.be/$ID |