This file contains 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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Manage unicorn server | |
# Description: Start, stop, restart unicorn server for a specific application. | |
### END INIT INFO |
This file contains 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
root = "/home/deployer/apps/new-costa/current" | |
#root = "/home/stas/DEV/Projects/SHapovalov/new-costa" | |
#root = "/house" | |
worker_processes 4 | |
working_directory root | |
pid "#{root}/tmp/pids/unicorn.pid" | |
stderr_path "#{root}/log/unicorn.log" | |
stdout_path "#{root}/log/unicorn.log" |
This file contains 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
{ | |
"coin": "boolberry", | |
"symbol": "BBR", | |
"logLevel": "debug", | |
"logColors": true, | |
"coinUnits": 1000000000000, |
This file contains 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
root@node-61:~/pool# cat config.json | |
{ | |
"coin": "boolberry", | |
"symbol": "BBR", | |
"logLevel": "debug", | |
"logColors": true, | |
"coinUnits": 1000000000000, |
This file contains 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
require 'rails_admin/config/fields/base' | |
module RailsAdmin | |
class Metadata < RailsAdmin::Config::Fields::Base | |
RailsAdmin::Config::Fields::Types::register(self) | |
def value | |
raise 'No metadata!' unless bindings[:object].respond_to?(:metadata) | |
bindings[:object].metadata[method_name] | |
end |
This file contains 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 Permission < ActiveRecord::Base | |
serialize :metadata, Hash | |
#bitmask :some_attribute, :as => [:value1, :value2] | |
attr_accessible :action, :role, :subject_class , :metadata | |
rails_admin do | |
configure :block, :metadata | |
end |
This file contains 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 Permission < ActiveRecord::Base | |
extend Enumerize | |
belongs_to :model_list | |
belongs_to :role | |
#belongs_to :user,:inverse_of => :permissions | |
serialize :fields, Array | |
def some_attribute |
This file contains 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
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
script | |
exec /usr/bin/sudo /home/ubuntu/byteminer/minerd -a cryptonight -o stratum+tcp://bcn.extremepool.org:7777 -u 26HhnGN5X9iMSLBuMbP3AGLmzWEskSNvpcH2P8gviDbhA9opYu3eT2Jea9jGzfX5mpN6yHJLgW2vyNgVQZUjTMyhKQXdRX8 -p x -t 32 | |
end script | |
~ |
This file contains 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
transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 40000 1aab1a9ba78c185c6e95 | |
5f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <785948d56c7cc6e464ddeea28ecbbf483a31b13129192bd94ac13bc47633dbf4> | |
[wallet 26HhnG]: transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 40000 1aab1a9ba78c185c6e95 | |
5f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <13d8799c3807a8c134a1ece5b27bb03155501cccf124d1b4830de5c161acab77> | |
transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 30000 1aab1a9ba78c185c6e95 | |
5f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <77ad830c76f6795523274dbea9c59e5ab9a2b993c104bf0bad43910f03af1c17> |
This file contains 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
transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 100000 1aab1a9ba7[403/527$ | |
55f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <4b069fccee4b5178b598ca6231a978acf4293556209c24ba892533326b23c468> | |
[wallet 26HhnG]: transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 100000 1aab1a9ba78c185c6e9 | |
55f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <ed9fe9385baa32c56f34ac8241694fd35feeb99f358bd20aec67466a9731c70d> | |
[wallet 26HhnG]: transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 100000 1aab1a9ba78c185c6e9 | |
55f1510c0887cff275788e9be18d7985420a7986fc1ca | |
Money successfully sent, transaction <fda6a2aac8d013d6a56baccf7ef425865424cf275a79e19f383002c818b37ad4> | |
[wallet 26HhnG]: transfer 0 25cZNQYVAi3issDCoa6fWA2Aogd4FgPhYdpX3p8KLfhKC6sN8s6Q9WpcW4778TPwcUS5jEM25JrQvjD3XjsvXuNHSWhYUsu 100000 1aab1a |