Skip to content

Instantly share code, notes, and snippets.

Avatar
😴
Life

Efreak Efreak

😴
Life
View GitHub Profile
@Efreak
Efreak / Feeds.md
Last active Aug 12, 2020
OPDS feeds
View Feeds.md

OPDS feeds

For use in your OPDS client

The first link is the website; the second link is a link to the feed that you can copy; the third link is an opds:// link that may open in your client, and the last link is to the opds validator.

Working Feeds

These feeds are valid (and working, so far as I can tell). That doesn't mean I'm checking them, though.

Website http://feed opds://feed validate
@Efreak
Efreak / Calibre Server with nginx WebDAV.md
Last active Aug 7, 2020 — forked from luzfcb/CalibreServerOnLinux.md
Calibre Server on Linux (in progress)
View Calibre Server with nginx WebDAV.md

This is for setting up an nginx virtual host with webdav access, as well as open directory access if you've got a reader that doesn't support OPDS, or as a backup in the case your server is misconfigured, inaccessible, javascript is disabled, etc.

setup an htpasswd file (this will only be used for webdav, not for calibre itself). You may run this command as many times as you like to add extra users.

mkdir -p /etc/nginx/auth
printf "$(please enter your username):$(openssl passwd $(read -p "Please enter your password")\n" >> /etc/nginx/auth/calibre-webdav-users.passwd

Use this config instead of the one in the main file

@Efreak
Efreak / _bookerly.css
Created Jul 2, 2020
Bookerly font-face rules
View _bookerly.css
@font-face {
font-family: 'Bookerly';
src: url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.eot'); /* IE9 Compat Modes */
src: url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.woff') format('woff'), /* Pretty Modern Browsers */
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */
font-weight: normal;
font-style: normal;
}
View Neko.txt
06-16 02:15:03.773 D/BaseController:30(13924): Attach view for RecentsController@f2e0bdd
06-16 02:15:03.774 D/BaseController:30(13924): Attach view for RecentsController@f2e0bdd
06-16 02:15:06.464 E/ResourceType(13924): Style contains key with bad entry: 0x0101056c
06-16 02:15:06.464 E/ResourceType(13924): Style contains key with bad entry: 0x0101058c
06-16 02:15:06.464 E/ResourceType(13924): Style contains key with bad entry: 0x01010605
06-16 02:15:06.486 E/ResourceType(13924): Style contains key with bad entry: 0x0101056c
06-16 02:15:06.486 E/ResourceType(13924): Style contains key with bad entry: 0x0101058c
06-16 02:15:06.486 E/ResourceType(13924): Style contains key with bad entry: 0x01010605
06-16 02:15:06.492 E/ResourceType(13924): Style contains key with bad entry: 0x0101056c
06-16 02:15:06.492 E/ResourceType(13924): Style contains key with bad entry: 0x0101058c
@Efreak
Efreak / apksigner
Last active Dec 27, 2019
apksigner 0.9
View apksigner
#!/usr/bin/env bash
java -Xmx1024M -jar apksigner.jar $@
View README.md

Process chapters downloaded by Tachiyomi into cbz files.

  • Optionally convert to cbz.

  • Requires termux.

  • cd into your Tachiyomi/downloads/SOURCE/TITLE folder before running--the script will identify source and title itself.

  • Note that termux does not have cwebp, it must be compiled/obtained elsewhere.

  • Also consider -near_lossless instead of -lossless.

  • THERE IS NO GUARANTEE THIS WILL WORK, OR THAT IT HAD NO TYPOS (I modified, working around a large number of symlinks and personal scripts I use, as well as changing the comments.

  • You are advised to back up your termux and Tachiyomi before runnin (/data/data/com.termux/files; /sdcard/Tachiyomi/downloads), and test on a single Tachiyomi chapter.

@Efreak
Efreak / tapasfilters.user.js
Created Sep 26, 2019
Tapas comic filters: Click on a genre in a tapas page listing to hide all results of that genre. Click on a comic name to hide just that comic.
View tapasfilters.user.js
// ==UserScript==
// @name Tapas comic filters
// @namespace https://github.com/efreak
// @version 1
// @description Click on a genre in a tapas page listing to hide all results of that genre. Click on a comic name to hide just that comic.
// @author Efreak
// @match https://tapas.io/comics*
// @grant none
// ==/UserScript==
View WildCherry
!
! Generated with :
! XRDB2Xreources.py
!
*.foreground: #dafaff
*.background: #1f1726
*.cursorColor: #dd00ff
!
! Black
*.color0: #000507
You can’t perform that action at this time.