Post by sound on Jan 5, 2023 19:08:18 GMT
reden discovered that GitHub has "hosted runners" that can run in a repository on the site. It's a form of shared VPS with pretty neat specifications -- around 6 GB of memory and 14 GB of SSD storage. It can be summoned in an instant by making a commit to the repository and up to 10 instances can be run simultaneously (each with aforementioned specs, not spread out among them, it seems). This lets you run 10 Repeater instances simultaneously, each using 6 GB of RAM. Further with SSD storage you can create swap space of 14 GB and use that as memory for the Repeater.
Here's how to set it up, simplified without unnecessary details (reden can elaborate on details if necessary):
1. Make a repository on Github. It shall contain either a Linux-executable of the Repeater or the CPP file. This instruction uses a CPP file.
2. Make a 7-Zip or other compressed archive containing a text file with your intentions. When you compress it, encrypt it, since the repository is public. You can use a random password generator (I use LastPass's). The Repeater can go through encryption. I recommend using 7-Zip and making an archive called "A.7Z". You can capitalize the 7Z if you enable showing file extensions in the Windows Explorer's options. If using Linux there are other methods to achieve the same, reden knows about that.
3. Go to the repository's Settings and go to the Actions tab and make sure:
a) "Allow all actions and reusable workflows" is enabled;
b) "Read and write permissions" is enabled.
4. Create a folder called .github and in it a folder called workflows. Inside that create a file with the .yaml extension and the following contents:
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
Plan: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- uses: actions/checkout@v3
- name: Repeater compile
run: g++ -O3 intention_repeater_max_5.7.cpp
- name: Make swap
run: (sudo fallocate -l 14G /swapfile) && (sudo chmod 600 /swapfile) && (sudo mkswap /swapfile) && (sudo swapon /swapfile)
- name: Repeater run
run: ./a.out --dur 05:57:00 --imem 20 --intent "A.7Z THX"
This will compile Repeater, make swap space and run the Repeater with the intention "A.7Z THX" intention.
You can use GitHub desktop or the web interface. I find GitHub desktop to be easier.
Go the Actions tab and press the running instance. Wait for 5 minutes or so and the Repeater should start running under the "Run Repeater" tab.
You may also fork this repository and replace A.7Z with your own file: github.com/soundenergies/intrpt-personal
Be sure to cancel any pre-existing Runner instances first after the fork.
A Runner runs for 6 hours before being terminated, and then you may make a new commit to run a new. You can create a text file. If you make two commits within the span of a minute chances are you can get yet another Runner, meaning 2x10 Repeater instances. If so you may make a text file and then remove it (2 commits).
It sounds complicated (and it is complicated to set up if you've never used GitHub before), but once done, it's easy to maintain/use and we can answer questions you may have and guide you.
Good luck!