Turn on mod rewrite
sudo a2enmod rewrite && sudo service apache2 restart
When using TimThumb make sure GD library is installed
sudo apt-get install php5-gd
Turn on mod rewrite
sudo a2enmod rewrite && sudo service apache2 restart
When using TimThumb make sure GD library is installed
sudo apt-get install php5-gd
To spy a Jquery method:
var spy = spyOn($.fn, 'methodName');
$ sudo apt-get install freetds-bin freetds-common tdsodbc odbcinst php5-odbc unixodbc
$ sudo mv /etc/odbcinst.ini /etc/odbcinst.ini.bak
$ sudo find / -name odbcinst.ini
$ sudo cp /usr/share/tdsodbc/odbcinst.ini /etc/
$ sudo service apache2 restart
Generate key pair for www-data
sudo -u www-data:www-data ssh-keygen -t rsa
Keys will be created in /var/www/.ssh/
Add id_rsa.pub to github deploy keys
All project files and directories to be triggered from github webhook should be owned by www-data user
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |