rails generate migration DropTablename
A file will be created, in the db > migrate folder, make sure it looks like:
| Run this command to install MG-CLI: | |
| sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
| to start miner (4 cores for BCN) use this command: | |
| minergate-cli -user <[email protected]> -bcn 4 | |
| Feel free to send some of your earnings to me: | |
| BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |
Initialize the droplet with dokku app pre-setup
Create droplet of your liking (ubuntu 12.04 x32) Use an xx.04 LTS version
On Digital Ocean, create a DNS entry for your server (xyz.com)
Make sure it has NS records that use digital oceans nameservers
| def render | |
| pdf = Prawn::Document | |
| pdf.image StringIO.new(Base64.decode64(splitBase64(BASE64_IMAGE_GOES_HERE)[:data])), at: [10, cursor - 50], width: 200, height: 125 | |
| end | |
| def splitBase64(uri) | |
| if uri.match(%r{^data:(.*?);(.*?),(.*)$}) | |
| return { | |
| type: $1, # "image/png" | |
| encoder: $2, # "base64" |
| Rails.application.configure do | |
| config.cache_classes = true | |
| config.eager_load = true | |
| config.consider_all_requests_local = false | |
| config.action_controller.perform_caching = true | |
| config.serve_static_files = false | |
| config.assets.js_compressor = :uglifier | |
| config.assets.compile = false |