Skip to content

Instantly share code, notes, and snippets.

@likuku
likuku / rules.conf
Created October 27, 2015 16:28 — forked from janlay/README.md
Yet another config for Surge.app (build 245+)
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
# This file depends on the main.conf which defines your own proxy.
# Your main.conf will look like this:
# ---- START ----
# #!PROXY-OVERRIDE:rules.conf
# [Proxy]
# Proxy = https,server.address,port,username,password
# ---- END ----
#

ddns_curl_for_dnspod.md Warning! last edited by likuku on July 21, 2015 2:59 PM

#范例:

你的动态域名是:ddns1.ddns.yourname.net

curl 指令,被 crontab 定时执行即可:

@likuku
likuku / backup.sh
Last active October 12, 2022 08:58
Build a package for your linux (building package on OS running),you can use it for backup or quick install. It was on debian and ubuntu work well. I haven't tested in other distribution.
#!/usr/bin/env bash
# Warning!
# if you DIY a stage package like this,
# you must use the Stage3`s /etc/udev/*
# or rm /etc/udev/rules.d/70*
# Warning!
# Update by likuku on Nov29,2016
readonly DATE=$(date +%Y_%m_%d_%H_%M_%S)
readonly ARCH=$(uname -m)