-
Notifications
You must be signed in to change notification settings - Fork 14
/
provision.py
57 lines (48 loc) · 2.25 KB
/
provision.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from datetime import datetime
import datetime
def get_entry(category, filename, name, years, body=None):
date = datetime.datetime.now() - datetime.timedelta(days=365*years)
gitdate = datetime_to_git_string(date)
path = '{}/{}'.format(category, filename)
with open(path, 'w') as f:
f.write(name)
f.flush()
f.close()
print 'git add {}'.format(path)
print 'GIT_AUTHOR_DATE="{}" GIT_COMMITTER_DATE="{}" git commit {} -m \"Started using {}\"'.format(gitdate, gitdate, path, name)
def datetime_to_git_string(dt):
return datetime.datetime.strftime(dt, '%a %b %d %H:%M:%S %Y +0800')
#print get_entry('webapp', 'django-rest-framework', 'Django Rest Framework', 2)
#print get_entry('webapp', 'django', 'Django', 5)
#get_entry('webapp', 'python', 'Python', 5)
#get_entry('webapp', 'flask', 'Flask', 2)
#get_entry('webapp', 'front-end', 'Front End Development', 17)
#get_entry('webapp', 'html', 'HTML/HTML5', 15)
#get_entry('webapp', 'javascript', 'JavaScript/ES6', 15)
#get_entry('webapp', 'angular', 'Angular', 2)
#get_entry('webapp', 'jquery', 'jQuery', 5)
#get_entry('webapp', 'ajax', 'AJAX', 5)
#get_entry('webapp', 'bootstrap', 'Bootstrap 3', 2)
#get_entry('webapp', 'websockets', 'Web Sockets', 1)
get_entry('software', 'rest', 'REST APIs', 3)
get_entry('software', 'python', 'Python', 5)
get_entry('other', 'dotnet', 'Microsoft .NET (C#)', 10)
get_entry('databases', 'mysql', 'MySQL', 10)
get_entry('databases', 'postgres', 'PostgreSQL', 7)
get_entry('databases', 'mssql', 'Microsoft SQL Server', 10)
get_entry('databases', 'oracle', 'Oracle', 5)
get_entry('testing', 'unittest', 'Python unittest', 2)
get_entry('testing', 'pytest', 'PyTest', 1)
get_entry('testing', 'karma', 'Karma', 1)
get_entry('testing', 'jasmine', 'Jasmine', 1)
get_entry('testing', 'selenium', 'Selenium', 1)
get_entry('testing', 'jenkins', 'Jenkins', 1)
get_entry('misc', 'vim', 'VI/VIM', 5)
get_entry('misc', 'bash', 'bash', 10)
get_entry('misc', 'zsh', 'Zsh', 2)
get_entry('misc', 'tmux', 'Tmux/screen', 4)
get_entry('misc', 'orm', 'ORM', 6)
get_entry('misc', 'git', 'GIT', 3)
get_entry('misc', 'heroku', 'Heroku', 3)
get_entry('misc', 'aws', 'Amazon (EC2, S3, Boto, Elastic Beanstalk, Route 53, RDS, Lambda)', 2)
get_entry('misc', 'docker', 'Docker / Docker Compose', 1)