Skip to content

Instantly share code, notes, and snippets.

View vimagick's full-sized avatar
🐰
🐰🐰🐰🐰🐰🐰🐰🐰🐰

K̶e̶v̶i̶n̶ vimagick

🐰
🐰🐰🐰🐰🐰🐰🐰🐰🐰
View GitHub Profile
#!/bin/bash
yq -o json | jq -r '
.proxies[] |
if .type == "ss" then
(["ss://", ("\(.cipher):\(.password)"|@base64), "@\(.server):\(.port)"] | join(""))
elif .type == "vmess" then
({v:"2", ps:.name, add:.server, port:.port, id:.uuid, aid:.alterId, scy:.cipher, net:.network, host:.["ws-opts"].headers.Host, path:.["ws-opts"].path, tls:(if .tls then "tls" else "" end)} | "vmess://\(.|@json|@base64)")
elif .type == "trojan" then
("trojan://\(.password)@\(.server):\(.port)?sni=\(.sni)&allowInsecure=1" + (if .network == "ws" then "&type=\(.network)&path=\(.["ws-opts"].path)" else "" end))
#!/bin/bash
set -uo pipefail
CURSOR=${1:-1}
API_URL=https://lexica.art/api/infinite-prompts
#HTTP_PROXY=172.16.1.48:3128
OUTPUT_DIR=output
PAGE_NUM=0
MAX_PAGE_NUM=$((10**6))
#!/bin/bash
set -uo pipefail
URI=${1:?uri is empty}
LISTEN_ADDR=127.0.0.1
LISTEN_PORT=1080
CFG_FILE=/tmp/v2ray.json
PID_FILE=/tmp/v2ray.pid
#!/bin/bash
#
# shadowsocks connectivity check
#
INPUT_FILE=${1:?input file is empty}
OUTPUT_FILE=${2:?output file is empty}
LISTEN_ADDR=127.0.0.1
LISTEN_PORT=1080
#!/bin/bash
#
# Simple script to test network connectivity, and send result to a Tasmota/ESP32 RGB Light
# !!! Please implement your own "check()" function !!!
#
HTTP_API="http://192.168.1.103/cm"
MQTT_PUB="mosquitto_pub -h broker.hivemq.com -p 8883 --capath /etc/ssl/certs/ -u username -P password -q 2"
DEV_NAME="tasmota_XXXXXX"
CMND="http" # http or mqtt
@vimagick
vimagick / MJ_HT_V1.sh
Created January 26, 2024 15:41
🌡️💧🔋
#!/bin/bash
# sudo hcitool lescan
MAC="4C:65:A8:D?:??:??"
while :; do
HT=$(timeout 20 gatttool -b $MAC --char-write-req --handle=0x10 -n 0100 --listen | grep -m1 "Notification handle")
(($? == 0)) && break
sleep 5
done
@vimagick
vimagick / blescan.sh
Last active February 6, 2024 03:35
hcitool lescan (with 30 sec window)
#!/bin/bash
set -euo pipefail
BLE_DEV=hci0
DEDUP_WINDOW=30
MQTT_BROKER=broker.hivemq.com
MQTT_PORT=8883
MQTT_QOS=2
MQTT_TOPIC=blescan
// ==UserScript==
// @name icp-extractor
// @namespace http://tampermonkey.net/
// @version 1.0
// @description remove chinese results
// @author EasyPi Software Foundation
// @match *
// @grant GM_xmlhttpRequest
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @run-at document-idle
文件名 下载链接 提取码
一凡评书《孙庞演义》MP3免费打包下载 123回全 https://pan.baidu.com/s/1TKRhydXv0QLRiRcHSpBfWg?pwd=2233 2233
一凡评书《辽西风雨路》MP3打包下载 220回全 https://pan.baidu.com/s/1gqssQppHCpjWjeK9iqC31g?pwd=5566 5566
于枢海评书《大刀王五》MP3免费打包下载 79回全集 https://pan.baidu.com/s/12fIxuA4oI_zTVndaFpxqbA xdqt
于海龙评书《张义传奇》MP3免费打包下载 14回 https://pan.baidu.com/s/1viC2m6xWt7kVuww0rMdQ5g?pwd=6677 6677
仲维维评书《一个女人的风景》MP3免费打包下载 7回全集 https://pan.baidu.com/s/1c227Iuc wpja
仲维维评书《一滴血》MP3免费打包下载 24回全集 https://pan.baidu.com/s/1miG45L2 xm2j
仲维维评书《七星龙王》MP3免费打包下载 30回全集 https://pan.baidu.com/s/1mhEmtmw a3wx
仲维维评书《三少爷的剑》MP3打包下载 ed2k://|file|%5B%E4%BB%B2%E7%BB%B4%E7%BB%B4%5D%E4%B8%89%E5%B0%91%E7%88%B7%E7%9A%84%E5%89%91.rar|265302041|c210a0ac46be8f474738351d8d586bc8|h=MDB2DETOEWWKIT3NKIXDCZYKYKF4DJOH|/
仲维维评书《中国瓷商》MP3打包下载 75回全集 https://pan.baidu.com/s/1wX_Hx303j5jVP9xVMS6h5Q abah
vless://[email protected]:2087?security=tls&type=ws&sni=xx.1lagvpn13.cfd&path=/@v2rray1_ng&encryption=none&headerType=none#%F0%9F%87%BA%F0%9F%87%B8_US_%E7%BE%8E%E5%9B%BD-%3E%F0%9F%87%A9%F0%9F%87%AA_DE_%E5%BE%B7%E5%9B%BD
vmess://eyJ2IjoiMiIsInBzIjoi8J+HuvCfh7hfVVNf576O5Zu9LT7wn4ep8J+Hql9ERV/lvrflm70iLCJhZGQiOiIxMDQuMjEuNjkuNDQiLCJwb3J0Ijo4MCwiaWQiOiI3MDIyOTgyZi1kYTRjLTQ4YzktYzY2MC1iMjMxNWFiZGNmN2UiLCJhaWQiOjAsInNjeSI6ImF1dG8iLCJuZXQiOiJ3cyIsImhvc3QiOiJhLnByYXB0NC5pciIsInBhdGgiOiIvIiwidGxzIjoiIn0=
vless://[email protected]:2096?security=tls&type=ws&sni=new2.4four4.top.&path=/&encryption=none&headerType=none#%F0%9F%87%BA%F0%9F%87%B8_US_%E7%BE%8E%E5%9B%BD-%3E%F0%9F%87%AC%F0%9F%87%A7_GB_%E8%8B%B1%E5%9B%BD
vmess://eyJ2IjoiMiIsInBzIjoi8J+Hs/Cfh7FfTkxf6I235YWwIiwiYWRkIjoiMTg4LjExNC45Ni4xMTMiLCJwb3J0Ijo4MCwiaWQiOiI3MDIyOTgyZi1kYTRjLTQ4YzktYzY2MC1iMjMxNWFiZGNmN2UiLCJhaWQiOjAsInNjeSI6ImF1dG8iLCJuZXQiOiJ3cyIsImhvc3QiOiJhLnByYXB0NC5pciIsInBhdGgiOiIvIiwidGxz