Skip to content

Instantly share code, notes, and snippets.

Avatar
🐈
Focusing

Lee Tang d0zingcat

🐈
Focusing
View GitHub Profile
View premint-checker-bookmarklet.css
.col-lg-3.mb-4 {
width: 33%;
min-width: 33%;
}
.card {
flex-direction: row;
height: 100%;
overflow: hidden;
}
View proxy.personal.subconverter.list
# If you would like to use this list as your QuanX filter refer, plz use the following link:
# https://subconverter.d0zingcat.xyz/getruleset?type=2&url=aHR0cHM6Ly9naXN0LmdpdGh1YnVzZXJjb250ZW50LmNvbS9kMHppbmdjYXQvYTdlNDdkNjhkMmVjY2YwMzU5ZjRhZDIzYmUyNTQ3ZjgvcmF3L3Byb3h5LnBlcnNvbmFsLnN1YmNvbnZlcnRlci5saXN0&group=UHJveHk=
# The ProxyGroup name is "Proxy", parsed by subconverter, from Clash rules to QuanX ruleset.
# Proxy
DOMAIN-SUFFIX,z-lib.org
DOMAIN-SUFFIX,hostloc.com
# Crypto
View direct.personal.subconverter.list
# Direct
DOMAIN-SUFFIX,icanhazip.com
DOMAIN-SUFFIX,myqnapcloud.com
DOMAIN-SUFFIX,api.myqnapcloud.com
DOMAIN-SUFFIX,qnap.com
IP-CIDR,34.234.81.128/24
SRC-PORT,9993
DEST-PORT,9993
SRC-PORT,51413
DEST-PORT,51413
@d0zingcat
d0zingcat / personal.subconverter.ini
Last active Mar 14, 2022
personal subconverter profile
View personal.subconverter.ini
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则-在线更新版
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:不支持
;增强国外GFW:不支持
@d0zingcat
d0zingcat / init.sh
Created Feb 7, 2022
bootstrap for openwrt on r2s
View init.sh
#!/bin/sh
set -x
install_openclash() {
opkg remove dnsmasq
opkg install dnsmasq-full
opkg install luci
opkg install luci-base
opkg install iptables opkg install coreutils
opkg install coreutils-nohup
opkg install bash
@d0zingcat
d0zingcat / personal.quanx.list
Last active Apr 3, 2022
My personal rules for quantumultx
View personal.quanx.list
# WARNING: Deprecated
# If you desire to use this file as your QuanX filter refer, plz use the following link:
# https://subconverter.d0zingcat.xyz/getruleset?type=2&url=aHR0cHM6Ly9naXN0LmdpdGh1YnVzZXJjb250ZW50LmNvbS9kMHppbmdjYXQvYTdlNDdkNjhkMmVjY2YwMzU5ZjRhZDIzYmUyNTQ3ZjgvcmF3L3Byb3h5LnBlcnNvbmFsLnN1YmNvbnZlcnRlci5saXN0&group=UHJveHk=
# The ProxyGroup name is "Proxy", and the rules were from [here](https://gist.github.com/d0zingcat/a7e47d68d2eccf0359f4ad23be2547f8) parsed by subconverter, from Clash rules to QuanX ruleset.
# Crypto
## NFTs
DOMAIN-SUFFIX,opensea.io,Crypto
DOMAIN-SUFFIX,looksrare.org,Crypto
DOMAIN-SUFFIX,gem.xyz,Crypto
View my_general_subconverter_config.ini
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则
managed_config_prefix=https://subconverter.k8s.d0zingcat.xyz
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:支持
@d0zingcat
d0zingcat / cloudflare_dyn_dns.sh
Last active Jun 5, 2021 — forked from chappy84/cloudflare_dyn_dns.sh
CloudFlare Dynamic DNS Shell Script
View cloudflare_dyn_dns.sh
##!/usr/bin/env sh
# Gist: https://gist.github.com/D0zingcat/8cd76dc49d28c99af010c67a4a94d30b
# forked from: https://gist.github.com/chappy84/9606755
# use environment variables instead of flags (as in docker pass parameters is not very convenient)
# a docker image is derived from this script: d0zingcat/ddns-reporter (:latest tag for amd x86-64 arch and :armv8 tag for arm x64 v8 arch, e.g. raspberry pi 4B
# you could use this image to report your dynamic public ip to cloudflare(to update your A DNS record)
# command: docker run -e KEY=${KEY} -e NAME=${subdomain} -e EMAIL=${cloudflare_email} -e ZONE={base_domain} d0zingcat/ddns-reporter:latest
# Dockerfile: https://github.com/D0zingcat/all-in-docker/blob/main/ddns-reporter/Dockerfile
# CloudFlare Dynamic DNS
#
@d0zingcat
d0zingcat / rclone-download.sh
Last active Dec 18, 2020
download rclone and replace binary program with latest rclone
View rclone-download.sh
#!/usr/bin/env bash
set -x
rclone_zip=rclone.zip
curl -L https://downloads.rclone.org/rclone-current-linux-amd64.zip -o $rclone_zip
unzip -o $rclone_zip
dir_name=`ls -F | grep -e 'rclone.*/'`
version=`echo $dir_name | cut -d"-" -f2`
echo $dir_name, $version
name_with_version="rclone_$version"
cp "$dir_name"/rclone /usr/local/bin/$name_with_version
@d0zingcat
d0zingcat / linux calendar
Created Jan 31, 2018
A simple unix calendar implementation in python
View linux calendar
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import os
def print_months(year, month):
if year < 1900: