Skip to content

Instantly share code, notes, and snippets.

Avatar
😴
Life

Efreak Efreak

😴
Life
View GitHub Profile
@Efreak
Efreak / 1. Copying steam guard from rooted to unrooted device.md
Last active Feb 4, 2021
Move steam mobile from rooted device to unrooted device without losing steam guard keys
View 1. Copying steam guard from rooted to unrooted device.md

Steam mobile doesn't allow you to use adb backups to move steam guard keys to your new device. This means if you use WinAuth or other tools that use the steam guard private key obtained from a rooted device, they will stop working when you switch devices and set up a new steam guard. The process below will allow you to move your steam guard key from a rooted device to an unrooted device.

notes:

A. when installing old versions of apps from unofficial sources, it's important to verify that they're legitimate. One way to do this is to install the old version, then try updating it through the play store--this process will not work if the signatures don't match.

B. don't keep unencrypted backups around. 2fa doesn't help if someone else gets ahold of it. Titanium backups are standard compressed files/folders, and adb backups are tar files with a few extra bytes at the beginning (the beginning of the file is at a fixed offset), and it's trivial to extract files from them. I'm not sure how secure adb password p

@Efreak
Efreak / wishlist.md
Created Sep 2, 2020
Keyboard/mouse wishlist
View wishlist.md

My wishlist for a customized keyboard are basically

  • full 24 function keys [1]
  • two altgr/windows/meta/whatever keys (old windows 95 keyboards used to advertise this, then it went away)
  • either 1 or 2 context menu keys
  • analog volume control (wheel, not buttons)
  • no full 1-inch border around the top/sides
  • history back/forward buttons next to the arrow keys
  • I don't care about mechanical keys, they're too loud.
  • as a nice touch, include blank keys/caps for some of the function keys, to make them easier to relabel.
@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.