-
Change lines 386-390 in /opt/bamt/gpumon from
if (${$conf}{'settings'}{'scrypt-adaptive-N'}) { system("screen -r vertminer"); } else { system("screen -r cgminer"); }
to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import redis | |
r = redis.StrictRedis(host='localhost', port=6379, db=15) | |
r.flushdb() | |
def rand_str(N): | |
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(N)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/manage.py b/manage.py | |
index 1619883..ad70f5b 100755 | |
--- a/manage.py | |
+++ b/manage.py | |
@@ -9,7 +9,7 @@ from flask.ext.migrate import MigrateCommand | |
from simplecoin import create_manage_app, db, currencies, powerpools | |
from simplecoin.scheduler import SchedulerCommand | |
-from simplecoin.models import Transaction, UserSettings, Credit, ShareSlice, DeviceSlice | |
+from simplecoin.models import Transaction, UserSettings, Credit, ShareSlice, DeviceSlice, Block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+@manager.command | |
+def fix_credits(): | |
+ from simplecoin.models import CreditExchange | |
+ credit_table = Credit.__table__ | |
+ credit_exc_table = CreditExchange.__table__ | |
+ for credit in Credit.query.options(db.joinedload('block')).order_by(Credit.id): | |
+ correct = 1 | |
+ if credit.block and credit.block.currency == credit.currency: | |
+ correct = 0 | |
+ |
Cryptocurrency is powerful because it gives you complete control over your money, but this also puts the responsibility of proper security and procedures completely with you. As part of SimpleCrypto's goal of advancing cryptocurrency accessibility we've put together an educational article on how to properly secure your wallets and ensure that your funds are safe at all times.
Which wallet?
All cryptocurrencies use a "wallet" of some kind. A wallet is a program that allows you to send and recieve cryptocurrency. Well established currencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Easy alias for switching to perform actions as another | |
# user, even if they have no login shell | |
as_other() { | |
pushd `eval echo ~$1` | |
sudo -H -u $1 -s /bin/bash | |
popd | |
} | |
alias as=as_other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blocks = list of all the blocks in the current chain | |
fork_number = the block height we'll fork to new adjustment algorithm at | |
coins_distributed = 0 | |
for block in blocks: | |
# This block template doesn't have subsidy information, IE, we don't know | |
# how much was paid out in the coinbase | |
if block.height < fork_number: | |
# using the regular subsidy adjustment schedule and determine what the coinbase would have been at this height | |
coins_distributed += subsidy for this block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run script with wget --no-check-certificate https://gist.github.com/icook/5304548/raw -O - | sh | |
sudo apt-get -y install curl | |
# rethinkdb | |
sudo add-apt-repository ppa:rethinkdb/ppa | |
sudo apt-get update | |
sudo apt-get install rethinkdb | |
# nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -e ~/.ssh/id_rsa.pub ]; | |
then | |
echo "SSH Key already exists on local machine" | |
else | |
echo "Generating SSH key on local machine" | |
ssh-keygen -t rsa | |
chmod -R 700 ~/.ssh | |
ssh-add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program is meant for an Arduino Mega 2560 and is used as the control system | |
for the 2012 Jayhawk Motorsports Electric Car. | |
Author: Aric Beaver | |
Date: 4/06/2012 | |
Version: 2 | |
Specifications: This is the second version of this code that uses the throttle | |
sensor, brake sensor, accelerometer, wheel speed sensors, CANBUS system for |
OlderNewer