sudo apt-get update
sudo apt-get install apache2
express -c stylus <project_name>
cd <project_name>
npm install
npm start
{ | |
"providers": [ | |
"Illuminate\\Foundation\\Providers\\ArtisanServiceProvider", | |
"Illuminate\\Auth\\AuthServiceProvider", | |
"Illuminate\\Cache\\CacheServiceProvider", | |
"Illuminate\\Session\\CommandsServiceProvider", | |
"Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider", | |
"Illuminate\\Routing\\ControllerServiceProvider", | |
"Illuminate\\Cookie\\CookieServiceProvider", | |
"Illuminate\\Database\\DatabaseServiceProvider", |
var request = require('request'), default_headers, site_root = 'http://localhost:3000';; | |
default_headers = { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1', | |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', | |
'Accept-Language': 'en-us,en;q=0.5', | |
'Accept-Encoding': 'gzip, deflate', | |
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', | |
// 'Connection': 'keep-alive', | |
'Cache-Control': 'max-age=0' |
Slide 1 | |
Title: Introduction | |
Content: Material Design (codenamed Quantum Paper) is a design language developed by Google. | |
Slide 2 | |
Title: For Mobile | |
Content: Google Android Material design | |
https://developer.android.com/design/material/index.html for android | |
https://github.com/nghialv/MaterialKit for ios | |
0) git status; git diff - review, then git diff with the file names that you have changed for this commit. | |
~ git status | |
~ git diff | |
~ git diff file1 file2 file3 > featurename.patch | |
1) Login to phabricator, go to differential, create diff. | |
2) Upload the patch file, type your repository name, continue |
sudo chown -R $(whoami) ~/.npm | |
sudo chown -R `whoami` /usr/local/lib/node_modules | |
sudo sysctl fs.inotify.max_user_watches=524288 |
//index.js | |
var express = require('express'), | |
app = module.exports = express.createServer(), | |
mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/nodeAuth'); | |
//configure app | |
app.configure(function() { | |
app.set('views', __dirname + '/views'); |
Copy from server to local: | |
scp [email protected]:foobar.txt /some/local/directory | |
scp local/file [email protected]:/var/www |
So, you're done making the website or web-app and now you would wanna distribute it to your clients. Awesome. Let's go ahead and create a package for the same. | |
There are two types of packaging that can be done in laravel: | |
1. VPS | |
2. Shared | |
VPS | |
VPS version is for their own use and local testing. So, you would wanna keep it as close to your local system settings as possible. | |
1. Delete all the files from app/storage/ in the following folders: | |
cache |