Skip to content

Instantly share code, notes, and snippets.

View s1ntoneli's full-sized avatar
🤣
wow! wondering!

Sintone s1ntoneli

🤣
wow! wondering!
View GitHub Profile
@s1ntoneli
s1ntoneli / github-api-proxy.js
Created July 24, 2024 02:13
A Github access proxy that can support all *.github.com domains.
/**
* Welcome to Cloudflare Workers! This is your first worker.
*
* - Run `npm run dev` in your terminal to start a development server
* - Open a browser tab at http://localhost:8787/ to see your worker in action
* - Run `npm run deploy` to publish your worker
*
* Learn more at https://developers.cloudflare.com/workers/
*/
@s1ntoneli
s1ntoneli / pppdata.js
Created February 2, 2024 17:10
各国家购买力水平清单
const ppp = [
{
"range": "0.0-0.1",
"countries": []
},
{
"range": "0.1-0.2",
"countries": []
},
{
@s1ntoneli
s1ntoneli / christmasnewyear2023.md
Created December 23, 2023 13:53
🎁 Christmas & New Year 2023 Deals List

🎁 Christmas & New Year 2023 Deals List

A list of deals on Christmas 2023. Feel free to add your app's deal below with a email to 📧[email protected].

App Name Introduction Category Discount Code & Terms
CleanShot X Capture your Mac’s screen like a pro. Screenshot and annotation tool Gift Card.Christmas promo until 25 Dec, 30% off.
CleanMyMac X CleanMyMac X is a Mac cleaner and optimizer app. Utilities XMAS2023 for 50% off first year of subscription, 40% off for competitors' users, 30% off for other MacPaw product owners
CleanClip Clean/Keyboard-First Clipboard Manager, saves your time. Clipboard Manager XMAS23, 30% off on all lifetime plans, till Dec 30
BuhoCleaner The page offers BuhoCleaner software to clean and optimize Mac systems. M
@s1ntoneli
s1ntoneli / worker.js
Created December 20, 2023 02:58
Cloudflare worker,简单转发实现国内访问 ChatGPT
const TELEGRAPH_URL = 'https://api.openai.com';
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const url = new URL(request.url);
url.host = TELEGRAPH_URL.replace(/^https?:\/\//, '');
@s1ntoneli
s1ntoneli / gist:3a5b9e42697989884730dc9b080f390f
Last active December 13, 2023 19:25
cleanclipappcast.xml
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>CleanClip</title>
<link>https://cleanclip.cc/appcast.xml</link>
<description>Add Paste Stack</description>
<language>zh</language>
<item xml:lang="en">
<title>1.5.0</title>
<description xml:lang="en">
@s1ntoneli
s1ntoneli / macaify-appcast.xml
Last active October 3, 2023 14:53
macaify-appcast.xml
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Macaify</title>
<link>https://raw.githubusercontent.com/auv1107/cleancliprun/main/appcast.xml</link>
<description>最近的更改,附带更新的链接</description>
<language>zh</language>
<item>
<title>1.2</title>
<description>
@s1ntoneli
s1ntoneli / api.md
Created March 28, 2019 13:43
获取当前网络时间戳
@s1ntoneli
s1ntoneli / AndroidManifest.xml
Last active November 9, 2018 09:08
分享应用自己的apk
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.xxxx.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
#TAG:outside_china_use_proxy
#设置国外网站是否走代理。默认值:on。非必须。
outside_china_use_proxy on
#TAG:direct_domain
#设置直连的域名。非必须。
direct_domain baidu.com qq.com taobao.com
direct_domain sina.com 163.com sohu.com
#TAG:proxy_domain
#设置需要代理的域名。非必须。
proxy_domain google.com twitter.com facebook.com youtube.com
@s1ntoneli
s1ntoneli / checkfd.sh
Last active October 15, 2018 09:45
检查安卓指定进程的 fd 变化情况脚本
#!/bin/bash
help() {
cat <<- HELP
Usage: `basename $0` -p <packageName> [-v]
List fd info for package indicated.
-p, --pkg package name
-v verbose