# 创建文件夹 ca 保存Ca相关
mkdir ca
cd ca
#创建私钥 (建议设置密码)
openssl genrsa -des3 -out myCA.key 2048
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: utf-8 -*- | |
""" This script checks compares two databases schemas, first display | |
which tables are only present in the reference schema. | |
Then for each tables which are in the reference database it displays if | |
the attributes and (primary and foreign) which are differents. | |
""" | |
import sys |
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
# -*- coding: utf-8 -*- | |
# @Author: xiewenqian <int> | |
# @Date: 2016-09-12T09:13:01+08:00 | |
# @Email: [email protected] | |
# @Last modified by: int | |
# @Last modified time: 2016-09-22T10:24:14+08:00 | |
import os | |
import zmq |
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
#!/bin/bash | |
BASE_DIR=`pwd` | |
GIT_DIR="/Users/gc/Temp/git_repo" | |
SVN_DIR="/Users/gc/Temp/svn_repo" | |
# The SVN_AUTH variable can be used in case you need credentials to commit | |
#SVN_AUTH="--username [email protected] --password XPTO" | |
SVN_AUTH="" | |
function svn_checkin { |
- 为所有指定文件加Header
header='/*\n * Copyright (c) 2015 by MyCompany, Inc.\n * All rights reserved.\n */\n'
find ~/my-proj/*.sh -exec sed -i "1s|^|$header|" {} \;
- linux运行windows的bash文件'\r'问题
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
import time | |
import contextlib | |
from tornado.ioloop import IOLoop | |
import tornado.web | |
from tornado import gen | |
@gen.coroutine | |
def async_sleep(timeout): | |
yield gen.Task(IOLoop.instance().add_timeout, time.time() + timeout) |
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
# @Author: xiewenqian <int> | |
# @Date: 2016-11-28T20:35:09+08:00 | |
# @Email: [email protected] | |
# @Last modified by: int | |
# @Last modified time: 2016-12-01T19:32:48+08:00 | |
import pandas as pd | |
from pymongo import MongoClient |
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
K=`curl -s http://www.symmz.com/sitemap_baidu.xml | ack -o 'http://www.symmz.com/\w+/\d+-\d+.html'` | |
for item in `echo $K`;do | |
ack -o 'http://img.symmz.com/images/\w+/\d{8}/\w+.jpg' html/`cd html && curl -s "$item" -O -w '%{filename_effective}' ` | xargs -L 1 bash -cx 'cd jpg && wget -c $0' | |
done |
NewerOlder