方法一:
为 PowerShell 设置代理,命令如下:
$Env:http_proxy="http://127.0.0.1:7890";
$Env:https_proxy="http://127.0.0.1:7890";这是临时命令,重新代理终端需要重新输入
如果想要永久设置代理,建议使用自定义配置,使每次代理 PowerShell 窗口时,运行如上命令:
在 PowerShell 窗口中运行如下指令:
方法一:
为 PowerShell 设置代理,命令如下:
$Env:http_proxy="http://127.0.0.1:7890";
$Env:https_proxy="http://127.0.0.1:7890";这是临时命令,重新代理终端需要重新输入
如果想要永久设置代理,建议使用自定义配置,使每次代理 PowerShell 窗口时,运行如上命令:
在 PowerShell 窗口中运行如下指令:
| set -e | |
| if grep -xq "pam_tid.so" /etc/pam.d/sudo; then | |
| echo "Option to use touchid for sudo already installed :)" | |
| else | |
| echo "Configure to use Touchid for sudo ..." | |
| sudo chmod 644 /etc/pam.d/sudo # change permission to have write access | |
| sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.org # make a copy of original file | |
| echo 'auth sufficient pam_tid.so' | cat - /etc/pam.d/sudo > sudo && mv sudo /etc/pam.d/sudo # append file | |
| sudo chmod 444 /etc/pam.d/sudo # change permission back | |
| echo "Touchid for sudo successfully configured. A copy of the original file you will find here: /etc/pam.d/sudo.org" |
/system/busybox and enable telnetd on your device (will add additional line into /system/autorun.sh). Use it only on E5885, not on other device!telnet 192.168.8.1 2323/system/busybox sh
| 127.0.0.1 111.94.62.42.in-addr.arpa | |
| 127.0.0.1 12.200.206.111.in-addr.arpa | |
| 127.0.0.1 171.176.77.52.in-addr.arpa | |
| 127.0.0.1 196.170.220.52.in-addr.arpa | |
| 127.0.0.1 48.183.251.54.in-addr.arpa | |
| 127.0.0.1 57.94.62.42.in-addr.arpa | |
| 127.0.0.1 78.204.243.124.in-addr.arpa | |
| 127.0.0.1 8.33.134.120.in-addr.arpa | |
| 127.0.0.1 a.netcheck.gallery.pandora.xiaomi.com | |
| 127.0.0.1 api.ad.xiaomi.com |
| import requests | |
| import logging | |
| url='http://readfree.me/accounts/checkin' | |
| cookie_str='' # 需要登录到readfree上获取当时的cookie值,然后直接使用该cookie值进行登录签到 | |
| logging.basicConfig(level=logging.INFO, | |
| filename='/var/log/readfree_auto_sig.log', | |
| filemode='a', | |
| format='%(asctime)s - [line:%(lineno)d] - %(levelname)s: %(message)s') |
pip3 install -r requirements.txt to install dependenciesfollowers_clear.py and follow instructions.Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.
| 127.0.0.1 api.ad.xiaomi.com | |
| 127.0.0.1 sdkconfig.ad.xiaomi.com | |
| 127.0.0.1 ad.mi.com | |
| 127.0.0.1 ad.xiaomi.com | |
| 127.0.0.1 ad1.xiaomi.com | |
| 127.0.0.1 adv.sec.miui.com | |
| 127.0.0.1 test.ad.xiaomi.com | |
| 127.0.0.1 new.api.ad.xiaomi.com |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
Save that list to some path
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
| [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 |