Skip to content

Instantly share code, notes, and snippets.

View lixeon's full-sized avatar

Jing (Ethan) Li lixeon

View GitHub Profile
@lixeon
lixeon / autoupdate_frp.sh
Created October 2, 2023 13:55
autoupdate_frp
#!/usr/bin/env bash
# FRP updater
# frp可执行文件的路径
[ -z "${FRP_PATH}" ] && FRP_PATH=/var/www/frp
# frp端,服务端为frps,客户端为frpc
[ -z "${FRP_END}" ] && FRP_END=frps
# 架构 默认为linux_amd64
[ -z "${ARCH}" ] && ARCH=linux_amd64
[ -z "${SUDO}" ] && [ "${NO_SUDO}" != "Y" ] && which sudo >/dev/null 2>&1 && SUDO=sudo

Keybase proof

I hereby claim:

  • I am lixeon on github.
  • I am lixeon (https://keybase.io/lixeon) on keybase.
  • I have a public key whose fingerprint is 7E53 DF6E 9C70 431B D3F8 5276 6EB1 C5D8 16FE 7E25

To claim this, I am signing this object:

@lixeon
lixeon / riscvgnucross.sh
Last active February 8, 2021 02:27
cross and cross native or canadian for riscv-gnu-tools
#!/bin/bash
#
# ## musl-riscv-toolchain
#
# musl libc GCC cross compiler toolchain bootstrap script
#
# usage: ./bootstrap.sh <arch> [native-cross]
#
# This script by default builds cross compilers for the supported
# target architectures. If the optional "native-cross" option is