If you do not install pip, you can try this link: http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
- install:
easy_install supervisor - configure:
mkdir -p /etc/supervisord/conf.d
| <?php | |
| if(!function_exists('config_path')) | |
| { | |
| /** | |
| * Return the path to config files | |
| * @param null $path | |
| * @return string | |
| */ | |
| function config_path($path=null) |
| sudo -i | |
| cd | |
| apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
| wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
| tar xzvf ImageMagick-6.8.9-1.tar.gz | |
| cd ImageMagick-6.8.9-1/ | |
| ./configure --prefix=/opt/imagemagick-6.8 && make | |
| checkinstall | |
| Try to use below link: |
| ffmpeg -r 25 -qscale 1 -i %05d.morph.jpg output.mp4 | |
| http://www.itforeveryone.co.uk/image-to-video.html | |
| http://superuser.com/questions/624567/ffmpeg-create-a-video-from-images |
If you do not install pip, you can try this link: http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
easy_install supervisormkdir -p /etc/supervisord/conf.dInstall Supervisor with sudo apt-get install supervisor. Ensure it's started with sudo service supervisor restart.
In /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.
This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.
Now update Supervisor with: sudo supervisorctl reread. And start using those changes with: sudo supervisorctl update.
| # source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
| yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
| tar xzvf yasm-1.2.0.tar.gz | |
| cd yasm-1.2.0 |
This gist assumes:
| Rails.application.routes.draw do | |
| get '/(:locale)/products/(:category)/(page/:page).:extension', | |
| :to => 'products#index', | |
| :as => :products, | |
| :constraints => { | |
| :locale => /[a-z]{2}/, | |
| :category => /.+?/, | |
| :page => /\d+/ | |
| }, |
| ##################################### | |
| # 0. SET UP AWS (ASSUMING YOU HAVE ALREADY SET UP AN ACCOUNT) | |
| # CREATE SECURITY GROUP | |
| • In the EC2 Dashboard, click Security Groups, then Create Security Group. | |
| • Enter Name | |
| • Enter Description | |
| • Rules to add: | |
| - HTTP | |
| - SSH |