a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
| by default,openwrt do not allow ssh access from wan, here are two method to change that: | |
| 1.login into your wrt from a lan host.issue the following command: | |
| iptables -F | |
| the command "flush away" all the firewall rules,including the one that rejects ssh request from wan. | |
| now you can try ssh from anywhere. | |
| aware that the firewall deactivation leads to highly security risk.and after the wrt restarts ,all default firewall configuration comes back.you hava to "flush" the rules once again. |
| -server | |
| -Xms2048m | |
| -Xmx2048m | |
| -XX:NewSize=512m | |
| -XX:MaxNewSize=512m | |
| -XX:PermSize=512m | |
| -XX:MaxPermSize=512m | |
| -XX:+UseParNewGC | |
| -XX:ParallelGCThreads=4 | |
| -XX:MaxTenuringThreshold=1 |
| // Simple example of client. | |
| // Client prints received messages to stdout and sends from stdin. | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <unistd.h> | |
| #include <sys/select.h> | |
| #include <netinet/in.h> |
| // From http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ | |
| // Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work, | |
| // but I can't make any promises about the quality of the algorithm's estimates above 40000 K.) | |
| function colorTemperatureToRGB(kelvin){ | |
| var temp = kelvin / 100; |
| log4j.debug=false | |
| # Default level is INFO | |
| log4j.rootLogger=INFO,StdoutErrorFatal,StdoutWarn,StdoutInfo,StdoutDebug,StdoutTrace | |
| # and for com.some.package.* log everything | |
| log4j.logger.com.some.package=TRACE | |
| log4j.appender.StdoutErrorFatal=org.apache.log4j.ConsoleAppender | |
| log4j.appender.StdoutErrorFatal.layout=org.apache.log4j.PatternLayout |
| public static String toISO8601UTC(Date date) { | |
| TimeZone tz = TimeZone.getTimeZone("UTC"); | |
| DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); | |
| df.setTimeZone(tz); | |
| return df.format(date); | |
| } | |
| public static Date fromISO8601UTC(String dateStr) { | |
| TimeZone tz = TimeZone.getTimeZone("UTC"); | |
| DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); |
##ss-redir 的 iptables 配置(透明代理)
透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则
创建 /etc/ss-redir.json 本地监听 7777
运行ss-redir -v -c /etc/ss-redir.json
iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
| #include "stm32l0xx.h" | |
| /* | |
| * Stop mode/LSE/RTC: 1.28uA | |
| * Stop mode without RTC: 0.4uA | |
| **/ | |
| //#define RTC_ENABLE | |
| int main(void) | |
| { |
Have tested these instructions successfully under Ubuntu 16.04LTS and 14.04LTS.
Devices > CD/DVD 1 > Connect Image..../Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso.