Skip to content

Instantly share code, notes, and snippets.

wget -kEp "http://e-shuushuu.net/search/results/?page=1&tags=28706+!6+!60+!25+!15959+!182683+!71+!73+!29+!27+!42+!3371+!11+!10+!52+!67"
wget -kEp "http://e-shuushuu.net/search/results/?page=1&tags=28706+!6+!60+!25+!15959+!182683+!71+!73+!29+!27+!42+!3371+!11+!10+!52+!67"
--no-mtime
@cpuuntery
cpuuntery / miniplayer.js
Created December 4, 2020 11:28
youtube fix
document.querySelector('ytd-player[context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER"]').remove()
find . -type f -iname "*.sh" -execdir sh generate.mp3.sh {} \;
su -mm -c mount -t ext4 -o nosuid,nodev,noexec,noatime /dev/block/mmcblk1p1 /data/media/0/sdcard
restorecon -rv /data/media/0/sdcard
chown -R media_rw:media_rw /data/media/0/sdcard
chmod -R 775 /data/media/0/sdcard
su -mm -c mount -t sdcardfs -o nosuid,nodev,noexec,noatime,mask=7,gid=9997 /data/media/0/sdcard /mnt/runtime/write/emulated/0/sdcard
dtoverlay=gpio-shutdown,gpio_pin=21
# add blank lines between lines
find: \R
replace: $0$0
# add string to blank lines
find: ^(?:[\t ]*(?:\r?\n|\r))+
replace: the string
# add string at the end of each line
find: $
.\ffmpeg.exe -i [input file] -ss [start time] -to [end time] -c copy [output]
#This will detect the duration automatically for you. You just need to specify the start time. This is useful for removing the first 30 second for example. The filename is Regexed and the output is 1.ogg
Get-ChildItem | Where-Object {$_.Name -match “\[\d\d\].*ogg”} | ForEach-Object {.\ffmpeg.exe -i $_.Name -ss 0 -to ((.\ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 $_.Name) -7) -c copy 1.ogg}
#The filename is Regexed and the output is 1.ogg. But you need to enter the end Time
#fast
$newfile=""; for($i=1; $i -le 70; $i++) {$newfile += GC "$i.html"} $newfile | out-file "target.html"
#slow
for($i=1; $i -le 70; $i++){Get-Content "$i.html" >> joinedFile.html}
let download_all_req = document.querySelectorAll("i[title='Download Rule']")
for ( let i=0; i<download_all_req.length; i++)
{setTimeout(function(){download_all_req[i].click()}, i * 500)}