利用 Mastodon 的 Webhook 可以主动同步 Status 到 Blinko(或其他平台),而不是利用 RSS 或 Crontab 被动式同步。
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
{ | |
"name": "SinkBlogtoMastodon", | |
"nodes": [ | |
{ | |
"parameters": { | |
"owner": { | |
"__rl": true, | |
"value": "eallion", | |
"mode": "name" | |
}, |
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
{ | |
"name": "Mastodon2MemosGitHubNotion", | |
"nodes": [ | |
{ | |
"parameters": { | |
"multipleMethods": true, | |
"path": "9ff50c37-7f1a-4dcd-97b8-ffffffffffff", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.webhook", |
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 | |
# ENV | |
IMMORTALWRT_PATH="/home/eallion/immortalwrt" | |
TARGET_PATH="/mnt/e/Files/Openwrt/" | |
LAN_IP="192.168.0.1" | |
# 检查是否提供了 -f 或 --force 参数 | |
FORCE=false | |
for arg in "$@"; do |
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 | |
# https://cloud.tencent.com/document/product/248/53584 | |
sudo -i | |
systemctl stop tat_agent | |
systemctl disable tat_agent | |
rm -f /etc/systemd/system/tat_agent.service | |
/usr/local/qcloud/stargate/admin/uninstall.sh |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
const url = 'https://api.github.com/repos/gohugoio/hugo/releases/latest' | |
try { | |
const response = await fetch(url, { | |
headers: { |
- Use
curl
to get the JSON response for the latest release - Use
grep
to find the line containing file URL - Use
cut
andtr
to extract the URL - Use
wget
to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
amemv.com
awemeughun.com
byteacctimg.com
byteactivity.com
bytecdn.cn
bytecdn.com
bytedance.com
bytednsdoc.com
byteeffecttos.com
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
NewerOlder