推荐顺序由上到下:
- AgentNEO —— https://neoproxy.me/ (在用)
- V2Club
- tapfog —— https://tapfog.com/ (6 块钱一个月,很便宜了)
- 艾可云 —— https://www.v2aky.com/
- 一元机场
- Myssr
| #!/bin/bash | |
| dir=${1:-.} | |
| dirs=`find $dir -not -path '*/.*' -not -path './venv' -type d -maxdepth 1` | |
| for d in $dirs; do | |
| cnt=`find $d -type f -exec wc -l {} + | awk '{s+=$1} END {print s}'` | |
| echo -e "$cnt\t$d/" | |
| done | sort -nr |
推荐顺序由上到下:
| https://www.v2aky.com/#/register?code=wFPA8fv7 | |
| Limited-A4 |
| #!/bin/bash | |
| topics=__consumer_offsets | |
| new_servers=1,2 | |
| while read -r line; do lines+=("$line"); done <<<"$topics" | |
| echo '{"version":1, | |
| "partitions":[' > topic-expand-plan.json | |
| for t in $topics; do | |
| if [ "${t}" == "${lines[-1]}" ]; then |
| 1. Stop Apache | |
| sudo /etc/init.d/apache2 stop | |
| 2. Stop Carbon | |
| sudo su www-data | |
| cd /opt/graphite/ | |
| ./bin/carbon-cache.py stop | |
| 3. Move whisper directory to new location |
| #!/bin/bash | |
| set -eu | |
| NAMESPACE=$1 | |
| PVCNAME=$2 | |
| TARGETZONE=$3 | |
| # SNAPSHOTID is optional, if you did a snapshot already, you can pass it | |
| SNAPSHOTID=${4:-} |
We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much
| 什么是交易策略? | |
| 交易策略是一系列规则的集合,包括进场和出场的条件,资金管理和风险控制等。策略有简单和复杂之分,简单的策略通常使用技术指标和价格行为,复杂的策略使用高阶数学和统计模型。通常情况下,我们会认为复杂的模型更优,但实证分析和学术研究表明,复杂的模型往往过度挖掘了历史数据,无法适应剧烈的市场变异,相反简单的模型在长期中更加稳定。 | |
| 交易策略可划分为3个部分:指标(Indicator),信号(Signal)和规则(Rule)。 | |
| 指标用于生成交易信号。计算指标的方法多种多样,可以是经济数据或估值指标(如PE和EBITDA),可以是技术指标(如MACD,RSI,MA),也可以是时间序列模型(ARIMA,GARCH)。技术指标在外汇交易中被广泛使用,它们是价格或成交量的函数,主要用于侦测趋势方向,衡量超买超卖状态,以及判断趋势反转。 | |
| 价格和指标的相互作用形成信号。以均线穿越为例,当5日均线上穿10日均线时买入,当5日均线下穿10日均线时卖出。信号并不局限于买入和卖出,也包含筛子,主要作用是剔除噪音。在均线穿越中,交易员可以增加趋势筛子:只有当价格高于200日均线(上涨趋势),以及5日均线上穿10日均线才做多,如果价格低于200日均线,黄金交叉被视为虚假信号。著名的筛子有趋势筛子,时间筛子,成交量筛子和波动性筛子,它们是信号的重要组成部分。 | |
| #!/bin/bash | |
| filepath=$1 | |
| if [[ -z $filepath ]]; then | |
| echo "Usage: $0 <filepath>" | |
| exit 1 | |
| fi | |
| filename=$(basename $filepath) | |
| random_title=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 14 | tr -d '\n'; echo) |
| use std::ops::Shl; | |
| struct Rsout; | |
| struct Endl; | |
| impl<'a> Shl<&'a str> for Rsout { | |
| type Output = Rsout; | |
| fn shl(self, _rhs: &'a str) -> Rsout { | |
| print!("{}", _rhs); |