View Article.md

Accept bitcoin in website

Bitcoin is a decentralised digital currency which has been growing rapidly in popularity and use. You can send bitcoins to people and businesses around the world quickly, easily, and with much less fees than international wire transfers, PayPal, or Visa, e.t.c.

This is a step-by-step guide, how to accept bitcoin in your website without using the full node or third-party service like blockchain.info or blocktrail.com or any other bitcoin-wallet site.

View update_electrum.sh
#!/bin/bash
# Exit if any errors
set -e
# Working directory
cd "$HOME"
# Check curl command
if ! [ -x "$(command -v curl)" ]; then
View TestnetEthereumNetwork.md

Setup testnet Ethereum network with Docker

Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference.

This is step-by-step guide, how to setup testnet Ethereum network.

We'll setup ethereum testnet node in the docker container and write ruby json-rpc client. The difference between ethereum(Frontier) and testnet ethereum(Ropsten) networks is that the testnet used for development. The genesis block on the testnet was set with a very low difficulty so anyone can do minning. The coins mained in the testnet have no values. You can request some coins on the facuet or trying to mine it.

View PrivateEthereumCluster.md

Setup private Ethereum network with Docker

Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference.

This is a step-by-step guide, how to setup private Ethereum network. 

We’ll set up a network and create two simple JSON-RPC clients in order to communicate with our Ethereum nodes.

View bm.rb
n = 5000
Benchmark.bm do |x|
x.report("pluck: ") { n.times { User.pluck(:id, :name).map { |z| { id: z[0], name: z[1] } }.to_json } }
x.report("select: ") { n.times { User.select(:id, :name).to_json(only: [:id, :name]) } }
end
View rails_rc.rb
# minitest, capistrano, pry
gem_group :development do
gem 'puma'
gem 'capistrano', '2.15.5'
gem 'rvm-capistrano'
gem 'pry-rails', '~> 0.3.2'
end
gem_group :test do
gem 'minitest-rails'
View resolv.rb
#!/usr/bin/env ruby
require 'resolv'
module MailMachine
class Validator
def initialize(name)
@name = name.split('@').last
end
def servers_list
View mailmachine.rb
#!/usr/bin/env ruby
require 'net/smtp'
module MailMachine
class NetSmtp < Net::SMTP
class << self
EXCEPTIONS = [Net::SMTPAuthenticationError,
Net::SMTPServerBusy,
Net::SMTPSyntaxError,
Net::SMTPFatalError,