This file contains hidden or 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
| # Update Package List | |
| apt-get update | |
| # Update System Packages | |
| apt-get -y upgrade | |
| # Force Locale | |
| echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale |
This file contains hidden or 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
| server { | |
| server_name selldev.com; | |
| access_log /home/rajiv/Projects/sellulose/storage/logs/access.log; | |
| error_log /home/rajiv/Projects/sellulose/storage/logs/error.log; | |
| index index.html index.htm index.php; | |
| root /home/rajiv/Projects/sellulose/public; | |
| index index.php index.html; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name ssmi.constrat.in ssmi.constrat.in; | |
| root /home/ubuntu/default/crusher/public; | |
| index index.html index.htm index.php; | |
| charset utf-8; |
This file contains hidden or 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
| apt-get update | |
| apt-get -y upgrade | |
| echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale | |
| locale-gen en_US.UTF-8 | |
| apt-get install -y software-properties-common curl |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Update Package List | |
| apt-get update | |
| # Install Some PPAs | |
| apt-get install -y software-properties-common |
This file contains hidden or 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
| sudo cat > /etc/nginx/fastcgi_params << EOF | |
| fastcgi_param QUERY_STRING \$query_string; | |
| fastcgi_param REQUEST_METHOD \$request_method; | |
| fastcgi_param CONTENT_TYPE \$content_type; | |
| fastcgi_param CONTENT_LENGTH \$content_length; | |
| fastcgi_param SCRIPT_FILENAME \$request_filename; | |
| fastcgi_param SCRIPT_NAME \$fastcgi_script_name; | |
| fastcgi_param REQUEST_URI \$request_uri; | |
| fastcgi_param DOCUMENT_URI \$document_uri; | |
| fastcgi_param DOCUMENT_ROOT \$document_root; |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo apt-get install -y software-properties-common | |
| sudo apt-add-repository ppa:nginx/stable -y | |
| sudo apt-add-repository ppa:rwky/redis -y | |
| sudo apt-add-repository ppa:chris-lea/node.js -y | |
| sudo apt-add-repository ppa:ondrej/php5-5.6 -y |
This file contains hidden or 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
| cat > /etc/nginx/fastcgi_params << EOF | |
| fastcgi_param QUERY_STRING \$query_string; | |
| fastcgi_param REQUEST_METHOD \$request_method; | |
| fastcgi_param CONTENT_TYPE \$content_type; | |
| fastcgi_param CONTENT_LENGTH \$content_length; | |
| fastcgi_param SCRIPT_FILENAME \$request_filename; | |
| fastcgi_param SCRIPT_NAME \$fastcgi_script_name; | |
| fastcgi_param REQUEST_URI \$request_uri; | |
| fastcgi_param DOCUMENT_URI \$document_uri; | |
| fastcgi_param DOCUMENT_ROOT \$document_root; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name example.com www.example.com; | |
| return 301 https://www.example.com$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name example.com www.example.com; |
This file contains hidden or 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
| //http://jsfiddle.net/rajivseelam/HS63T/1/ | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" | |
| }; | |
| }); |
NewerOlder