-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclone.py
More file actions
30 lines (25 loc) · 987 Bytes
/
clone.py
File metadata and controls
30 lines (25 loc) · 987 Bytes
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
#Developer: Curly60e
#PyBLOCK its a clock of the Bitcoin blockchain.
#Version: 0.6.0b
import os
import os.path
import time as t
def gitclone():
url = "https://github.com/curly60e/satellite"
os.system("git clone " + url)
os.system("mkdir satellite/api/examples/.gnupg")
os.system("gpg --full-generate-key --homedir satellite/api/examples/.gnupg")
def satnode():
try:
os.system("python3 satellite/api/examples/demo-rx.py &")
t.sleep(5)
os.system("python3 satellite/api/examples/api_data_reader.py --demo --plaintext ")
except:
os.system("ps -ef | grep api_data_reader.py | grep -v grep | awk '{print $2}' | xargs kill -9")
os.system("ps -ef | grep demo-rx.py | grep -v grep | awk '{print $2}' | xargs kill -9")
def matrixsc():
if os.path.isdir('$HOME/pyblock/terminal_matrix'):
print("OK Pass")
else:
url = "https://github.com/curly60e/terminal_matrix.git"
os.system("git clone " + url)