Skip to content

Instantly share code, notes, and snippets.

View Acris's full-sized avatar
:shipit:
Ship it!

Drifter Acris

:shipit:
Ship it!
View GitHub Profile
@Acris
Acris / update_ss_rules.sh
Last active December 16, 2021 16:42
Update shadowsocks rules on OpenWrt
#!/bin/sh
set -e -o pipefail
# Configure dnsmasq
mkdir -p /etc/dnsmasq.d
uci set dhcp.@dnsmasq[0].confdir=/etc/dnsmasq.d
uci set dhcp.@dnsmasq[0].cachesize=10000
uci commit dhcp
# Download rules
@Acris
Acris / build-shadowsocks-libev-for-asuswrt-merlin.sh
Last active November 7, 2023 08:18
Build shadowsocks-libev for asuswrt-merlin
#!/bin/bash
set -e
# libev version
LIBEV_VER=4.27
# mbedTLS version
MBEDTLS_VER=2.16.2
# libsodium version