#dot-vimrc在win7环境下的配置
首先要感谢Github,越来越发现这是个好东西。我依然是win7+gVIM.
神级东东在这里
#!/bin/bash | |
NAME="www.abc.com" | |
FLASKDIR=/home/abc/site | |
VENVDIR=/home/abc/venv | |
SOCKFILE=/home/abc/sock | |
USER=captain | |
GROUP=captain | |
NUM_WORKERS=3 |
#!/bin/bash | |
# | |
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN | |
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise). | |
# With minor modifications, this script *can also be used* on dedicated servers | |
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers. | |
# | |
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN | |
# YOUR AMAZON EC2 INSTANCE STARTS! | |
# |
sudo vi /etc/sysctl.conf | |
在最底增加一行:net.ipv6.conf.all.disable_ipv6 = 1 | |
保存退出 | |
sudo sysctl -p | |
最后用:ip a | grep inet6验证,如没有任何输出则禁用成功! |
#coding:utf-8 | |
import os | |
from fpdf import FPDF #使用fpdf库 | |
def makepdf(i,p): | |
pdf= FPDF('P','mm',[368,266]) #设置页面大小 | |
pdf.add_page() | |
pdf.image(p+"/"+u'01台历.jpg',0,0,184,133) #x,y,w,h | |
pdf.image(p+"/"+u'03台历.jpg',184,0,184,133) | |
pdf.image(p+"/"+u'05台历.jpg',0,133,184,133) | |
pdf.image(p+"/"+u'07台历.jpg',184,133,184,133) |
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
[supervisord] | |
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) | |
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | |
loglevel=info ; (log level;default info; others: debug,warn,trace) | |
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | |
nodaemon=false ; (start in foreground if true;default false) |
log_format palmyin '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" $http_x_forwarded_for'; | |
server | |
{ | |
listen 80; | |
server_name palmyin.com www.palmyin.com ; | |
index index.html index.htm index.php default.html default.htm default.php; | |
root /home/wwwroot/palmyin; | |
location / { |