Skip to content

Instantly share code, notes, and snippets.

View zhangyingda's full-sized avatar

Das2m zhangyingda

  • China, HeBei, ChengDe
View GitHub Profile
@duskmoon314
duskmoon314 / proxy.sh
Last active March 17, 2023 16:01
a shell script to set proxy in wsl2 and Linux / MacOS
#!/bin/sh
if [ $(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip') ]; then
hostip=${host:=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }')}
else
hostip=${host:-127.0.0.1}
fi
port_http=${port_http:-10809}
port_sock=${port_sock:-10808}
@ayyybe
ayyybe / ccdl.command
Last active May 2, 2024 16:08
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear