$ vagrant init fedora/25-atomic-host
$ vagrant up
$ vagrant ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My custom Surge.app configuration | |
# Proxy (most) traffic via Shadowsocks | |
[General] | |
loglevel = notify | |
bypass-system = true | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 208.67.222.222, 208.67.220.220 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"terminal.explorerKind": "external", | |
"terminal.external.osxExec": "iterm2.app", | |
"editor.fontSize": 14, | |
"editor.fontFamily": "Menlo", | |
"workbench.colorTheme": "Atom One Dark", | |
"window.zoomLevel": 0, | |
"terminal.integrated.fontFamily": "Droid Sans Mono Dotted for Powerline", | |
"terminal.integrated.fontSize": 12, | |
"typescript.check.npmIsInstalled": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: heapster | |
namespace: kube-system | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: heapster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
算法学习 Golang 版 - 探索算法始末 | |
===================================== | |
- [认识](#zero) | |
- [算法](#four) | |
- [结构](#three) | |
- [数学原理](#one) | |
- [其他常见问题](#two) | |
## <i id="zero"></i>认识 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding=utf8 | |
import platform | |
import re | |
import time | |
import os | |
mirror_prefix = "--registry-mirror=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[settings] | |
# ~/.isort.cfg | |
line_length=120 | |
#force_to_top=file1.py,file2.py | |
#skip=file3.py,file4.py | |
#known_future_library=future,pies | |
#known_standard_library=std,std2 | |
#known_third_party=randomthirdparty | |
#known_first_party=mylib1,mylib2 | |
#indent=' ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[flake8] | |
# ~/.config/flake8 | |
# it's not a bug that we aren't using all of hacking, ignore: | |
# F812: list comprehension redefines ... | |
# H101: Use TODO(NAME) | |
# H202: assertRaises Exception too broad | |
# H233: Python 3.x incompatible use of print operator | |
# H301: one import per line | |
# H306: imports not in alphabetical order (time, os) | |
# H401: docstring should not start with a space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ GENERAL ##################################### | |
daemonize yes | |
pidfile /data/redis/pid/redis.${port}.pid | |
port ${port} | |
tcp-backlog 511 | |
timeout 0 | |
tcp-keepalive 0 | |
loglevel notice | |
logfile "/data/redis/logs/redis.${port}.log" | |
databases 16 |
This fast tutorial will teach you how to install redis-cli
on AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:
$ sudo yum install gcc
This may return an "already installed" message, but that's OK. After that, just run:
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli