Skip to content

Instantly share code, notes, and snippets.

@zongou
zongou / build_code-server.sh
Last active October 22, 2023 02:43
Build code-server on termux and alpine.
#! /bin/sh
# MIT License
# Copyright (c) [2023] [zongou@outlook.com]
APP_DIR="${HOME}/code-server"
is_termux() { test -n "${TERMUX_VERSION}"; }
is_alpine() { test -f /etc/os-release && test "$(grep "^ID=" /etc/os-release | cut -d= -f2-)"="alpine"; }
alpine_setup_build_env() {
@zongou
zongou / termux
Last active March 27, 2023 21:35
#!/bin/sh
# This script provides easy to use functions on termux
# export PREFIX=/data/data/com.termux/files/usr
_ROOTFS_DIR="/data/data/com.termux/files"
ansi_escape_code() {
# Base color
RED='\033[31m'
# Lighter shade
@zongou
zongou / build_busybox_for_android.md
Last active February 12, 2023 21:28
编译安卓可用的busybox

简介

busybox 被被称为瑞士军刀,以极小的体积提供绝大多数命令行功能,alpine在busybox的基础上做出一个极小的linux系统。

编译环境

  • Ubuntu 22.10
  • NDK-r25c
  • busybox-v1.36

NDK可以直接去网站下载,也可以通过sdk-manager下载过来。

To eat or not to eat. That isnt a question