-
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
# 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 |
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 SQLAlchmey and flask... | |
import yota | |
from yota.nodes import * | |
from yota.validators import * | |
""" Say we have a simple SQLAlchemy table like such """ | |
class User(Base): | |
__tablename__ = 'users' | |
id = Column(Integer, primary_key=True) |
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
# Setup a proper path, I call my virtualenv dir "venv" and | |
# I've got the virtualenv command installed in /usr/local/bin | |
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH | |
# Move the source into it's own directory | |
SRC_DIR=eli5 | |
mkdir $SRC_DIR | |
mv * $SRC_DIR/ || : | |
mv .git/ $SRC_DIR/ || : | |
# Generate a new virtual enviroment | |
if [ ! -d "venv" ]; then |
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
# Install latest mongo | |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list | |
apt-get -y update | |
apt-get -y install mongodb-10gen | |
# uwsgi | |
apt-get install uwsgi uwsgi-plugin-python | |
# python setup |
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 is a thread based comparison runner for robot game. Essentially it takes the latest | |
x number of scripts in a folder called "engines" and runs every combination against eachother | |
repeatedly. It shows simple W/L ratio to help figure out which algorithms work the best. | |
""" | |
import curses | |
import path | |
import sys | |
import threading | |
import traceback |
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
mainApp.directive "rawNgModel", -> | |
require: "^ngModel" | |
scope: | |
rawNgModel: '=' | |
link: (scope, element, attrs, ngModelCtrl) -> | |
ngModelCtrl.$parsers.splice 0, 0, ((viewValue) -> | |
scope.rawNgModel = viewValue | |
viewValue | |
) |
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)) |
OlderNewer