- JavaScript reload timer (can be turned off)
- Detailed content filtering (by slave/keyword)
Recommend SmokePing 2.8.2, the code is written in this version, I don't know if the old version is applicable.
| #!/usr/bin/env python3 | |
| import os | |
| import requests | |
| import socket | |
| import dns.resolver | |
| # 你需要在环境变量中配置 Cloudflare API Token | |
| # export CF_API_TOKEN="xxxx" | |
| # go https://dash.cloudflare.com/profile/api-tokens |
| import httpx | |
| import pendulum | |
| import time | |
| # 直播的用户 ID,不是直播间编号,也就是 https://space.bilibili.com/407583712 的地址 | |
| bilibili_account_uid = '407583712' | |
| def get_bilibili_live_stats(uid): | |
| # api doc: https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/live/info.md | |
| biliAccInfo = httpx.get('https://api.live.bilibili.com/live_user/v1/Master/info', params={'uid': uid}).json() |
| #!/bin/bash | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2015 Philip Huppert | |
| # fork by Yitong | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the "Software"), to deal in | |
| # the Software without restriction, including without limitation the rights to |
| #!/bin/bash | |
| set -eu | |
| ## get Current year | |
| current_year=$(date +%Y) | |
| ## get latest version | |
| latest_version=$(wget -qO- "ftp://cddis.gsfc.nasa.gov/gnss/data/daily/$current_year/brdc/" | awk -F'/brdc*/' '/brdc*/{print $2}' | cut -d\" -f1 | grep -v '\index.html' | tail -1) | |
| ## download |
原文链接: My First 5 Minutes On A Server; Or, Essential Security for Linux Servers
保证一个服务器的安全可以很简单。我的安全理念能够在保持高效率的同时让你免遭最常见的攻击,我相信你也会这么做。
任何经验丰富的系统管理器都会告诉你,随着人员的增长和服务器的增加,用户管理不可避免的会成为一个负担,在快速增长的环境中保证安全的访问是艰难的,你会遇到例如:过期密码,废弃的测试账户等等问题。恕我直言,即使有账户同步工具来帮助减轻这种痛苦,这种方法既浪费时间也对安全不利,保持简单才是安全的核心。
Update: 也可以参考 https://medium.com/@clarkzjw/moto-x-2014-xt1085%E5%88%B7cm%E6%8C%87%E5%8D%97-db8886256ba7
先说下电信的问题,这样刷了(貌似,没有测试)会导致电信网络不可用。 机器需要解锁哈,没解锁的搜下就有方法。
国行的 MotoX 和其他地区的分区方案不同,导致国行的设备直接刷了 twrp 再去刷 CM 会报错,Mokee 能用的原因是他们修改了 rom 的分区格式才得以兼容。
| var fs = require('fs'); //引入模块 | |
| var filename = 'danci.txt'; //指定文件名 | |
| var dancilist = ""+fs.readFileSync(filename); //同步方式读取 | |
| var list = dancilist.split("\n"); //按照换行方式拆分,存入 list 数组 | |
| var exp1 = '['; // 过滤关键字1 | |
| var exp2 = ']'; // 过滤关键字2 | |
| var exp3 = ' '; // 过滤关键字3 |