Skip to content

Instantly share code, notes, and snippets.

View bitlewis's full-sized avatar

Bitlewis bitlewis

  • Canada
View GitHub Profile
@bitlewis
bitlewis / json-object-array-foreach-loop.php
Created February 11, 2020 09:17 — forked from chancesmith/json-object-array-foreach-loop.php
Foreach loop through JSON object array
<?php
$json = '[
{
"categories": "10,11",
"title": "Promos",
"columns": "col-md-3"
},
{
"categories": "10,12",
@bitlewis
bitlewis / json-object-array-foreach-loop.php
Created February 11, 2020 09:17 — forked from chancesmith/json-object-array-foreach-loop.php
Foreach loop through JSON object array
<?php
$json = '[
{
"categories": "10,11",
"title": "Promos",
"columns": "col-md-3"
},
{
"categories": "10,12",
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx --prefix=/usr
make -j8
sudo checkinstall --fstrans=no --pkgversion=4.8.30 --pgkname=libdb-dev --nodoc -y
@bitlewis
bitlewis / ethos-clocks-generator
Created February 21, 2017 03:19
ethos-clocks-generator
#!/usr/bin/php -q
# // Script to auto reboot rigs with stuck_miners condition
<?php
$ethosurl = "http://hashr9.ethosdistro.com/?json=yes";
$json6 = file_get_contents($ethosurl);
$ethosjson = json_decode($json6);
foreach($ethosjson->rigs as $rig_id => $k) {
if(is_array($ethosjson->rigs) || is_object($ethosjson->rigs)) {
echo "7" > /sys/class/drm/card0/device/pp_dpm_sclk
Mining with ethOS on Suprnova.
So ethOS is basically shipped per default to mine on pools such as ethermine, nanopool and others that use wallet addresses as the account and that do NOT require workers.
Classic pools like Suprnova and Coinmine do require workers, this is where you need special steps to be able to mine on it with ethOS.
First of all, you will need to add a worker on Suprnova for EACH ethOS rigs you have.
The worker MUST be your rig's hostname. To find out, simply login in SSH and you'll see a similar line:
08:26 PM root@bd3655 10.34.0.187 [71.5 hash] /root #
In this case here, our worker will be bd3655.
disallow && minestop && sudo killall -9 sa-solver
cd ~ && sudo rm -rf silentarmy
git clone https://github.com/mbevand/silentarmy && cd ~/silentarmy && make
sudo rm -f /usr/local/bin/{silentarmy,sa-solver} && sudo cp ~/silentarmy/{silentarmy,sa-solver} /usr/local/bin
allow && show miner
disallow && minestop && cd ~ && sudo rm -r silentarmy && git clone https://github.com/mbevand/silentarmy &&n cd silentarmy && make && sudo rm -f /usr/local/bin/{silentarmy,sa-solver} && sudo cp ~/silentarmy/{silentarmy,sa-solver} /usr/local/bin && allow && show miner