Skip to content

Instantly share code, notes, and snippets.

@larvata
larvata / shadowsocks-quota
Last active October 14, 2023 16:06
shadowsocks bandwidth limit and data quota each port
# draft
# view current data quota
sudo iptables -nvL -t filter --line-numbers
# init
sudo iptables -I OUTPUT -p tcp --sport <target-port> -m quota --quota <quota-bytes> -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport <target-port> -j DROP
# reset quota
<?php
if (is_home())//首页关键字和描述,可以换成你网站的
{
$description = "小拼:致力于搜索引擎营销(SEM)研究,关注搜索引擎优化(SEO),医院网络营销,SEO技术和电子商务.";
$keywords = "SEM,搜索引擎营销,SEO,搜索引擎优化,医院网络营销";
}
elseif (is_page())//单独页面关键字和描述,WordPress默认是不显示的,考虑到单独页面也不多,这种判断形式还算快速,只要取得页面对应ID即可
{
if ($post->ID == 1)//数字1是页面的ID,查看方法:鼠标移至对应页面的“编辑”字样上,状态栏出现的链接,形如post.php?post=1&action=edit,其中post=后面的数字1就是对应页面ID
{
#!/bin/bash
#
# Dropbox Uploader Script v0.8.1
#
# Copyright (C) 2010-2011 Andrea Fabrizi <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@chuangbo
chuangbo / README.md
Last active June 19, 2023 04:48
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`