Skip to content

Instantly share code, notes, and snippets.

View QiangZiBro's full-sized avatar
😎
Focusing

qiangzibro QiangZiBro

😎
Focusing
  • Iluvatar CoreX
  • China
View GitHub Profile
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest \
| grep "https://.*Linux_x86_64.tar.gz" \
| cut -d : -f 2,3 \
| tr -d \" \
@QiangZiBro
QiangZiBro / gen.sh
Last active April 12, 2022 13:53
frp安全连接的配置生成脚本
#!/usr/bin/env sh
######################################################################
# @author : QiangZiBro (qiangzibro@gmail.com)
# @created : 星期一 4 11, 2022 15:27:11 CST
#
# @description : Generate safe connection file of frp
######################################################################
name=user # 被穿透机器要登录的用户名
base=9090 # 设定一个端口段为穿透端口