Skip to content

Commit 8368837

Browse files
author
root
committed
added source files
0 parents  commit 8368837

File tree

8 files changed

+354
-0
lines changed

8 files changed

+354
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This repository contains the mirroring scripts for github repos.

Virtual-labs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit a580987d642d4ba2e068296e69ea616394663ded

clone.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
3+
with open('existing_github_repo_list.txt' , 'r') as clone_url_list:
4+
cmd = ''
5+
for clone_url in clone_url_list:
6+
clone_url = clone_url.strip()
7+
repo_name = clone_url.split('/')[-1].split('.git')[0]
8+
cmd = 'git clone %s %s%s' % (clone_url, 'Virtual-labs/', repo_name)
9+
print cmd
10+
os.system(cmd)

existing_github_repo_list.txt

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
https://github.com/Virtual-Labs/Index.git
2+
https://github.com/Virtual-Labs/Organization-Structure.git
3+
https://github.com/Virtual-Labs/Communication-Channels.git
4+
https://github.com/Virtual-Labs/Process-for-Labs.git
5+
https://github.com/Virtual-Labs/Integration-Specs-Kits.git
6+
https://github.com/Virtual-Labs/events-meetings.git
7+
https://github.com/Virtual-Labs/List-of-Labs.git
8+
https://github.com/Virtual-Labs/Wiki.git
9+
https://github.com/Virtual-Labs/iit-kgp-amrita-sample.git
10+
https://github.com/Virtual-Labs/iit-g-amrita-sample.git
11+
https://github.com/Virtual-Labs/2014-09-16-integration-workshop.git
12+
https://github.com/Virtual-Labs/vlabPhyAmrita.git
13+
https://github.com/Virtual-Labs/iitb-vlabs.git
14+
https://github.com/Virtual-Labs/civil-surveying-iitr.git
15+
https://github.com/Virtual-Labs/ece-iitd.git
16+
https://github.com/Virtual-Labs/Signal-System-IITG.git
17+
https://github.com/Virtual-Labs/Electronic-Instrumentation-IITG.git
18+
https://github.com/Virtual-Labs/solve_nitk.git
19+
https://github.com/Virtual-Labs/programmablelogiccontroller-coep.git
20+
https://github.com/Virtual-Labs/eprayog-electronics-iitb.git
21+
https://github.com/Virtual-Labs/kdm-iitkgp.git
22+
https://github.com/Virtual-Labs/robotics-iitkgp.git
23+
https://github.com/Virtual-Labs/chemeng-iitbombay.git
24+
https://github.com/Virtual-Labs/syscom-iitg.git
25+
https://github.com/Virtual-Labs/test_nitk.git
26+
https://github.com/Virtual-Labs/electrical-machines-iitg.git
27+
https://github.com/Virtual-Labs/mvvrl_iitkgp.git
28+
https://github.com/Virtual-Labs/ovpl-chemengg-iitb.git
29+
https://github.com/Virtual-Labs/civ01.git
30+
https://github.com/Virtual-Labs/SensorLab-coep.git
31+
https://github.com/Virtual-Labs/lab-integration-kit-v0.5.git
32+
https://github.com/Virtual-Labs/lik.git
33+
https://github.com/Virtual-Labs/electro-magnetic-theory-iiith.git
34+
https://github.com/Virtual-Labs/computer-programming-iiith.git
35+
https://github.com/Virtual-Labs/roadmap-for-integration-engineers.git
36+
https://github.com/Virtual-Labs/quantum-chemistry-iiith.git
37+
https://github.com/Virtual-Labs/data-structures-iiith.git
38+
https://github.com/Virtual-Labs/problem-solving-iiith.git
39+
https://github.com/Virtual-Labs/principles-of-programming-languages-iiith.git
40+
https://github.com/Virtual-Labs/databases-and-datamining-iiith.git
41+
https://github.com/Virtual-Labs/linux-lab-iiith.git
42+
https://github.com/Virtual-Labs/computer-organization-iiith.git
43+
https://github.com/Virtual-Labs/advanced-vlsi-iiith.git
44+
https://github.com/Virtual-Labs/digital-logic-design-iiith.git
45+
https://github.com/Virtual-Labs/speech-signal-processing-iiith.git
46+
https://github.com/Virtual-Labs/mobile-robotics-iiith.git
47+
https://github.com/Virtual-Labs/computer-graphics-iiith.git
48+
https://github.com/Virtual-Labs/image-processing-iiith.git
49+
https://github.com/Virtual-Labs/pattern-recognition-iiith.git
50+
https://github.com/Virtual-Labs/cryptography-iiith.git
51+
https://github.com/Virtual-Labs/analog-cmos-vlsi-circuit-design-iiith.git
52+
https://github.com/Virtual-Labs/basic-engineering-mechanics-and-strength-of-materials-iiith.git
53+
https://github.com/Virtual-Labs/soil-mechanics-and-foundation-engineering-iiith.git
54+
https://github.com/Virtual-Labs/hydraulics-and-fluid-mechanics-iiith.git
55+
https://github.com/Virtual-Labs/basic-structural-analysis-iiith.git
56+
https://github.com/Virtual-Labs/molecular-florescence-spectroscopy-iiith.git
57+
https://github.com/Virtual-Labs/colloid-and-surface-chemistry-iiith.git
58+
https://github.com/Virtual-Labs/molecular-absorption-spectroscopy-iiith.git
59+
https://github.com/Virtual-Labs/circular-dichronism-spectroscopy-iiith.git
60+
https://github.com/Virtual-Labs/physical-chemistry-iiith.git
61+
https://github.com/Virtual-Labs/molecular-interactions-iiith.git
62+
https://github.com/Virtual-Labs/physical-sciences-iiith.git
63+
https://github.com/Virtual-Labs/geotechnical-engineering-lab-iiith.git
64+
https://github.com/Virtual-Labs/computational-linguistics-iiith.git
65+
https://github.com/Virtual-Labs/structural-dynamics-iiith.git
66+
https://github.com/Virtual-Labs/optical-remote-sensing-iiith.git
67+
https://github.com/Virtual-Labs/vlsi-iiith.git
68+
https://github.com/Virtual-Labs/artificial-neural-networks-iiith.git
69+
https://github.com/Virtual-Labs/natural-language-processing-iiith.git
70+
https://github.com/Virtual-Labs/aerospace-virtual-lab-iitk.git
71+
https://github.com/Virtual-Labs/ultra-fast-laser-spectroscopy-iitk.git
72+
https://github.com/Virtual-Labs/transducers-and-instrumentation-virtual-laboratory-iitk.git
73+
https://github.com/Virtual-Labs/virtual-astrophysics-lab-iitk.git
74+
https://github.com/Virtual-Labs/bio-medical-instrumentation-lab-iitr.git
75+
https://github.com/Virtual-Labs/bio-medical-signal-and-image-processing-lab-iitr.git
76+
https://github.com/Virtual-Labs/electrical-machines-lab-iitr.git
77+
https://github.com/Virtual-Labs/surveying-lab-iitr.git
78+
https://github.com/Virtual-Labs/programmable-logic-controller-coep.git
79+
https://github.com/Virtual-Labs/sensor-laboratory-coep.git
80+
https://github.com/Virtual-Labs/fab-laboratory-coep.git
81+
https://github.com/Virtual-Labs/metal-forming-virtual-simulation-lab-dei.git
82+
https://github.com/Virtual-Labs/virtual-power-lab-dei.git
83+
https://github.com/Virtual-Labs/virtual-chemistry-lab-dei.git
84+
https://github.com/Virtual-Labs/virtual-microwave-laboratory-dei.git
85+
https://github.com/Virtual-Labs/analytical-and-virtual-instrumentation-applications-lab-dei.git
86+
https://github.com/Virtual-Labs/students-online-laboratory-through-virtual-experimentation-nitk.git
87+
https://github.com/Virtual-Labs/industrial-automation-laboratory-coep.git
88+
https://github.com/Virtual-Labs/vibration-and-acoustics-coep.git
89+
https://github.com/Virtual-Labs/micro-machining-laboratory-coep.git
90+
https://github.com/Virtual-Labs/hybrid-electronics-lab-coep.git
91+
https://github.com/Virtual-Labs/electrical-machines-coep.git
92+
https://github.com/Virtual-Labs/bio-medical-and-signal-processing-laboratory-coep.git
93+
https://github.com/Virtual-Labs/engineers-forum.git
94+
https://github.com/Virtual-Labs/population-ecology-virtual-lab-i-au.git
95+
https://github.com/Virtual-Labs/rf-and-microwave-characterization-lab-iitk.git
96+
https://github.com/Virtual-Labs/virtual-lab-oscillations-iitk.git
97+
https://github.com/Virtual-Labs/material-response-to-micro-structural-mechanical-thermal-and-biological-stimuli-iitk.git
98+
https://github.com/Virtual-Labs/virtual-combustion-and-automization-lab-iitk.git
99+
https://github.com/Virtual-Labs/transducers-and-instrument-vlab-iitk.git
100+
https://github.com/Virtual-Labs/virtual-lab-aerospace-engg-iitk.git

get_repo_list.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import json
2+
import os
3+
4+
def get_all_repos():
5+
os.system('curl -i "https://api.github.com/orgs/Virtual-labs/repos?per_page=200" > owner.json')
6+
get_repo_urls()
7+
8+
def get_repo_urls():
9+
with open('owner.json') as input_file:
10+
count = 0
11+
for line in input_file:
12+
key = line.split(':', 1)
13+
if key[0] == ' "clone_url"':
14+
repo_url = key[1]
15+
with open('repos_url.txt', 'a') as repo_data:
16+
repo_data.write(repo_url)
17+
18+
os.system('rm owner.json')
19+
20+
21+
get_all_repos()

initialize.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
3+
os.system('python get_repo_list.py')
4+
5+
result = os.path.exists('existing_github_repo_list.txt')
6+
if result == False:
7+
os.system('python modify_input.py existing_github_repo_list.txt')
8+
9+
else:
10+
os.system('python modify_input.py latest_github_repo_list.txt')

0 commit comments

Comments
 (0)