Skip to content

Instantly share code, notes, and snippets.

@nimula
nimula / Asuswrt-Merlin 使用 Cloudflare WARP 分流 GitHub 網域.md
Last active October 6, 2026 15:16
Asuswrt-Merlin 使用 Cloudflare WARP 分流 GitHub 網域

Asuswrt-Merlin 使用 Cloudflare WARP 分流 GitHub 網域

1. 目標

本指南會在 Asuswrt-Merlin 上建立 Cloudflare WARP WireGuard Client,只讓指定的 GitHub 網域流量經過 WARP,其餘流量仍走原本的 ISP WAN。

一般流量:

LAN Client
@nimula
nimula / POSIX_path_demo.sh
Created November 12, 2023 08:58
Remove the extension of a filename, using POSIX's built-in script only.
#!/usr/bin/env sh
# Remove the extension of a filename, using POSIX's built-in script only.
# https://stackoverflow.com/a/63970495/4789973
path=this.path/with.dots/in.path.name/filename.tar.gz
# Get the basedir without external command
# by stripping out shortest trailing match of / followed by anything
dirname=${path%/*}
# Get the basename without external command
@nimula
nimula / ffmpeg.md
Last active November 12, 2023 09:13 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@nimula
nimula / Install podman on linux mint
Created April 29, 2020 08:39
Install podman on linux mint
. /etc/upstream-release/lsb-release
sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${DISTRIB_RELEASE}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${DISTRIB_RELEASE}/Release.key | sudo apt-key add -
sudo apt-get update -qq
sudo apt-get -qq -y install podman
@nimula
nimula / Android.mk
Last active March 25, 2020 06:20
Android.mk for android studio project
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
my_package_name := Demo
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/app/src/main/res
LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/compat/res/