Skip to content

Instantly share code, notes, and snippets.

View zongren's full-sized avatar
🐼
Finding the way

宗仁 zongren

🐼
Finding the way
View GitHub Profile
@zongren
zongren / rotator.rs
Created August 9, 2023 05:51 — forked from LiewJunTung/rotator.rs
RenderScript to rotate image buffer after convert YUV to RGB
#pragma version(1)
#pragma rs java_package_name(com.liewjuntung.image)
rs_allocation inImage;
int inWidth;
int inHeight;
float rotation = 0.0f;
@bczhc
bczhc / a.md
Last active July 30, 2025 09:35
Build librime for Android targets

Clone Trime

git clone https://github.com/osfans/trime --recursive
cd trime
git checkout 436c8fc42af638fdd8744533beec03567ec03c6c

Apply patch

@sussycatgirl
sussycatgirl / mailcow_wg.md
Created February 27, 2022 14:49
Tunneling a Mailcow server through a remote server using Wireguard

Tunneling a Mailcow server through Wireguard

Mailcow is a easy to set up Mailserver running in Docker.

Unfortunately, most ISPs block port 25. In addition to that, residential IP addresses are generally blacklisted, making it impossible to self-host a mailserver at home. Mailcow by itself requires at least 6GB of RAM, which makes hosting it on a VPS rather expensive.

The solution: Running Mailcow at home and tunneling it's traffic through a cheap VPS.

The final setup will look like this:

@evnik
evnik / Framework2XCFramework.sh
Created December 30, 2020 20:23
This script allows to convert an iOS framework binary to XCFramework
# Copyright (c) 2020 Eugene Berdnikov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
@pwc3
pwc3 / convert-framework.sh
Last active July 9, 2024 06:29
Convert Legacy Framework to XCFramework
#!/usr/bin/env bash
# Converts a legacy framework into an xcframework.
# Usage: convert-framework.sh input_framework output_xcframework
set -euo pipefail
E_BADARGS=85
if [ $# -ne 2 ]; then
echo "Usage: $(basename $0) framework xcframework"
@Pathoschild
Pathoschild / stardew-mod-recommendations.md
Last active August 5, 2025 18:47
Stardew Valley mod recommendations

Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.

Base frameworks

/*
* Singleton class for default executor supplier
*/
public class DefaultExecutorSupplier{
/*
* Number of cores to decide the number of threads
*/
public static final int NUMBER_OF_CORES = Runtime.getRuntime().availableProcessors();
/*
@Mioke
Mioke / nginx_config.md
Last active July 4, 2025 07:58
Mac OS下安装及配置nginx
@wbroek
wbroek / genymotionwithplay.txt
Last active February 13, 2025 09:37
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)