- Download strongswan
https://www.strongswan.org/download.html
sudo apt-get update
sudo apt-get install build-essential libgmp3-dev
tar xvf strongswan.tar.gz
cd strongswan
#!/usr/bin/env python3 | |
""" | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
https://www.strongswan.org/download.html
sudo apt-get update
sudo apt-get install build-essential libgmp3-dev
tar xvf strongswan.tar.gz
cd strongswan
sudo apt-get install shellinabox -y
# Modify the shellinabox settings
# - lock down so only localhost allowed
# - disable ssl as we will use the verified certs provided by Caddy
sudo nano /etc/default/shellinabox
...
SHELLINABOX_ARGS="--no-beep --localhost-only --disable-ssl"
...
# 声明:此备忘只供参考,并非权威方法,请参阅 Tor 和 ZeroNet 的安装和配置手册 | |
# Tor 相关 FAQ 见 http://*.*.*.*:43110/gfwtalk.bit/?Topic:37_13Z7XxTa7JuFat3KzzMWu3onwM6biLuurJ/+FAQ+6+1+Update+Freenet+VPS+ZeroNet+com+bit | |
# ZeroNet 集成的 Tor 版本并没有及时更新,现在最新版是 0.2.9.x | |
# 适用 Debian/Ubuntu/raspberryPi 等系统 | |
# 按照 Tor 官方文档安装最新版 Tor https://www.torproject.org/docs/debian.html.en#ubuntu | |
# 墙内使用 Tor 需要前置代理,推荐使用 Shadowsocks 作为前置代理,默认本地代理端口 1080 | |
# Tor 和 Shadowsocks 准备就绪后修改 /etc/tor/torrc 文件 | |
vi /etc/tor/torrc |
$ text-builder -index /path/to/index.txt
Or run $ sh build-all
to build all your index files.本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |