Skip to content

Instantly share code, notes, and snippets.

View rcky844's full-sized avatar

Ricky Cheung rcky844

View GitHub Profile
@rcky844
rcky844 / gist:c0d108a42a2ed005fa0d0fb9bf177186
Created June 5, 2025 05:23
OnePlus 3 LineageOS 14.1 builds (2017-[04-06]) checksum
[ricky@TipzLab-Z690 update_verifier]$ md5sum lineage-14.1-20170*
055ce58b57710e82ad47074b520c6027 lineage-14.1-20170420-nightly-oneplus3-signed.zip
dd2d2a03cf538a36b3810b83e71cbe8b lineage-14.1-20170427-nightly-oneplus3-signed.zip
82969aa461c067d75d383c6027925d6f lineage-14.1-20170504-nightly-oneplus3-signed.zip
3bd4f8395bee895d107b91288be4ce25 lineage-14.1-20170525-nightly-oneplus3-signed.zip
78907e145e0feaafde66831c290ce688 lineage-14.1-20170601-nightly-oneplus3-signed.zip
9cf440ae0634ef3d4ff61f78565c430a lineage-14.1-20170608-nightly-oneplus3-signed.zip
[ricky@TipzLab-Z690 update_verifier]$ sha1sum lineage-14.1-20170*
9fd3ffb8a735a84c51ac98242ed43b2ae8f0aebe lineage-14.1-20170420-nightly-oneplus3-signed.zip
bbc3b4579ae1b130cc05c2feeb2cf51bff0afb0b lineage-14.1-20170427-nightly-oneplus3-signed.zip
#!/usr/bin/env bash
TMPFILE=$(mktemp)
trap 'rm -f "$TMPFILE"' EXIT
spectacle -r -o $TMPFILE -b -n 2>/dev/null
if [ -f "$TMPFILE" ]; then
export OMP_THREAD_LIMIT=1
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
tesseract $TMPFILE - --oem 1 | xclip -selection clipboard
fi
#!/usr/bin/env bash
# pdfcleanse 2025.03.12
# By Ricky Cheung <[email protected]>
# Variables:
# - COMPRESS_TYPE: bw, posterize, jpeg, webp
# - COMPRESS_BW_BRIGHTNESS (int - default: 15X1)
# - COMPRESS_POSTERIZE_LEVEL (int - default: 2)
# - EXTRACT_METHOD: ppm, images, magick (default: ppm)
@rcky844
rcky844 / MainActivity.java
Created August 3, 2024 14:43
Decompilation of Google Play Store's amazing Bussin WebX
package com.retiredlake.napture;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.webkit.ValueCallback;
import android.webkit.WebSettings;
import android.webkit.WebView;
@rcky844
rcky844 / missing_constants.h
Created July 16, 2024 11:12
OSS libwcnss_qmi header file
/*
* Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software