Skip to content

Instantly share code, notes, and snippets.

@SmartFinn
SmartFinn / send_email_on_logged_in.rsc
Last active March 15, 2025 17:59
A script to send an email when a user logged in the MikroTik router #RouterOS #MikroTik
# This script sends an email when a new user logged in the router
#
# Required permissions:
#
# [x] read [x] write
# [x] policy [x] test
#
# written by Sergei Eremenko (https://github.com/SmartFinn)
:global TokensOfLoggedUsers
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active October 26, 2025 05:27
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@sdhzdmzzl
sdhzdmzzl / bj-unicom-iptv.m3u
Last active October 12, 2025 13:29
北京联通iptv列表
#EXTINF:-1,北京卫视4K
rtp://239.3.1.22:8001
#EXTINF:-1,云南卫视
rtp://239.3.1.26:8108
#EXTINF:-1,四川卫视
rtp://239.3.1.29:8288
#EXTINF:-1,广西卫视
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active October 27, 2025 18:16
crack activate Office on mac with license file
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
@SmartFinn
SmartFinn / dhcp-leases-to-dns.rsc
Last active October 22, 2025 21:55
MikroTik (RouterOS) script for automatically setting DNS records for clients when they obtain a DHCP lease
# MikroTik (RouterOS) script for automatically setting DNS records
# for clients when they obtain a DHCP lease.
#
# author SmartFinn <https://gist.github.com/SmartFinn>
:local dnsTTL "00:15:00";
:local token "$leaseServerName-$leaseActMAC";
# Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone")
# - truncate length to 63 chars
@tiann
tiann / markdown_keyboard_mapping.xml
Created February 1, 2016 08:00
remapping the key when use markdown
<?xml version="1.0"?>
<root>
<inputsourcedef>
<name>MY_keylayout_zh_Hans</name>
<inputsourceid_prefix>com.apple.inputmethod.SCIM.ITABC</inputsourceid_prefix>
</inputsourcedef>
<item>
<name>markdown</name>
<identifier>private.quick_dotOfEnglish</identifier>
@jason5ng32
jason5ng32 / surge.conf
Last active November 6, 2024 06:39
Surge Configs ( for 2.x )
[General]
loglevel = notify
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29,223.5.5.5,114.114.115.115
# external-controller-access = PASSWORD@0.0.0.0:6155
# ipv6 = true
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD
@soffchen
soffchen / surge.conf
Last active June 7, 2025 08:42
surge.conf
[General]
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
@janlay
janlay / README.md
Last active October 19, 2025 11:30
Yet another config for Surge.app

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt Or run $ sh build-all to build all your index files.
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.