Skip to content

Instantly share code, notes, and snippets.

@gkrnours
gkrnours / app.py
Created March 8, 2017 19:18
Testing with FlaskDB
from datetime import datetime
from flask import Flask
import peewee
from playhouse.flask_utils import FlaskDB
app = Flask(__name__)
db = FlaskDB()
class Ping(db.Model):
timestamp = peewee.DateTimeField(default=datetime.now)
@gkrnours
gkrnours / 1_readme.md
Last active February 6, 2017 00:08
Python Hello World

Python Hello World

Curious reader, welcome! If you are reading these lines, I assume you are interested into programming or python. Maybe both :) Programming is the art of teaching a computer how to do your bidding. python is a language used to do just that.

This first part will show how to use python. Nothing fancy, just add it to your

@gkrnours
gkrnours / mySite_templates_form.html
Created September 17, 2016 10:02
A user creation form in django
{#
mySite is the directory created with manage.py startproject, containing settings.py
This template simple take a form and output a basic bootstrap4 compatible html
Could be replaced with {{ form.as_p }}
#}
{% load widget_tweaks %}
{% for field in form %}
<fieldset class="form-group{% if field.errors %} has-error{% endif %}">
{{ field.label_tag }}
@gkrnours
gkrnours / dabblet.css
Last active April 19, 2016 10:36
Collapsible search field
/**
* Collapsible search field
*/
body {
background: #f06;
background: linear-gradient(45deg, #f58, #d03);
min-height: 100%;
font-size: 0;
}

Keybase proof

I hereby claim:

  • I am gkrnours on github.
  • I am gkr (https://keybase.io/gkr) on keybase.
  • I have a public key whose fingerprint is AC4B 3B81 D6E0 C6A6 9013 5158 5BB2 DD4D C41B 62B5

To claim this, I am signing this object:

function rebours(url, delta, a_id) {// Fonction de leedo pour afficher un décompte des heures
a_id = a_id || {'j':'jours', 'h':'heures', 'm':'minutes', 's':'secondes'}
now = new Date();
end = new Date(now.getTime() + (delta*1000));
if(now < end) {
setTimeout("rebours('"+url+"',"+(delta-1)+");", 1000);
}
else {

It's a bad GPU for mining bitcoins.

TL;DR
HardOCP have this nice article dealing with the technical part of mining bitcoin. You can extract from it that your RAM have close to nothing to do with how much hash you can compute per second. The bottleneck is your cpu. Or more exactly your gpu as those have the good instruction more or less hardwired inside of them.

And from the graph, it look like nvidia have never hardwired the exact instruction required to compute a hash and wire less and less of it. They provide a lot of software solution for game and I assume they build their GPU for these solution. On the other hand, ATI GPU seems to be the right tool for this job.

From what you tell about your gaming rig, their should be three open slot for gpu. If you aim to do profitable mining, you can fill some or all of these slot with gpu offering better performance than a GTX 560. As a bonus, you will be able to play whi