使用Docker在VPS搭建Shadowsocks最簡單版本

使用Docker在VPS搭建Shadowsocks最簡單版本

“””curl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.shyum -y install git“””安裝docker和git(如未安裝) git clone https://github.com/etaf/shadowsocks-docker.git && cd shadowsocks-docker在github下載Dockerfile和相關設置 cat shadowsocks_config.json查看設置,有需要就修改 {“server”:”::”,“server_port”: 8838,“local_address”:”127.0.0.1″,“local_port”:1080,“password”:”abcdefg”,“timeout”:300,“method”:”aes-256-cfb”,“fast_open”:true} systemctl…

使用Python的Matplotlib繪製蠟燭圖

使用Python的Matplotlib繪製蠟燭圖

Matplotlib是Python語言中比較流行的畫圖的包,用於製作靜態圖比較合適。 交易產品的蠟燭圖所需要的源數據也就是Open High Low Close的價格,還有就是日期時間,現在給出一個data.csv作為Sample data.csv import numpy as np import csv import matplotlib.pyplot as plt from matplotlib import dates, ticker…