Skip to content

Instantly share code, notes, and snippets.

Efreak / index.json
Created Sep 7, 2022
isekai yakkyoku 33-34 to fill in missing chapters in mangadex. use cubari extension with file url, and then merge with mangadex
View index.json
"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 / logcat.html
Last active Jun 30, 2022
View logcat.html
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<!-- This file was created with the aha Ansi HTML Adapter. -->
<html xmlns="">
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8"/>
Efreak /
Created Jun 28, 2022
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:
# 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
type $app > /dev/null 2>&1
Efreak / remap_bluetooth_remote.kcm.txt
Created Jun 26, 2022
trying to remap the buttons on my bluetooth remote...
View remap_bluetooth_remote.kcm.txt
type FULL
base: fallback MEDIA_PLAY_PAUSE
key DPAD_UP {
base: fallback VOLUME_UP
base: fallback VOLUME_DOWN
Efreak / cargo-csearch.bsh
Last active Jan 9, 2022
list packages installed via cargo with colored columns for package name, version, and installed binaries
View cargo-csearch.bsh
#!/usr/bin/env bash
if [ "$1" = "csearch" ]; then shift; fi #remove subcommand if called via `cargo csearch`
list="$(cargo search $@)"
Efreak / to-html.html
Last active Dec 12, 2021
testing to-html
View to-html.html
<P>Setting style <code style="background:#ccc"> &lt;style&gt;.terminal{background:#ccc;padding:1em}&lt;/style&gt; </code> to show dark backgrounds and margins.</p>
<P>You should think about <a href="">background color detection</a>, there's only a few things you can try and <a href="">this one</a> worked for me. Background color should certainly be optional, as some terminals will replace colors (Putty, Termux and other terminals allow color themes that modify the 16-color colors available, though for 88-color the built-in colors are usually enough.).</p>
<P>You might also want to consider importing fonts from a cdn, too; <a href="">this</a> might work.</p>
<pre class="terminal">
<span class="shell">&gt; </span><span class="cmd">uname</span> <span class="flag">-a</span>
Linux localhost 4.14.190-22554634-abT860XXU4CUI4 #2 SM
Efreak / 1. Copying steam guard from rooted to unrooted
Last active Sep 13, 2022
Move steam mobile from rooted device to unrooted device without losing steam guard keys
View 1. Copying steam guard from rooted to unrooted

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.


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 /
Created Sep 2, 2020
Keyboard/mouse wishlist

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.