Skip to content

Instantly share code, notes, and snippets.

View Efreak's full-sized avatar
😴
😪😴🥱😌💤

Efreak Efreak

😴
😪😴🥱😌💤
View GitHub Profile
@Efreak
Efreak / README.md
Last active October 23, 2021 13:19

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 September 26, 2019 22:15
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.
// ==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==
!
! Generated with :
! XRDB2Xreources.py
!
*.foreground: #dafaff
*.background: #1f1726
*.cursorColor: #dd00ff
!
! Black
*.color0: #000507
@Efreak
Efreak / clip.sh
Created August 5, 2019 20:47
Termux clip command. Clipboard is set from piped text or from parameters, otherwise it displays the contents. WTFPL.
#!/usr/bin/env bash
if [ -t 0 -a $# -gt 0 ]; then
termux-clipboard-set "$@"
echo "$@"
elif [ -t 0 ]; then
termux-clipboard-get
else
p=`cat`
echo "$p" | termux-clipboard-set
echo "$p"
@Efreak
Efreak / Comic-sans.reg
Created January 1, 2019 05:07
Change your system fonts to Comic Sans
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"=""
"Segoe UI Bold (TrueType)"=""
"Segoe UI Bold Italic (TrueType)"=""
"Segoe UI Italic (TrueType)"=""
"Segoe UI Light (TrueType)"=""
"Segoe UI Semibold (TrueType)"=""
"Segoe UI Symbol (TrueType)"=""
@Efreak
Efreak / README.md
Last active December 13, 2018 10:22
Termux libtidy Deb file

so to get this file, i used the instructions linked from [here](https://github.com/termux/termux-packages/issues/2227/

you can try running build.sh to automate it, but I o ly spent ~5min actually writing that script, and it's untested. alternatively, just run the commands yourself; the necessary files are included as well

feel free to fork the gist and/or comment with fixes

@Efreak
Efreak / index.html
Created August 23, 2017 00:19
GUI for ASF3, based on @KlappPc's page. jQuery removed. Clicking a text area highlights it. Styles added. Font sizes increased. Placeholders added to textareas and input.
<html>
<head>
<script type="text/javascript">
var script = function(){
var textarea = document.getElementById('consoleOut');
var updateLog = function(){
var xhr = new XMLHttpRequest();
xhr.onload = function(){
textarea.innerText=this.response;
@Efreak
Efreak / index.html
Last active June 9, 2021 03:56
copy of js url/base64 en/decoder by @stephenostermiller with some tweaks. To use, go to https://bots.efreakbnc.net/efreak/encode/ or rawgit: https://goo.gl/kakB1e
<!DOCTYPE html>
<html>
<head>
<title>Base64 and URL Encoding and Decoding</title>
<meta name="description" content="Encodes or decodes data in Base64 or URL encoding using client side JavaScript">
<meta name="keywords" content="base64, base 64, urlencode, urldecode, hexencode, hex encode, hexdecode hex decode, javascript base64, javascript base 64, javascript urlencode, javascript urldecode, javascript hexencode, javascript hexdecode">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta name=viewport content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.js"></script>
<style>
@Efreak
Efreak / Misc_XpIcon.png
Last active January 13, 2018 13:39
See https://goo.gl/baFXfG to load image via githack. Original Source: http://steamcommunity.com/sharedfiles/filedetails/?id=808514042, recreated in inkscape for easier editing. Images are taken from http://shop-heroes.wikia.com and http://shopheroesopedia.com
Misc_XpIcon.png