How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/Thanks to this article by Christoph Berg
Directories and files
~/| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <rotate | |
| android:duration="70" | |
| android:fromDegrees="-5" | |
| android:pivotX="50%" | |
| android:pivotY="50%" | |
| android:repeatCount="5" | |
| android:repeatMode="reverse" |
| import java.lang.ref.WeakReference; | |
| import android.app.Activity; | |
| import android.content.SharedPreferences; | |
| import android.content.res.Configuration; | |
| import android.preference.PreferenceManager; | |
| /** | |
| * Night Mode Helper |
| /* replace using posix regular expressions */ | |
| /* source: http://www.daniweb.com/software-development/c/code/216955/replace-using-posix-regular-expressions */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <regex.h> | |
| int rreplace (char *buf, int size, regex_t *re, char *rp) | |
| { | |
| char *pos; | |
| int sub, so, n; |
| good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
| 但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
| 本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
| https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
| 1、 shadowsocks的timeout设置 | |
| 超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
| 2、 检查操作系统的各种限制 | |
| 对于openvz的vps,特别需要检查一下 |
| def toCamelCase(String string) { | |
| String result = "" | |
| string.findAll("[^\\W]+") { String word -> | |
| result += word.capitalize() | |
| } | |
| return result | |
| } | |
| afterEvaluate { project -> | |
| Configuration runtimeConfiguration = project.configurations.getByName('compile') |
These rules are adopted from the AngularJS commit conventions.
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
mainly used in start-up script
When we play with iptables aka firewall we might end up in situation, where we execute rule, which has unforseen impact - lock yourself out. Recovering from this situation is necessity.
How to:
- Enable reboot via SMS.
- Test all commands in shell first before putting them into Start-up script. This way the command will be wiped out, when unit is rebooted.