Skip to content

Instantly share code, notes, and snippets.

View chengxuncc's full-sized avatar
👼
To be a god.

chengxuncc

👼
To be a god.
View GitHub Profile
@chengxuncc
chengxuncc / halfwidth.bttpreset
Last active May 2, 2026 05:41
MacOS拼音通过BetterTouchTool改键实现强制半角
{
"BTTPresetCreatorNotes" : "",
"BTTPresetInfoURL" : "",
"BTTPresetName" : "halfwidth",
"BTTPresetColor" : "50, 50, 50, 255.000000",
"BTTPresetUUID" : "A7DA2480-F637-49D8-A863-3EB3D4AB941E",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "BT.L",
"BTTAppName" : "Recently Used",
@chengxuncc
chengxuncc / warp.sh
Last active September 12, 2024 20:32
WARP setup script
#!/usr/bin/env bash
#
# https://github.com/P3TERX/warp.sh
# Description: Cloudflare WARP Installer
# System Required: Debian, Ubuntu, Fedora, CentOS, Oracle Linux, Arch Linux
# Version: 1.0.40_Final
#
# MIT License
#
# Copyright (c) 2021-2024 P3TERX <https://p3terx.com>
@chengxuncc
chengxuncc / alioss.sh
Last active October 19, 2020 07:29
Upload or download Aliyun OSS file via curl
#!/bin/bash
bucket=???
host=oss-cn-???.aliyuncs.com
Id=???
Key=???
host="${bucket}.${host}"
method=$(echo $1 | tr '[:lower:]' '[:upper:]')
src=$2
package main
import (
"errors"
"net"
"strconv"
"syscall"
"unsafe"
"os"
)
@chengxuncc
chengxuncc / replace-fakeroot.sh
Created April 22, 2019 02:53
Fakeroot-tcp on arch
sudo pacman -R fakeroot --noconfirm
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz
tar xvf fakeroot_1.23.orig.tar.xz
cd fakeroot-1.23
wget https://aur.archlinux.org/cgit/aur.git/plain/silence-dlerror.patch?h=fakeroot-tcp -O silence-dlerror.patch
patch -p1 -i silence-dlerror.patch
./bootstrap
./configure --prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \