For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| Alright, thank you. | |
| So, I’ve got about apparently I’ve got about five to six minutes to say the most useful things I can think of. | |
| I’m gonna do my best. | |
| It was suggested that I distill things down to 3 items. | |
| I think I’ll go with four. | |
| And I’ll try, I think, I think these are pretty important ones. | |
| Some of it may kinda sound like, well you’ve heard them before. | |
| But, you know, worth reemphasizing. | |
| I think the first is, you need to work, if you, depending on how well you want to do, |
| gmail.com | |
| yahoo.com | |
| hotmail.com | |
| aol.com | |
| msn.com | |
| live.co.uk | |
| live.com.au | |
| facebook.com | |
| live.com | |
| yahoo.ca |
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |
| import csv | |
| from pypinyin import pinyin, lazy_pinyin, Style | |
| def cn_char(text): | |
| return all('\u4e00' <= char <= '\u9fff' for char in text) | |
| if __name__ == '__main__': | |
| data =[] | |
| with open('contacts.csv', encoding='utf-8') as f: |
| #-*-coding:utf-8-*- | |
| def seg(pinyin): | |
| sm = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'w', 'x', 'y', 'z', 'sh', 'zh', 'ch'] | |
| ymd = {'a': {'i':None, 'o':None, 'n': {'g': None}}, | |
| 'e': {'i':None, 'r':None, 'n': {'g': None}}, | |
| 'i': {'e':None, 'a':{'n':{'g':None}, 'o':None}, 'u':None, 'o':{'n':{'g':None}}, 'n':{'g':None}}, | |
| 'o': {'u':None, 'n':{'g':None}}, | |
| 'u': {'a':{'i':None, 'n':{'g':None}}, 'e':None, 'i':None, 'o':None} | |
| } |
The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.
| """ | |
| Demonstrates how to use the blocking scheduler to schedule a job that executes on 3 second | |
| intervals. | |
| """ | |
| from datetime import datetime | |
| import os | |
| import threading | |
| from apscheduler.schedulers.blocking import BlockingScheduler |
| import sys | |
| import marshal | |
| def main(): | |
| if len(sys.argv) < 2: | |
| print "usage: profile2csv file -> profile.csv" | |
| f = open(sys.argv[1], "r") | |
| k = marshal.loads(f.read()) | |
| f.close() | |
| f = open("profile.csv", "w") |