I hereby claim:
- I am simon987 on github.
- I am hexcube (https://keybase.io/hexcube) on keybase.
- I have a public key ASBloK2fwDF-q7M8vxzcH98-tBgEifB0HrMpn9ZrHHTpYwo
To claim this, I am signing this object:
| import os | |
| from shutil import copyfile | |
| import pathlib | |
| from multiprocessing import Pool, Value | |
| SRC = "/mnt/merger/audio/music" | |
| DST = "/mnt/merger/audio/music_opus" | |
| to_convert = [] | |
| counter = Value("d") |
I hereby claim:
To claim this, I am signing this object:
| proxy_cache_path /files/.cache/ | |
| levels=1:2 | |
| keys_zone=lg_cache:1m | |
| max_size=90g inactive=168h use_temp_path=off; | |
| server { | |
| listen 80; | |
| # Workaround for symlinks |
| import os | |
| from shutil import copyfile | |
| import pathlib | |
| from multiprocessing import Pool, Value | |
| SRC = "/mnt/Data1/Music" | |
| DST = "/mnt/Data1/Music [V0]" | |
| to_convert = [] | |
| counter = Value("d") |
| @echo off | |
| cls | |
| del /F /S /Q "%systemroot%\temp\*.*" | |
| del /F /S /Q "C:\AppData\Local\Microsoft\Windows\History\*.*" | |
| del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\*.*" | |
| del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5\*.*" | |
| del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Temporary Internet Files\Content.IE5\*.*" | |
| del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Temporary Internet Files\Low\Content.IE5\*.*" |
Easiest way to get rid of empty sub-directories on windows.
ROBOCOPY Parent-Directory-You-Want-To-Purge Parent-Directory-You-Want-To-Purge /S /MOVEIn other words, if I have a bunch of empty season and episode folders in my TV dir, i'd run: ROBOCOPY Television Television /S /MOVE
| #!/usr/bin/env python3 | |
| # Rip floatplane.rip | |
| # by terorie :P | |
| import sys | |
| import requests | |
| import lxml.html | |
| from clint.textui import progress |
Heres a snippet for using youtube-dl to download soundcloud playlists:
youtube-dl -w -o "Playlist/%(playlist_title)s (%(playlist_uploader)s) - %(playlist_id)s/%(title)s.%(ext)s" -f bestaudio --embed-thumbnail --add-metadata https://soundcloud.com/tommisch/setsRCLONE_CONFIG_ZZ_TYPE=http RCLONE_CONFIG_ZZ_URL=http://link.to.open.directory/here/
rclone size zz:Replace http://link.to.open.directory/here/ and rclone will attempt to get the entire size of the directory.