Skip to content

Instantly share code, notes, and snippets.

@neckothy
neckothy / bwcover.py
Created August 5, 2023 19:33
fetch and save full-size covers from bookwalker
#!/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:
@sneakers-the-rat
sneakers-the-rat / clean_pdf.sh
Last active June 24, 2024 18:18
Strip PDF Metadata
# --------------------------------------------------------------------
# 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,
@u1i
u1i / doit.txt
Created June 21, 2021 11:28
pdftk MacOs M1
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active July 24, 2024 18:25
Japanese Subtitles

📓 Table of Contents 📚 Resources ✉️ Chat


kitsunekko.net jp subtitles

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.

@mia-riezebos
mia-riezebos / exiftool-music-organizer.sh
Last active August 14, 2023 17:34
organizing your music using exiftool
#!/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
@GLMeece
GLMeece / Steps_to_Terminal_Enlightenment_on_a_Mac.md
Last active June 6, 2024 06:10
Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit)
@Stepland
Stepland / EliteTMHelper.py
Last active July 16, 2024 18:33
Want to be Elite TM but don't have the time and patience to rip 500 Vinyls ? no problem.
import requests
import time
import sys
import argparse
import pickle
import json
class RedactedAPIError(Exception):
pass
@rjw57
rjw57 / pmdown.py
Last active October 23, 2023 02:00
#!/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/
"""
@tobek
tobek / get-image-urls.js
Last active July 18, 2024 17:22
Save images from chrome inspector/dev tools network tab
/* 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]
*/