Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
FROM python:3.5.2 | |
ENV TZ=Asia/Shanghai | |
RUN apt-get update \ | |
&& apt-get install -y cron \ | |
&& apt-get autoremove -y | |
COPY ./cronpy /etc/cron.d/cronpy | |
CMD ["cron", "-f"] |
brew uninstall --ignore-dependencies openssl
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/30fd2b68feb458656c2da2b91e577960b11c42f4/Formula/openssl.rb
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# | |
# Author : XueWeiHan | |
# Date : 18/8/11 上午11:21 | |
# Desc : 通用工具类 | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.header import Header |
1、vim /etc/sysctl.conf
2、末尾追加如上设置
# 提高整个系统的文件限制
# max open files
fs.file-max = 51200
# max read buffer
net.core.rmem_max = 67108864
前提是需要有配置好的 shadowsocks 服务
通过 proxychains-ng + shadowsocks 实现终端翻墙,步骤如下:
brew install proxychains-ng
vim /usr/local/etc/proxychains.conf
socks5 127.0.0.1 1080
(shadowsocks 默认本地监听地址)使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i
参数选择一下本地的私钥,一个示例的 ssh 连接如下:
# PyLint configuration file for the project pymvpa. | |
# | |
# Agreed formatting (per yoh+michael voice dialog) is camel. | |
# | |
# This pylintrc file will use the default settings except for the | |
# naming conventions, which will allow for camel case naming as found | |
# in Java code or several libraries such as PyQt, etc. | |
# | |
# At some moment it was modified by yoh from the original one | |
# which can be found on debian systems at |