bash-for-fun(1)

let curl do some thing

bash 复制代码
# curl Funs for helping, Usage: check
check() {
  # Info
  echo "support commands: [wet, addr, ip, ]"

  read -p "[type in command]: " subcommand
  case $subcommand in
    ip)
      curl cip.cc
      ;;
    addr)
      curl ipinfo.io/8.8.8.8
      ;;
    wet)
      curl wttr.in/?lang=zh-cn
      ;;
    *)
      echo "Not support Yet"
      ;;
  esac
}
# Usage: if-interesting <url or one-string-no-sep>
if-interesting() {
  curl qrenco.de/"${1}"
}

proxy git clone

bash 复制代码
# Load this function to your .bashrc
# Usage: proxy-git-clone <path-to-repo>
proxy-git-clone() {
	# WARN: Maybe not work
  git clone https://mirror.ghproxy.com/"${1}"
}

connect to my own windows

bash 复制代码
# Make sure your network in the same domain
# Deps: freerdp2
connect-windows() {
    ##################
    # 192.168.42.185 #
    ##################
    #xfreerdp /u:etcix /v:${1}:3389 /f /floatbar /d:echo-etcix /p:1
    xfreerdp /u:etcix /v:${1}:3389 /f /floatbar /d:echo-etcix /p:1
    # check more: man xfreerdp
}
相关推荐
郑州光合科技余经理13 天前
代码展示:PHP搭建海外版外卖系统源码解析
java·开发语言·前端·后端·系统架构·uni-app·php
feifeigo12313 天前
matlab画图工具
开发语言·matlab
dustcell.13 天前
haproxy七层代理
java·开发语言·前端
norlan_jame13 天前
C-PHY与D-PHY差异
c语言·开发语言
多恩Stone13 天前
【C++入门扫盲1】C++ 与 Python:类型、编译器/解释器与 CPU 的关系
开发语言·c++·人工智能·python·算法·3d·aigc
QQ40220549613 天前
Python+django+vue3预制菜半成品配菜平台
开发语言·python·django
遥遥江上月13 天前
Node.js + Stagehand + Python 部署
开发语言·python·node.js
m0_5312371713 天前
C语言-数组练习进阶
c语言·开发语言·算法
Railshiqian13 天前
给android源码下的模拟器添加两个后排屏的修改
android·开发语言·javascript
雪人不是菜鸡13 天前
简单工厂模式
开发语言·算法·c#