Skip to content

Instantly share code, notes, and snippets.

View ripper234's full-sized avatar
💭
Angel Investor & Advisor

Ron Gross ripper234

💭
Angel Investor & Advisor
View GitHub Profile
@ripper234
ripper234 / scriptedCrowdsale.java
Created June 26, 2014 08:53
First example of a Scripted Crowdsale on the Master Protocol
/**
This method is called by Master Protocol parser when parsing an incoming transaction into a crowdsale address. It is called once per incoming tx.
*/
handlePayment();
The method handlePayment() can call on auxilery methods to access some parameters:
/**
0 for BTC, 1 for MSC, etc... as per [the spec](https://github.com/mastercoin-MSC/spec#transaction-field-definitions)
*/
Erik Voorhees
Adam Draper
Joe Robinson
Pete Rizzo
Michael Terpin
Brock Pierce
Michael Flaxman
Joseph Hsieh
Brayton Williams
Matt Schlicht
control.me is a service where people can volunteer to be controlled by others.
You get to make decisions about people on the website.
Some example decisions:
1. what should I eat today, Salmona or Pasta?
2. Should I go on vacation in India or Thailand this year?
3. She I leave my boyfriend, or try to work on it?
It's a "Twitter for decisions".
@ripper234
ripper234 / debug.log
Created June 16, 2015 15:00
Bitcoin Core log
2015-06-16 14:59:17 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2015-06-16 14:59:17
# This file should be readable and writable by apache
WSGISocketPrefix ${APACHE_RUN_DIR}
#NOTE: all urs below will need to be adjusted if
#settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
#this allows "rooting" forum at [http://example.com/forum], if you like
<VirtualHost *>
ServerAdmin admin@draw3cards.com
DocumentRoot /home/osqa/sites/beta-meta-d3c
ServerName beta.meta.draw3cards.com
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] mod_wsgi (pid=14998): Exception occurred processing WSGI script '/home/osqa/sites/beta-meta-d3c/osqa.wsgi'.
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] Traceback (most recent call last):
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] self.load_middleware()
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 33, in load_middleware
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line 276, in __getattr__
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3] self._setup()
[Mon Mar 28 12:04:50 2011] [error] [client 84.109.88.3]
import os
import sys
sys.path.append('/home/osqa/sites')
sys.path.append('/home/osqa/sites/beta-meta-d3c')
# The first part of this module name should be identical to the directory name
# of the OSQA source. For instance, if the full path to OSQA is
# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value
# of 'osqa-server.settings'.
os.environ['DJANGO_SETTINGS_MODULE'] = 'beta-meta-d3c.settings'
import django.core.handlers.wsgi
# This file should be readable and writable by apache
WSGISocketPrefix ${APACHE_RUN_DIR}
#NOTE: all urs below will need to be adjusted if
#settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
#this allows "rooting" forum at [http://example.com/forum], if you like
<VirtualHost *>
ServerAdmin admin@draw3cards.com
DocumentRoot /home/osqa/sites/beta-meta-d3c
ServerName beta.meta.draw3cards.com
import os
import sys
sys.path.append('/home/osqa/sites')
sys.path.append('/home/osqa/sites/meta-d3c')
# The first part of this module name should be identical to the directory name
# of the OSQA source. For instance, if the full path to OSQA is
# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value
# of 'osqa-server.settings'.
os.environ['DJANGO_SETTINGS_MODULE'] = 'meta-d3c.settings'
import django.core.handlers.wsgi