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
| @justice = Justice.all | |
| Item.delete_all | |
| @justice.each do |j| | |
| #Item.where("date < date(?)", 1.days.ago).where(:justice_id=>j.id).destroy_all | |
| begin | |
| params = {'q_court_id' => j[:q_court_id] } | |
| x = Net::HTTP.post_form(URI.parse(j[:url]), params) | |
| result = JSON.parse(x.body) | |
| rescue => e | |
| pust "error = #{e.message}" |
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
| sudo apt-get install -y build-essential automake m4 libssl-dev libcurl4-openssl-dev libgmp-dev git | |
| cd | |
| git clone https://github.com/MiniblockchainProject/CudaMiner | |
| cd CudaMiner | |
| sed -i 's/compute_35/compute_30/' Makefile.am | |
| chmod +x autogen.sh | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" | |
| make -j 8 |
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
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| script | |
| exec /usr/bin/sudo /home/stas/DEV/Coins/boolberry/build/release/src/boolbd --start-mining=1FUtZJ9Ao8qg1MiNa6RfRJKY4aFH885wD13Lf6U7xL4FS58f7i6CYL58s8dg2aV8maRzzaQG1c1kCTMDw8LKAEG5LQsW7M8 --mining-threads=2 | |
| end script |
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
| 2014-Aug-06 23:07:30.291576 Boolberry v0.2.0.24(1ada156) | |
| 2014-Aug-06 23:07:30.291665 Module folder: /home/stas/DEV/Coins/boolberry/build/release/src/boolbd | |
| 2014-Aug-06 23:07:30.292172 Initializing p2p server... | |
| 2014-Aug-06 23:07:30.292578 Binding on 0.0.0.0:10101 | |
| 2014-Aug-06 23:07:30.292738 Net service binded on 0.0.0.0:10101 | |
| 2014-Aug-06 23:07:30.292797 P2p server initialized OK on port: 10101 | |
| 2014-Aug-06 23:07:30.292842 Starting UPnP | |
| 2014-Aug-06 23:07:30.292883 Initializing currency protocol... | |
| 2014-Aug-06 23:07:30.292925 Currency protocol initialized OK | |
| 2014-Aug-06 23:07:30.292967 Initializing core rpc server... |
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
| def process(self, image): | |
| font1 = logoimg = os.path.join(settings.MEDIA_ROOT, "fonts/KOKILAB.TTF") | |
| (x,y) = image.size | |
| font = ImageFont.truetype(font1, x/6) | |
| logoim = Image.new('RGBA', (x, y), (0,0,0,0)) # Create a blank image | |
| draw = ImageDraw.Draw(logoim) | |
| draw.text((0,0), 'DOROHOUSE', font=font,fill=(0, 0, 0, 75)) | |
| new = logoim.resize((x,y),Image.NEAREST) |
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
| # encoding: utf-8 | |
| #require 'carrierwave/processing/mini_magick' | |
| require 'carrierwave/processing/rmagick' | |
| class AdditionalImageUploader < CarrierWave::Uploader::Base | |
| include CarrierWave::RMagick | |
| #include CarrierWave::MiniMagick | |
| # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility: | |
| include Sprockets::Helpers::RailsHelper |
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
| 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 |
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
| 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 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
| 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 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 Permission < ActiveRecord::Base | |
| extend Enumerize | |
| belongs_to :model_list | |
| belongs_to :role | |
| #belongs_to :user,:inverse_of => :permissions | |
| serialize :fields, Array | |
| def some_attribute |