📓 Table of Contents 📚 Resources ✉️ Chat
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
#!/bin/python | |
import sys | |
import re | |
import requests | |
# https://github.com/qsniyg/maxurl/issues/17 | |
# https://github.com/qsniyg/maxurl/commit/5d5a77c08f9461c5d7c4ceac209fca240b776d7b#diff-1bc842c9e7dda2f26048e68021e82a3c290fb38639d0acf259392b26f4664fc8R21594-R21613 | |
def get_real_url(url): | |
if "rimg.bookwalker.jp" in url: |
# -------------------------------------------------------------------- | |
# Recursively find pdfs from the directory given as the first argument, | |
# otherwise search the current directory. | |
# Use exiftool and qpdf (both must be installed and locatable on $PATH) | |
# to strip all top-level metadata from PDFs. | |
# | |
# Note - This only removes file-level metadata, not any metadata | |
# in embedded images, etc. | |
# | |
# Code is provided as-is, I take no responsibility for its use, |
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg |
📓 Table of Contents 📚 Resources ✉️ Chat
A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.
#!/bin/bash | |
# exiftool music organizer | |
# this generates an "artist/album/song"-organized music library (based on metadata) | |
# it also moves and renames songs into this library based on metadata | |
# IN/OUT | |
read -p "Input Directory: " -e INPUT_DIR | |
read -p "Output Directory: " -e OUTPUT_DIR |
Hopefully you'll Live Long and Prosper, so I don't mean terminal as in "you gonna die". This is a somewhat opinionated article on configuring a macOS machine with:
import requests | |
import time | |
import sys | |
import argparse | |
import pickle | |
import json | |
class RedactedAPIError(Exception): | |
pass |
#!/usr/bin/env python3 | |
# | |
# THIS SCRIPT REQUIRES PYTHON 3 | |
# | |
# Install requirements via: | |
# pip3 install docopt pillow reportlab | |
# | |
# Dedicated to the public domain where possible. | |
# See: https://creativecommons.org/publicdomain/zero/1.0/ | |
""" |
/* open up chrome dev tools (Menu > More tools > Developer tools) | |
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading) | |
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR | |
* open up JS console and enter: var har = [paste] | |
* (pasting could take a while if there's a lot of requests) | |
* paste the following JS code into the console | |
* copy the output, paste into a text file | |
* open up a terminal in same directory as text file, then: wget -i [that file] | |
*/ |