Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
| resolver 8.8.8.8; | |
| location /video/ { | |
| if ($request_uri ~ "^/video/(.+?)/.+") { | |
| set $upstream_host $1.googlevideo.com; | |
| add_header Content-Disposition "attachment; filename=video.mp4;"; | |
| } | |
| rewrite /video/.+?/(.+)$ /$1 break; | |
| proxy_buffering off; | |
| proxy_pass https://$upstream_host; | |
| proxy_set_header Host $upstream_host; |
| IP Addresses of Google Global Cache | |
| www.kookle.co.nr | |
| Bulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123.23.7 93.123.23.8 93.123.23.9 | |
| 93.123.23.10 93.123.23.11 93.123.23.12 93.123.23.13 93.123.23.14 93.123.23.15 93.123.23.16 93.123.23.17 93.123.23.18 93.123.23.19 | |
| 93.123.23.20 93.123.23.21 93.123.23.22 93.123.23.23 93.123.23.24 93.123.23.25 93.123.23.26 93.123.23.27 93.123.23.28 93.123.23.29 | |
| 93.123.23.30 93.123.23.31 93.123.23.32 93.123.23.33 93.123.23.34 93.123.23.35 93.123.23.36 93.123.23.37 93.123.23.38 93.123.23.39 | |
| 93.123.23.40 93.123.23.41 93.123.23.42 93.123.23.43 93.123.23.44 93.123.23.45 93.123.23.46 93.123.23.47 93.123.23.48 93.123.23.49 | |
| 93.123.23.50 93.123.23.51 93.123.23.52 93.123.23.53 93.123.23.54 93.123.23.55 93.123.23.56 93.123.23.57 93.123.23.58 93.123.23.59 | |
| Egypt 197.199.253.1 197.199.253.2 197.199.253.3 197.199.253.4 197.199.253.5 197.199.253.6 197.199.253.7 197.199.253.8 197.199.253.9 |
| good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
| 但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
| 本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
| https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
| 1、 shadowsocks的timeout设置 | |
| 超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
| 2、 检查操作系统的各种限制 | |
| 对于openvz的vps,特别需要检查一下 |
| <fontconfig> | |
| <match target="pattern"> | |
| <test qual="any" name="family"> | |
| <string>serif</string> | |
| </test> | |
| <edit name="family" mode="prepend" binding="strong"> | |
| <string>Noto Sans T Chinese</string> | |
| <string>Noto Sans S Chinese</string> | |
| <string>Noto Sans Japanese</string> | |
| <string>Noto Sans Korean</string> |
| #!/bin/sh | |
| if [ -z "$1" ] ; then | |
| echo "Convert MediaInfo encoding settings to x264 commands" | |
| echo "Usage: $0 <video>" | |
| echo " $0 \"MediaInfo encoding settings\"" | |
| exit 0 | |
| fi | |
| <?php | |
| /** | |
| * Returns a pre-signed URL to access a restricted AWS S3 object. | |
| * | |
| * @param string $access_key the AWS access key | |
| * @param string $secret_key the AWS secret key associated with the access key | |
| * @param string $bucket the S3 bucket | |
| * @param string $canonical_uri the object in the S3 bucket expressed as a canonical URI. | |
| * This should begin with the / character, and should not be URL-encoded | |
| * @param int $expires the time that the pre-signed URL will expire, in seconds |
| # SSL termination at proxy | |
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy |
| # http block | |
| geoip_city /usr/local/share/GeoIP/GeoIPCity.dat; | |
| geoip_country /usr/local/share/GeoIP/GeoIPCountry.dat; | |
| # location block | |
| proxy_set_header GEOIP_COUNTRY_CODE $geoip_country_code; | |
| proxy_set_header GEOIP_COUNTRY_CODE3 $geoip_country_code3; | |
| proxy_set_header GEOIP_COUNTRY_NAME $geoip_country_name; |
These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan