Host | Agent |
---|---|
37.187.136.15 | /BitCoinJ:0.12SNAPSHOT/Satoshi:0.11.0/: version 70001, blocks=370279, us=127.0.0.1:8333, peerid=5124 |
This file contains hidden or 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 re | |
import hashlib | |
import base58 | |
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent | |
def bytetohex(byteStr): | |
return ''.join( [ "%02X" % x for x in byteStr ] ).strip() | |
litecoin = [b"\x30", b"\xb0"] | |
bitcoin = [b"\x00", b"\x80"] |
This file contains hidden or 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
var async = require('async') | |
var bitcoind = require("bitcoin") | |
var batch = []; | |
var addresses = [] | |
var client = new bitcoind.Client({ | |
host: 'localhost', | |
port: 9999, |
This file contains hidden or 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
maxconnections=120 | |
minrelaytxfee=0 | |
testnet=1 | |
dbcache=200 #for a 2 GB server | |
# dbcache=1000 #for a 4 GB server | |
# Only relevant for those running jtoomim's eviction branch | |
# maxmempoolbytes=400000000 |
This file contains hidden or 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
#!/usr/bin/python | |
# fix-xcode | |
# Rob Napier <[email protected]> | |
# Script to link in all your old SDKs every time you upgrade Xcode | |
# Create a directory called /SDKs (or modify source_path). | |
# Under it, put all the platform directories: | |
# MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform | |
# Under those, store the SDKs: |
This file contains hidden or 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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
This file contains hidden or 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
from django import template | |
from django.conf import settings | |
register = template.Library() | |
@register.simple_tag | |
def settings_value(name): | |
try: | |
test = settings.__getattr__(name) | |
return test |
This file contains hidden or 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
class PostsController < ActionController::Base | |
def create | |
Post.create(post_params) | |
end | |
def update | |
Post.find(params[:id]).update_attributes!(post_params) | |
end | |
private |
This file contains hidden or 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
rdb:1) where | |
--> #0 AbstractController::Rendering.initialize | |
at line /Users/ryan/.rvm/gems/ruby-1.9.3-p0@r311/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:73 | |
#1 AbstractController::Layouts.initialize | |
at line /Users/ryan/.rvm/gems/ruby-1.9.3-p0@r311/gems/actionpack-3.1.3/lib/abstract_controller/layouts.rb:301 | |
#2 ActionDispatch::Routing::UrlFor.initialize | |
at line /Users/ryan/.rvm/gems/ruby-1.9.3-p0@r311/gems/actionpack-3.1.3/lib/action_dispatch/routing/url_for.rb:103 | |
#3 AbstractController::Rendering.initialize | |
at line /Users/ryan/.rvm/gems/ruby-1.9.3-p0@r311/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:75 |
This file contains hidden or 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
export RVM_SRC=/Users/ryan/.rvm/src/ruby-1.9.3-p0 | |
# get the following here http://rubyforge.org/frs/?group_id=8883 | |
gem install archive-tar-minitar | |
gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=/$RVM_SRC | |
gem install linecache19-0.5.13.gem -- --with-ruby-include=/$RVM_SRC | |
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/$RVM_SRC | |
gem install ruby-debug19-0.11.6.gem -- --with-ruby-include=/$RVM_SRC | |