This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanual.py
74 lines (68 loc) · 1.62 KB
/
manual.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# sync to 8 commits
import os
import datetime
def commit(num):
for i in range(num):
os.system('date >> commits')
os.system('git add commits && git commit -m "github contribution hack"')
def setdate(td):
os.system('date -u %s' % td.strftime('%m%d%H%M%Y'))
commits = [7, 7,
7,6,6,6,6,4,4,
7,6,6,6,6,4,4,
7,4,4,6,6,4,4,
7,4,4,6,6,4,4,
7,6,6,4,4,4,4,
7,6,6,4,4,4,4,
7,7,7,7,7,7,7,
4,4,4,4,4,4,4,
4,6,5,6,5,6,4,
4,4,4,4,4,5,4,
7,7,7,7,4,6,4,
7,7,7,7,4,5,4,
7,7,7,7,4,6,4,
7,7,7,7,4,4,4,
7,7,7,7,7,7,7,
4,4,4,4,4,4,4,
4,6,5,6,5,6,4,
4,5,4,4,4,5,4,
4,5,4,7,4,5,4,
4,5,4,4,4,5,4,
4,6,5,6,5,6,4,
4,4,4,4,4,4,4,
7,7,7,7,7,7,7,
4,4,4,4,4,4,4,
4,6,5,6,5,6,4,
4,4,4,4,4,5,4,
7,7,7,7,4,6,4,
7,7,7,7,4,5,4,
7,7,7,7,4,6,4,
7,7,7,7,4,4,4,
7,7,7,7,7,0,7,
8,8,8,6,3,7,8,
7,7,8,8,5,8,7,
7,7,8,7,8,7,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,7,8,
8,8,8,8,8,8,8,
8,8,7,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
7,8,2,8,7,8,8,
7,8,8,8,8,8,4]
tdate = datetime.datetime(2012, 10, 5, 17, 0)
oneday = datetime.timedelta(days=1)
for c in commits:
setdate(tdate)
tdate += oneday
commit(c)