Skip to content

Instantly share code, notes, and snippets.

View eallion's full-sized avatar
🤡
I don't care about Stars.

Charles Chin eallion

🤡
I don't care about Stars.
View GitHub Profile
{
"name": "SinkBlogtoMastodon",
"nodes": [
{
"parameters": {
"owner": {
"__rl": true,
"value": "eallion",
"mode": "name"
},
@eallion
eallion / n8n_sync_mastodon_to_memos_blinko_github_notion.json
Last active June 11, 2025 08:59
n8n_sync_mastodon_to_memos_blinko_github_notion_json
{
"name": "Mastodon2MemosGitHubNotion",
"nodes": [
{
"parameters": {
"multipleMethods": true,
"path": "9ff50c37-7f1a-4dcd-97b8-ffffffffffff",
"options": {}
},
"type": "n8n-nodes-base.webhook",
@eallion
eallion / make_immportalwrt.sh
Last active December 8, 2024 20:51
编译 ImmportalWrt
#!/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
@eallion
eallion / Mastodon 同步到 Blinko 脚本.md
Last active December 16, 2024 16:25
Mastodon 同步到 Blinko 脚本

Mastodon 同步到 Blinko 脚本

利用 Mastodon 的 Webhook 可以主动同步 Status 到 Blinko(或其他平台),而不是利用 RSS 或 Crontab 被动式同步。

已测试版本

@eallion
eallion / tencent-cloud-agent-uninstall.sh
Created November 7, 2024 18:22
腾讯云卸载云服务器监控组件
#! /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
@eallion
eallion / hugo-version-cloudflare-worker.js
Created August 16, 2024 10:28
Cloudflare Worker 获取最新的 Hugo 版本号
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 and tr 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 \" \
@eallion
eallion / TwoNav-Theme-Webstack-Hugo-Custom.md
Last active July 10, 2024 17:03
TwoNav Webstack-Hugo 主题的一些优化设置

TwoNav Webstack-Hugo 主题的一些优化设置

PixPin_2024-07-10_00-34-27

  • 页内标题
<img alt="今日诗词" src="https://v2.jinrishici.com/one.svg?font-size=32&color=white">
@eallion
eallion / douyin host suffix.md
Created July 1, 2024 06:29
抖音分流域名
amemv.com
awemeughun.com
byteacctimg.com
byteactivity.com
bytecdn.cn
bytecdn.com
bytedance.com
bytednsdoc.com
byteeffecttos.com
@eallion
eallion / docker-registry-mirrors.md
Created February 18, 2024 05:14 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+