- Linux kernel 3.18.0-29-rpi2 with fbtft modules for Ubuntu 14.04 on Raspberry Pi 2
- Adafruit user nick_ros needs Ubuntu 14.04 to run ROS on his robot:
- Adafruit PiTFT requires fbtft kernel drivers:
- fbtft: Linux Framebuffer drivers for small TFT LCD display modules.
示例
- 移动版 https://t.jude.me
- 桌面版 https://tt.jude.me
- 未完整反代的Google镜像 http://gg.jude.me
需要注意的几点
- content-security-policy这个header要去掉,或者重写进你自己的域名,不然有些浏览器不会加载外部的元素
- 使用proxy_cookie_domain替换cookies的作用域。twitter返回的cookies作用域是.twitter.com,也就是twitter.com的所有二级域名都可以调用,为使用者的安全考虑建议替换成反代所使用的二级域名比如tt.jude.me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream thumborbe { | |
server thumbor.myhost.com:8090 ; | |
server thumbor.myhost.com:8091 ; | |
server thumbor.myhost.com:8092 ; | |
server thumbor.myhost.com:8093 ; | |
server thumbor.myhost.com:8094 ; | |
server thumbor.myhost.com:8095 ; | |
} | |
location ~* "^/.{28}/.*(jpg|jpeg|gif|png)(#.*)?$" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* use like: | |
* httpPostDataFile( | |
* 'https://www.google.com/search', // the url to post to, optionally including get parameters like: ?this=that&here=there | |
* [ | |
* 'q' => 'php http upload file', // post data like: <input name="q" value="php http upload file" /> | |
* ... | |
* ], [ | |
* 'image' => [ // the input name used like: <input name="image" type="file" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# luna_pinyin.custom.yaml | |
# 修改字典名爲 luna_pinyin.kunki | |
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin | |
patch: | |
translator/dictionary: luna_pinyin.kunki |
删除所有微博
在Chrome Dev Tools中粘贴代码到Console,就可以删除当前屏幕所有微博。经过测试一万条微博大约需要10小时的半人工操作。
每批删除大概一分钟,最多50条。
如果遇到微博的Rate limit(提示操作过快),稍等三五分钟再试即可。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SMS = global('SMSRB'); | |
var SENDER = global('SMSRF'); | |
var SMSCONTENT = SMS + "\nSender: " + SENDER + "\nFrom Mobile" | |
var url = "https://xxxxxxxx/sendMessage?chat_id=0000000"; | |
var xhttp = new XMLHttpRequest(); | |
xhttp.open("POST", url, false); | |
xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); | |
xhttp.send("text="+encodeURIComponent(SMSCONTENT)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = $_GET["host"]; | |
if (empty($host)) { | |
echo 'Please provide host'; | |
} else { | |
//create the url for API call | |
$url = "https://api.pingdom.com/api/2.0/traceroute?host=".$host; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
method=$1 | |
ss-tunnel -k test -m $method -l 8387 -L 127.0.0.1:8388 -s 127.0.0.1 -p 8389 & | |
ss_tunnel_pid=$! | |
ss-server -k test -m $method -s 127.0.0.1 -p 8389 & | |
ss_server_pid=$! | |
iperf -s -p 8388 & |
OlderNewer