VLESS-TCP-TLS-Vision (updating)
UpdatingIntrohttps://github.com/XTLS/Xray-core/discussions/1295
Quick StartMethod 1
Forward from https://github.com/chika0801/Xray-examples/tree/main/VLESS-TCP-XTLS-Vision
Install Xray on server
1bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
Download server configuration file
1curl -Lo /usr/local/etc/xray/config.json https://raw.githubusercontent.com/chika0801/Xray-examples/main/VLESS-TCP-XTLS-Vision/config_server.json
Apply for a c ...
Anti IP Attribution with Clash for Windows
使用 Clash for Windows 的 Parsers 功能對配置文件預處理,增加針對部分網站顯示 IP 歸屬地的流量分流規則
配置文件预处理https://docs.cfw.lbyczf.com/contents/parser.html
快速上手使用自動生成的配置文件
https://github.com/lwd-temp/anti-ip-attribution/raw/main/generated/parser.yaml
將下面的 🚀 节点选择 替換為自己實際使用的 proxy-group
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465parsers: - reg: '^.*$' yaml: prepend-proxy-groups: - name: "IP\u5F52\u5C5E\u5730" ...
Accelerate Your Blog with CloudFront
每月免費額度
1 TB 轉出流量
1 千萬次請求數
具體收費:
申請證書打開 AWS Certificate Manager,請求證書
注意右上角區域為 North Virginia (us-east-1)
這裡需要添加兩個域名
example.com
*.example.com
使用通配符 * 可以匹配同一個域下的其他域名
下面給出了兩條 CNAME 記錄,只需要添加 example.com 的一條 CNAME 記錄即可
等待驗證通過
分配 CloudFront
假設你需要令 www.example.com 使用 CloudFront,就需要另外添加一個源站用於回源,例如 origin.example.com,而 www.example.com 就可以通過 IP/CNAME 指向 CloudFront
打開 CloudFront
配置源站
源域(Origin domain):例如 origin.example.com
協議(Protocol):Match viewer
其他保持默認
默認緩存行為(Default cache behavior)Viewer
V ...
Cloudflare R2 Storge
前言Cloudflare R2 Storge 的 Bucket 是私有的,想要使其在互聯網上公開可見可以通過 Workers 連接。
免費額度存儲:10 GB
出口流量:無限
A 類操作:1 百萬次/月
B 類操作:1 千萬次/月
快速上手創建一個 R2 Bucket 和 Workers Service
Workers 綁定 R2 Bucket
名稱填寫 R2
這裡用的腳本來自:
https://www.zyglq.cn/archives/cf-r2-obj-storage.html
12345678910111213141516171819202122addEventListener("fetch", (event) => { event.respondWith(handleRequest(event.request));});async function handleRequest(request) { const url = new URL(request.url); const key = url.pathname ...
jsDelivr Reverse Proxy on Cloudflare Workers
前言
自從 jsDelivr 被 DNS 污染後,比較常用的解決方法是使用其鏡像代替,例如 fastly.jsdelivr.net、gcore.jsdelivr.net、cf.jsdelivr.net,但是這些鏡像不能保證將來是否能保持活躍。所以,使用反向代理是最有效的一個解決方案。
這裡使用了 Cloudflare Workers 進行反向代理,Cloudflare Workers 提供每天 10 萬次的請求數量,搭配 CDN 又可以通過緩存大大減少請求數。同時也可以設置防盜鏈和加密 URL 以防止濫用。
參考:https://www.430074.xyz/posts/workers-jsdeliver.html
快速上手創建 Workers打開 Cloudflare 儀錶板,轉到 Workers,創建一個新項目
編輯代碼12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061// 允许的 CORS 来源const ...
Vercel Redirect
安裝 Node.jsNode.jshttps://nodejs.org/
安裝 Vercel CLI1npm i -g vercel
登錄 Vercel1vercel login
創建重定向配置文件創建一個 json 文件在合適的位置
12345678{ "redirects": [ { "source": "/(.*)", "destination": "https://example.com/$1" } ]}
部署1vercel -A vercel.json --prod
Backblaze B2 Storge
前言Backblaze B2 Storge 免費額度
存儲容量:10 GB
網絡流量:1 GB/天
上傳流量:無限
B 類操作:2500 次/天
Bucket:100 個
b2_download_file_by_name 为 B 類操作
但是由於 Cloudflare 的 Bandwidth Alliance(帶寬聯盟)中包含了 Backblaze,因此 Cloudflare 與 Backblaze 之間的流量是免費的,另外通過 Cloudflare 的緩存也可以減少請求數
配置 Backblaze創建庫登錄 Backblaze
創建一個 Bucket
名稱盡量確保不易被別人猜測到
確保類型為 public,除非這是你的私有庫
獲取主機名上傳任意一個文件,用於獲取 Bucket 所在地址
查看詳細信息
記住 Friendly URL 中的主機名,例如我的是 f004.backblazeb2.com
設置 Bucket
Bucket Settings 中的 Bucket Info 填寫 {"cache-control":"max-age=8 ...
Setup Domains on Cloudflare via CNAME
前言
從 2021 年 11 月開始,Cloudflare 禁用了 Partner 使用的 zone_set API 以避免濫用(因為該 API 接入不需要驗證域名所有權),通過 Partner 實現 CNAME 接入的方式近乎落幕,僅剩 Plesk 空間存量的 ServerShield by Cloudflare 插件訂閱能夠正常接入。幾個月過去了,官方也並沒有對未來合作夥伴如何進行接入新域名給出任何解釋。
Cloudflare for SaaS 提供了一種更靈活的 CNAME 接入方式。
假設 demo.a.com 是你需要通過 CNAME 接入的站點,你需要將 a.com 通過 NS 接入 Cloudflare,將 fallback.a.com 作為回退源,demo.a.com 可以使用 IP 或 CNAME 指向 fallback.b.com 以接入 Cloudflare。
快速開始啟用 SaaS打開 Cloudflare 儀錶盤,進入任意一個域名,例如 abc.com,切換到 Custom Hostnames 下的 SSL/TLS,啟用 Cloudflare for Saa ...
Windows 10 Common Shortcut Keys
创建虚拟桌面:Ctrl+Win+D虚拟桌面切换:Ctrl+Win+←/→关闭当前桌面:Ctrl+Win+F4从程序切换到桌面:Win+M桌面预览:Win+ ,从任务栏打开程序:Win+number程序分屏:Win+←/→程序切换:Ctrl+Alt+Tab程序快速切换:Alt+Tab任务视图:Win+Tab终止当前程序:Ctrl+Shift+Esc新建资源管理器窗口:Win+E放大缩小:Win+ +/-捕捉屏幕:Win+Print Screen操作中心:Win+A打开设置:Win+I打开语音助理:Win+C打开游戏栏:Win+G捕捉视频:Win+Alt+R(不详游戏栏功能):Win+Alt+B锁定 PC:Win+L
Hexo Butterfly Snippets Plus
Butterfly Snippets Plushttps://marketplace.visualstudio.com/items?itemName=iMacyh.hexo-butterfly-snippets-plus
The extension is still updating…
This is a Visual Studio Code extension that includes some snippets for the Butterfly theme of Hexo and additional tag plugins, it’s convenient to insert these snippets when writing articles with VS Code.
About the details of the snippets, you can see Butterfly official site and Akilar’s post.
The project is forked from KakaWanYifan/VSCode-Hexo-Butterf ...