Instantly share code, notes, and snippets.
Discover gists
quanhua92 /whitelist_bunny.sh
CreatedAugust 10, 2022 06:55
Add Bunny.net Edge Server IP Address to UFW firewall This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s https://bunnycdn.com/api/system/edgeserverlist -H"Accept: application/json"| jq -r .[]> /tmp/bunny_ips | |
echo"">> /tmp/bunny_ips | |
curl -s https://bunnycdn.com/api/system/edgeserverlist/ipv6 -H"Accept: application/json"| jq -r .[]>> /tmp/bunny_ips | |
foripin`cat /tmp/bunny_ips`;do ufw allow proto tcp from$ip comment'Bunny IP';done; |
Sothatsit /.claude-commands-plan.md
CreatedJuly 18, 2025 22:10
htlin222 /chatgptsay.sh
CreatedJuly 17, 2025 14:26
A Bash script that reads a JSON input containing a message field, sends the message to OpenAI’s text-to-speech (TTS) API using a cheerful voice, and plays the resulting audio using afplay on macOS. Requires jq for JSON parsing and an OPENAI_API_KEY environment variable. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 讀取 JSON 輸入 | |
json_input="$(cat)" | |
# 擷取 message 欄位(需要 jq) | |
message="$(echo"$json_input"| jq -r'.message')" | |
# 如果 jq 或訊息抓不到,就退出 | |
if [[-z"$message"||"$message"=="null" ]];then |
br3ndonland /github-actions-notes.md
Last activeJuly 19, 2025 02:47
Getting the Gist of GitHub Actionsigv /SSimSuperRes.glsl
Last activeJuly 19, 2025 02:46
Basically it's an accurate sharpener + antiringing. Usage: glsl-shader="~~/SSimSuperRes.glsl" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
// SSimSuperRes by Shiandow | |
// | |
// This library is free software; you can redistribute it and/or | |
// modify it under the terms of the GNU Lesser General Public | |
// License as published by the Free Software Foundation; either | |
// version 3.0 of the License, or (at your option) any later version. | |
// | |
// This library is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
import{ | |
createContext, | |
PropsWithChildren, | |
useContext, | |
useEffect, | |
useRef, | |
useState, | |
}from"react"; | |
// RESOURCES: |
- Hum 151010 URL Schemes 使用详解
- Hum 160427 OmniFocus 的 URL Schemes 用法
- Hum 171115 通过 Bear 来认识 Launch Center Pro 的进阶用法
- Hum 171122 通过 Bear 来认识 Drafts 的 [[line]] 用法
- Hum 180518 入门 iOS 自动化:读懂 URL Schemes
- Hum 180823 Universal Link 使用详解
- Hum 181229 x-callback-URL 的使用方法
- JamesHopbourn 210204 Drafts + vim = URL Scheme 复用
- JamesHopbourn 210405 Drafts 5 与 Bear 联手,让我可以快速追加笔记
NewerOlder