First things first !
sudo apt update
sudo apt upgradesudo apt-get install build-essential git| #!/bin/bash | |
| PROJECT=name; | |
| if [[ "$1" == "staging" || "$1" == "production" ]]; then | |
| TARGET=`echo "$1" | tr '[:lower:]' '[:upper:]'`; | |
| read -p "Do you really wish to deploy to $TARGET? [yn] " yn; | |
| if [[ "$yn" != "y" ]]; then |
| web: node server.js |
My environment development after install Linux.
Everytime I format my linux, I need search all tools again Urgh.
So, I decided create a List of Best Things after install Linux, I hope help you too.
I currently use elementary OS 0.3 Freya
Index
| <!-- http://lauragentry.com/blog/2010/07/30/how-to-create-a-wordpress-3-0-multisite-network-on-a-windows-server-using-sub-directories/ --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="WordPress Rule 1" stopProcessing="true"> | |
| <match url="^index\.php$" ignoreCase="false" /> | |
| <action type="None" /> | |
| </rule> |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
| // MIT: http://opensource.org/licenses/MIT | |
| angular.module('app', []); | |
| angular.module('app').controller | |
| ( 'MainCtrl' | |
| , function($scope,$locale) { | |
| $scope.currentYear = new Date().getFullYear() | |
| $scope.currentMonth = new Date().getMonth() + 1 | |
| $scope.months = $locale.DATETIME_FORMATS.MONTH |
| <script> | |
| // fbAsyncInit | |
| // http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/ | |
| window.fbAsyncInit = function() { | |
| // init the FB JS SDK | |
| FB.init({ | |
| appId: '<?php echo(FB_APP_ID); ?>', | |
| status: true, | |
| cookie: true, | |
| xfbml: true, |
| // Facebook SDK | |
| angular.module('facebook', []) | |
| .directive('fb', ['$FB', function($FB) { | |
| return { | |
| restrict: "E", | |
| replace: true, | |
| template: "<div id='fb-root'></div>", | |
| compile: function(tElem, tAttrs) { | |
| return { | |
| post: function(scope, iElem, iAttrs, controller) { |