Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@aamiaa
aamiaa /CompleteDiscordQuest.md
Last activeJuly 19, 2025 02:55
Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@quanhua92
quanhua92 /whitelist_bunny.sh
CreatedAugust 10, 2022 06:55
Add Bunny.net Edge Server IP Address to UFW firewall
#!/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;
@htlin222
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.
#!/bin/bash
# 讀取 JSON 輸入
json_input="$(cat)"
# 擷取 message 欄位(需要 jq)
message="$(echo"$json_input"| jq -r'.message')"
# 如果 jq 或訊息抓不到,就退出
if [[-z"$message"||"$message"=="null" ]];then
@br3ndonland
br3ndonland /github-actions-notes.md
Last activeJuly 19, 2025 02:47
Getting the Gist of GitHub Actions

Tutorial and tips for GitHub Actions workflows

Mentioned in Awesome Actions

Table of Contents

@igv
igv /SSimSuperRes.glsl
Last activeJuly 19, 2025 02:46
Basically it's an accurate sharpener + antiringing. Usage: glsl-shader="~~/SSimSuperRes.glsl"
// 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
@joshpensky
joshpensky /SerialProvider.tsx
CreatedMarch 11, 2021 17:13
Web Serial API + React
import{
createContext,
PropsWithChildren,
useContext,
useEffect,
useRef,
useState,
}from"react";
// RESOURCES:
@zhuziyi1989
zhuziyi1989 /URL Schemes.md
Last activeJuly 19, 2025 02:43
常用 URL Schemes 收集。

** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)

iOS 系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。

Android 系统中

@joshbuchea
joshbuchea /semantic-commit-messages.md
Last activeJuly 19, 2025 02:37
Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format:<type>(<scope>): <subject>

<scope> is optional

Example

NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp