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 / 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 / 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 / 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
@renjieliu
renjieliu / Migrate Termux setup from Device A to Device B.md
Last active December 9, 2024 08:13
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 1. Backup termux on device A and run below command one by one.

  • cd /data/data/com.termux/files
  • tar -zcvf ./termux-backup_20211031.tar.gz home usr
  • mv ./termux-backup_20211031.tar.gz /storage/[Device A ID]/Android/data/com.termux/files/termux-backup_20211031.tar.gz

Step 2. Restore the setup of Termux on Device B.