Operating System Ubuntu 14.04 via Koding.com
Install node.js
sudo apt-get update
sudo apt-get install nodejs
Check node.js version
| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
| # Inspired from https://gist.github.com/faleev/3435377 | |
| # Remove any existing packages: | |
| sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
| # Get the dependencies (Ubuntu Server or headless users): | |
| sudo apt-get update |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools | |
| # install all sdk packages |
| #!/usr/bin/python | |
| # # # # # # # # # # # # # # # # # # # # | |
| # # | |
| # Script was made by Dennis # | |
| # http://stefansundin.com/blog/452 # | |
| # http://pastebin.com/8cw9LHFg # | |
| # # | |
| # # # # # # # # # # # # # # # # # # # # | |
| @echo off | |
| SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for all file types | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
| rem add it for folders | |
| @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
Install 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.
| server { | |
| listen 80; | |
| server_name react.dev; | |
| root /app/react-demo; | |
| location / { | |
| include /etc/nginx/mime.types; | |
| try_files $uri $uri/ /index.html; | |
| } | |
| } |
| var Col = require('react-bootstrap/lib/Col') | |
| var PageHeader = require('react-bootstrap/lib/PageHeader') | |
| var React = require('react') | |
| var Row = require('react-bootstrap/lib/Row') | |
| var {connect} = require('react-redux') | |
| var {reduxForm} = require('redux-form') | |
| var DateInput = require('./DateInput') | |
| var FormField = require('./FormField') | |
| var LoadingButton = require('./LoadingButton') |
| <?php | |
| /** | |
| * PHP's curl extension won't let you pass in strings as multipart file upload bodies; you | |
| * have to direct it at an existing file (either with deprecated @ syntax or the CURLFile | |
| * type). You can use php://temp to get around this for one file, but if you want to upload | |
| * multiple files then you've got a bit more work. | |
| * | |
| * This function manually constructs the multipart request body from strings and injects it | |
| * into the supplied curl handle, with no need to touch the file system. |
| A warning occurred (42 apples) | |
| An error occurred |