Skip to content

Instantly share code, notes, and snippets.

@renjieliu
renjieliu / cloudSettings
Last active October 30, 2020 19:55
This is used for Visual Studio code settings sync
{"lastUpload":"2020-10-30T19:55:49.351Z","extensionVersion":"v3.4.3"}
@renjieliu
renjieliu / Compile and Build PyArrow on Raspberry Pi 4, ARM v7.md
Created October 28, 2020 14:08
Compile and Build PyArrow on Raspberry Pi 4, ARM v7
@renjieliu
renjieliu / Migrate Termux setup from Device A to Device B.md
Last active December 18, 2024 20:44
Migrate Termux setup from Device A to Device B

Follow below steps to migrate the setup of Termux from Device A to Device B

Step 0. To get the MicroSD card ID

For termux, ~/storage folder contains a bunch of the soft links

external-n is the one pointing to the MicroSD card or the OTG USB Drive, using realpath ~/storage/external-1, can get the physical path on the MicroSD card. The XXXX-YYYY part is the MicroSD card UUID

Other links, such as dcim, movies, music, they are pointing to the folders on the phone internal storage, using realpath ~/storage/dcim can find the physical location of the folder

@renjieliu
renjieliu / docker.md
Created January 6, 2022 15:35 — forked from FreddieOliveira/docker.md
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

@renjieliu
renjieliu / eight_queens.sql
Created February 18, 2024 03:07 — forked from adewes/eight_queens.sql
Eight Queens Problem Solved using Common Table Expressions
WITH RECURSIVE
positions(i) as (
VALUES(0)
UNION SELECT ALL
i+1 FROM positions WHERE i < 63
),
solutions(board, n_queens) AS (
SELECT '----------------------------------------------------------------', cast(0 AS bigint)
FROM positions
UNION