Skip to content

Instantly share code, notes, and snippets.

@jottr
jottr / pdfcrop
Created December 4, 2015 16:55
A better pdfcrop, which preserves links
#!/bin/bash
# from http://tex.stackexchange.com/questions/42236/pdfcrop-generates-larger-file
function usage () {
echo "Usage: `basename $0` [Options] <input.pdf> [<output.pdf>]"
echo
echo " * Removes white margins from each page in the file. (Default operation)"
echo " * Trims page edges by given amounts. (Alternative operation)"
echo
echo "If only <input.pdf> is given, it is overwritten with the cropped output."
@j-jith
j-jith / miui-fastboot-howto.rst
Last active November 19, 2024 00:46
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux

@Kabouik
Kabouik / readme.md
Last active September 1, 2024 10:35
postmarketOS on F(x)tec Pro¹ (SD845/msm8998)

postmarketOS and mainline kernel on F(x)tec Pro¹

Below are the steps required to flash postmarketOS (port made by Danct12 based on earlier work by Notkit) and mainline kernel (work done by Kholk and the github.com/somainline group) on the Pro1 msm8998:

2022-03-10. As of today, Danct12's port has not been merged yet, hence there are a couple extra steps to manually apply patches to pmaports. Beware that this is all work in progress and there will be bugs and missing functionality. 2022-03-12. device-fxtec-qx1000-nonfree-firmware added to the port, meaning support for model, WLAN and GPU.

  1. pip3 install --user pmbootstrap
  2. pmbootstrap init and choose edge and whatever device (I chose qemu and aarch64, but it should not matter, we'll redo it later).
  3. cd /path/to/work/directory/you/chose/above/cache_git/pmaports