Skip to content

Instantly share code, notes, and snippets.

@janlay
Last active October 23, 2023 04:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janlay/8dc8e6ec18bffc6ec589812e02762d88 to your computer and use it in GitHub Desktop.
Save janlay/8dc8e6ec18bffc6ec589812e02762d88 to your computer and use it in GitHub Desktop.
Surge Modules

Here are some Surge modules created by me.

Tesla China

This module makes Tesla app access its services targeted in China mainland. Install it with this link.

DNS Daily Sweeper

Automatically flushes DNS records everyday. Install it with this link.

$httpAPI('POST', '/v1/dns/flush', {}, () => {
$done($notification.post('DNS Daily Sweeper', '', 'DNS records flushed'));
});
#!name=DNS Daily Sweeper
#!desc=Automatically flushes DNS records everyday.
[Script]
cron "0 5 * * *" script-path = https://gist.githubusercontent.com/janlay/8dc8e6ec18bffc6ec589812e02762d88/raw/dns-daily-sweeper.js
#!name=Tesla China
#!desc=This module makes Tesla app access its services targeted in China mainland.
#!version=1.0
[Host]
owner-api.vn.tesla.services = server:223.5.5.5
*.tesla.com = server:223.5.5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment