Skip to content

Instantly share code, notes, and snippets.

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

Efreak Efreak

😴
😪😴🥱😌💤
View GitHub Profile
Emotional Labor
Intellectual Property
Social Capital
Cognitive Bias
Hermeneutic Circle
Systemic Racism
Creative Destruction
Informed Consent
Narrative Identity
Hedonic Treadmill
@Efreak
Efreak / output.txt
Created October 4, 2023 20:40
cwebp timings. note that many of these functions arent available in PIL, such as -af, -sharp_yuv, -mt. Also, I did this on my tablet, as its *far* faster than my server, but its also throttled so 🤷
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 6880222 bytes Y-U-V-All-PSNR 47.94 52.10 52.17 48.95 dB
(1.48 bpp)
real 2m30.154s user 2m27.761s sys 0m1.756s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
@Efreak
Efreak / LICENSE
Last active May 9, 2023 10:09
Check Stable Horde kudos on a timer. Until @db0 adds X-Fields to access-control-allow-headers, you'll have to comment out line 163
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2023 Efreak2004 <nope@nope>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
From 0c30b3553af1992854e82eca00177183848cf94b Mon Sep 17 00:00:00 2001
From: Efreak <[email protected]>
Date: Sat, 29 Apr 2023 12:53:34 -0700
Subject: [PATCH] add alignment fixer step and align_fix.py
https://github.com/lzhiyong/termux-ndk/raw/master/patches/align_fix.py
---
Makefile | 1 +
align_fix.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
@Efreak
Efreak / index.json
Created September 7, 2022 23:27
isekai yakkyoku 33-34 to fill in missing chapters in mangadex. use cubari extension with file url, and then merge with mangadex
{
"title": "Isekai Yakkyoku",
"description": "A young pharmacologist and researcher in Japan died from overworking, and was reincarnated in a Medieval Parallel Europe. He was reincarnated as a 10-year-old apprentice to a famous Royal Court pharmacist, had attained an inhuman skills of ability to see through disease, material creation, and material destruction. \n \nIn a society in which dubious medical practice are rampant, price gouging thru the monopoly of the pharmacist guild, and good medicine aren't available to the commoners. He was recognized by the Emperor at that time and opened a Pharmacy at the corner of the town. He will wipe out the fraud that has swept the world, and deliver to the commoners a truly effective medicine that was developed using present day pharmacology. Thus the boy pharmacist will cheat by using his previous knowledge to create innovative medicines while helping the people of the parallel world, a story about living his new life to the fullest this time. \n \nThe popular
@Efreak
Efreak / logcat.html
Last active June 30, 2022 22:01
logcat.html
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. https://github.com/theZiz/aha -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8"/>
<title>logcat</title>
</head>
<body>
<pre>
@Efreak
Efreak / open-edited-url.sh
Created June 28, 2022 04:50
a script to edit a url inline using whiptail, then open it in a browser
# check what's available for opening the url.
# sensible-browser requires an environment variable :(
# see xdg-open spurce: https://github.com/freedesktop/xdg-utils
# todo: maybe use a second whiptail checklist to pick browser?
# todo: a chooser for termux-open options (send/view, chooser)
for app in $BROWSER termux-open xdg-open firefox elinks links2 links lynx w3m
do
if
type $app > /dev/null 2>&1
then
@Efreak
Efreak / remap_bluetooth_remote.kcm.txt
Created June 26, 2022 02:48
trying to remap the buttons on my bluetooth remote...
type FULL
key DPAD_CENTER {
base: fallback MEDIA_PLAY_PAUSE
}
key DPAD_UP {
base: fallback VOLUME_UP
}
key DPAD_DOWN {
base: fallback VOLUME_DOWN
@Efreak
Efreak / cargo-csearch.bsh
Last active January 9, 2022 18:25
list packages installed via cargo with colored columns for package name, version, and installed binaries
#!/usr/bin/env bash
if [ "$1" = "csearch" ]; then shift; fi #remove subcommand if called via `cargo csearch`
c33=$'\033[33m'
c34=$'\033[34m'
c35=$'\033[35m'
c0=$'\033[0m'
list="$(cargo search $@)"