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
ororo@S10611:~$ ps aux | grep ffmpeg | |
ororo 18266 0.0 0.0 4300 608 ? S 17:04 0:00 sh -c ffmpeg -y -i "/home/ororo/repo/releases/20140325121613/public/uploads/video/file/17385/Man.vs.Wild.S02E06.Scotland.mkv" -b:v 1500k -vcodec libvpx -acodec libvorbis -ab 160k -ac 2 -g 30 "/home/ororo/repo/releases/20140325121613/public/uploads/video/file/17385/Man.vs.Wild.S02E06.Scotland.webm" | |
ororo 18269 102 0.1 1330456 61208 ? Rl 17:04 7:10 ffmpeg -y -i /home/ororo/repo/releases/20140325121613/public/uploads/video/file/17385/Man.vs.Wild.S02E06.Scotland.mkv -b:v 1500k -vcodec libvpx -acodec libvorbis -ab 160k -ac 2 -g 30 /home/ororo/repo/releases/20140325121613/public/uploads/video/file/17385/Man.vs.Wild.S02E06.Scotland.webm | |
ororo 18381 0.0 0.0 4300 612 ? S 17:05 0:00 sh -c ffmpeg -y -i "/home/ororo/repo/releases/20140325121613/public/uploads/video/file/17386/Man.vs.Wild.S03E01_-_Sahara.avi" -b:v 1500k -vcodec libvpx -acodec libvorbis -ab 160k -ac 2 -g 30 "/home/ororo/ |
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
# Bob answers 'Sure.' if you ask him a question. | |
# He answers 'Woah, chill out!' if you yell at him (ALL CAPS). | |
# He says 'Fine. Be that way!' if you address him without actually saying anything. | |
# He answers 'Whatever.' to anything else. | |
class Bob | |
def hey(phrase) | |
responses.fetch(Phrase.new(phrase).type, 'Whatever.') | |
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
echo "* Updating system" | |
apt-get update | |
apt-get -y upgrade | |
echo "* Installing packages" | |
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
id -u deploy &> /dev/null | |
if [ $? -ne 0 ] | |
then |
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
#encoding: utf-8 | |
class ShowsController < ApplicationController | |
def index | |
@shows = Show.all | |
end | |
def show | |
@show = Show.find(params[:id]) |
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
rvm 1.14.7 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
[Thu, 26 Jul 2012 17:28:17 +0200] INFO: bash[RVM Multi-User installing] ran successfully | |
[Thu, 26 Jul 2012 17:28:17 +0200] INFO: Processing bash[Updating rvm] action run (install_rvm_with_ruby_stable::default line 17) | |
RVM reloaded! | |
[Thu, 26 Jul 2012 17:28:18 +0200] INFO: bash[Updating rvm] ran successfully | |
[Thu, 26 Jul 2012 17:28:18 +0200] INFO: Processing bash[Installing 1.8.7] action run (install_rvm_with_ruby_stable::default line 23) | |
Already installed ruby-1.8.7-p370. | |
To reinstall use: |
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
node['packages'].each do |package_name| | |
package package_name | |
end | |
bash "RVM Multi-User installing" do | |
code "sudo curl -L https://get.rvm.io | sudo bash -s stable" | |
end | |
bash "Updating rvm" do | |
code "#{node['rvm_bin']} get head" |
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
node['packages'].each do |package_name| | |
package package_name | |
end | |
bash "RVM Multi-User installing" do | |
code "sudo curl -L https://get.rvm.io | sudo bash -s stable" | |
end | |
bash "Updating rvm" do | |
code "#{node['rvm_bin']} get head" |
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 'bundler/capistrano' | |
server '5.9.59.102', :web, :app, :db, primary: true | |
set :deploy_via, :remote_cache | |
set :scm, :git | |
set :repository, 'git://github.com/valachi/mystore.git' | |
set :deploy_to, '~' | |
set :user, 'mystore' | |
set :use_sudo, :false |
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
aLoading development environment (Rails 3.2.8) | |
1.9.3p194 :001 > art = Art.first | |
Art Load (0.4ms) SELECT `arts`.* FROM `arts` LIMIT 1 | |
=> #<Art id: 3, image: "06_wallpaper.jpg", title: "Клипарт", desc: "Недорогой клипарт от nicegirls", created_at: "2012-09-26 07:38:12", updated_at: "2012-09-26 07:38:12"> | |
1.9.3p194 :002 > helper.image_tag art.image | |
=> "<img alt=\"06_wallpaper\" src=\"/uploads/art/image/3/06_wallpaper.jpg\" />" | |
1.9.3p194 :003 > helper.image_tag art.image.url | |
=> "<img alt=\"06_wallpaper\" src=\"/uploads/art/image/3/06_wallpaper.jpg\" />" | |
1.9.3p194 :004 > helper.image_tag art.image.thumb | |
=> "<img alt=\"Thumb_06_wallpaper\" src=\"/uploads/art/image/3/thumb_06_wallpaper.jpg\" />" |
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
$ -> | |
return unless $('#uploads').length | |
queue = do -> | |
data = [] | |
current = 0 | |
uploading = false | |
{ | |
add: (item) -> |
OlderNewer