Skip to content

Instantly share code, notes, and snippets.

View sunnyyoung's full-sized avatar

Sunny Young sunnyyoung

View GitHub Profile
@sunnyyoung
sunnyyoung / cloudflare_ddns.sh
Created June 15, 2023 01:55
Synology cloudflare DDNS provider script
#!/bin/bash
set -e;
ipv4Regex="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
ttl=60
proxy="false"
# DSM Config
username="$1"
@sunnyyoung
sunnyyoung / build-fping.sh
Created July 3, 2023 06:29
A macOS/iOS universal fping binary building script.
#!/bin/sh
# shellcheck disable=SC2044,SC2046,SC2086,SC3009
SRC=$(pwd)/fping-5.1
DST=$(pwd)/fping.builds
XCODE_DIR=$(xcode-select -p)
echo "Downloading fping..."
curl -s -L https://github.com/schweikert/fping/releases/download/v5.1/fping-5.1.tar.gz | tar xz
#!/bin/bash
# shellcheck disable=SC2016,SC2046,SC2086
VERSION="3.6.0"
SRC=$(pwd)/mbedtls
DST=$(pwd)/mbedtls.builds
PLATFORMS="macosx iphoneos iphonesimulator appletvos appletvsimulator xros xrsimulator"
set -e
#!/bin/bash
# shellcheck disable=2016,2046,SC2086
SRC=$(pwd)/libuv
DST=$(pwd)/libuv.builds
PLATFORMS="macosx iphoneos iphonesimulator appletvos appletvsimulator xros xrsimulator"
set -e
echo "Checking out libuv..."
$VERSION="20220613"
$SRC="$PWD\boringssl"
$DST="$PWD\boringssl.builds"
$PLATFORMS="win32", "x64"
Write-Output "Checking out boringssl..."
git clone https://boringssl.googlesource.com/boringssl --depth 1 --branch fips-$VERSION
Write-Output "Patching boringssl..."
#!/bin/bash
set -e
VERSION="3.6.1b1-8e652244-ac310b4b"
for KIT in VLCKit MobileVLCKit TVVLCKit; do
curl "https://download.videolan.org/pub/cocoapods/unstable/$KIT-$VERSION.tar.xz" | tar -xz
done