Skip to content

Instantly share code, notes, and snippets.

View mrabhinv's full-sized avatar

Abhinav mrabhinv

View GitHub Profile
@sterlingwes
sterlingwes / README.md
Created January 31, 2016 02:05
Converting a scanned PDF to EPUB ebook (or other format)

Caveat

You're not going to get a beautiful EPUB out the other end - if that's what you're looking for, expect to do some manual clean-up work yourself.

Basic order of operations:

  • Convert your PDF to an OCR-friendly format
  • OCR that shit into plaintext
  • Convert that plaintext into your format of choice (in this case, an EPUB)
@FreddieOliveira
FreddieOliveira / docker.md
Last active November 2, 2024 17:21
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@Moeser
Moeser / btrfs-guide.md
Last active January 18, 2023 21:52 — forked from MaxXor/btrfs-guide.md
Btrfs guide for initial setup of an LUKS-encrypted btrfs raid with included recovery guide

Btrfs guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
#!/bin/bash
set -x
dump_file=$1
if [[ -z "$dump_file" ]]; then
echo "No dump provided assuming \"mmcblk0\""
dump_file="mmcblk0"
fi
@Rajssss
Rajssss / install-supersu-to-anbox.sh
Last active June 1, 2022 04:28
script to root anbox with supersu.
#!/bin/bash -v
#some code edited from root@geeks-r-us.de
#Modified script by https://github.com/rypz79, taken from https://github.com/anbox/anbox/issues/894#issuecomment-420766769
#Tested with SuperSU-v2.82-201705271822 only!! Check test system details in comments.
set -e
#get zip file and set workdir
mkdir -p ~/temp