One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
comment_lines "Gemfile", /gem 'tzinfo-data'/ | |
generate(:controller, "static index") | |
route "root to: 'static#index'" | |
rails_command("db:migrate") | |
after_bundle do | |
git :init | |
git add: "." | |
git commit: %Q{ -m 'Initial commit' } | |
end |
0x9AF47a39E7Fdb6f9bd870f7665928eb82cEc5C2e |
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'JSON' | |
require 'digest/sha2' | |
require 'pry' | |
require 'bigdecimal' | |
require 'bitcoin' # Because I need to cheat every now and then | |
# Usage: | |
# gem install pry json ffi ruby-bitcoin |
# | |
# Ruby Example of the 'proof of work' explanation | |
# from https://en.bitcoin.it/wiki/Proof_of_work | |
# | |
# note: block data passed to do_work is simplified. | |
# bitcoin blockchain is more complex too. | |
# | |
require 'digest/sha2' |
# | |
# Ruby Example of the 'proof of work' explanation | |
# from https://en.bitcoin.it/wiki/Proof_of_work | |
# | |
# note: block data passed to do_work is simplified. | |
# bitcoin blockchain is more complex too. | |
# | |
require 'digest/sha2' |
require "spec_helper" | |
describe 'Пользователь' do | |
context '#авторизован' do | |
it 'доступно меню настроек' do | |
end | |
it 'есть ссылка на кошелёк' do | |
end | |
end | |
end |
# with sed: | |
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | |
# with sed: | |
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' |
# before_all do | |
run "rm -rf Gemfile" | |
run "touch Gemfile" | |
add_source "https://rubygems.org" | |
after_bundle do | |
gem 'rails', '~> 5.1.1' | |
gem 'pg', '~> 0.18' | |
gem 'puma', '~> 3.7' | |
gem 'sass-rails', '~> 5.0' |