Last active
August 29, 2015 14:02
-
-
Save hamecoded/f50b7e14f0c8fe3a8ad9 to your computer and use it in GitHub Desktop.
Revisions
-
hamecoded revised this gist
Nov 21, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -37,3 +37,6 @@ $ npm install -g npm-check-updates $ npm-check-updates -u $ npm install #when "npm update -g bower" fails with EACCES sudo chown -R $USER /usr/local
-
hamecoded revised this gist
Sep 19, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,9 @@ git push --tags # showing a git tag git show 0.0.1 # checking out a tag git checkout 0.0.1 # deleting a git tag git tag -d 0.0.1 -
hamecoded revised this gist
Sep 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ git show 0.0.1 git tag -d 0.0.1 # to override a tag delete it first and then push it fircebly with -f git push origin :refs/tags/0.0.1 # linking tags in markdown for README Tags -
hamecoded revised this gist
Sep 15, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,9 @@ git show 0.0.1 # deleting a git tag git tag -d 0.0.1 # to override a tag delete it first and then push it fircebly with -f git push --tags -f # linking tags in markdown for README Tags ------------------------------------------------------------------------------- -
hamecoded revised this gist
Sep 7, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,3 +14,6 @@ Tags * [tag 0.0.1] - in this tag we've reached the point where we have a server set to our SPA app [tag 0.0.1]:https://github.com/hamecoded/myBlog/tree/0.0.1 # incase shell does not load this key ssh-add ~/.ssh/github_rsa -
hamecoded renamed this gist
Jul 23, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
hamecoded revised this gist
Jul 23, 2014 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # how to kill a locked livereload port ➜ myBlog git:(master) ✗ grunt Running "watch" task Waiting... Fatal error: Port 35729 is already in use by another process. ➜ myBlog git:(master) ✗ lsof -i tcp:35729 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Google 308 odeds 209u IPv4 0xa02f8facf3fa33fd 0t0 TCP localhost:50291->localhost:35729 (ESTABLISHED) node 27569 odeds 12u IPv4 0xa02f8facdaf1f3fd 0t0 TCP *:35729 (LISTEN) node 27569 odeds 15u IPv4 0xa02f8facdaf24be5 0t0 TCP localhost:35729->localhost:50289 (CLOSE_WAIT) node 27569 odeds 16u IPv4 0xa02f8facdb1ec3fd 0t0 TCP localhost:35729->localhost:50291 (ESTABLISHED) ➜ myBlog git:(master) ✗ kill -9 27569 [1] + 27569 killed grunt ➜ myBlog git:(master) ✗ lsof -i tcp:35729 ➜ myBlog git:(master) ✗ -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -23,6 +23,7 @@ npm install grunt-contrib-watch --save-dev npm install grunt-contrib-requirejs --save-dev npm install grunt-contrib-copy --save-dev npm install grunt-contrib-cssmin --save-dev npm install grunt-cache-bust --save-dev npm install --production -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,8 @@ npm install grunt-contrib-compass --save-dev npm install grunt-contrib-watch --save-dev npm install grunt-contrib-requirejs --save-dev npm install grunt-contrib-copy --save-dev npm install grunt-contrib-cssmin --save-dev npm install --production npm update --save -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,7 @@ npm install --save-dev load-grunt-tasks npm install grunt-contrib-compass --save-dev npm install grunt-contrib-watch --save-dev npm install grunt-contrib-requirejs --save-dev npm install grunt-contrib-copy --save-dev npm install --production npm update --save -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,9 @@ brew upgrade node # install a module globally to be used as a cli module # make sure shell path is updated to include the global /usr/local/lib/node_modules npm install -g jshint # example .jshintrc file https://github.com/jshint/jshint/blob/master/examples/.jshintrc http://www.jshint.com/docs/ # install a dev dependency that will automatically load all modules npm install --save-dev load-grunt-tasks -
hamecoded revised this gist
Jun 14, 2014 . 2 changed files with 32 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ # Homebrew node install brew install node which node /usr/local/bin/node # which is a symlink to /usr/local/Cellar/node/0.10.26/bin/node brew upgrade node # install a module globally to be used as a cli module # make sure shell path is updated to include the global /usr/local/lib/node_modules npm install -g jshint # install a dev dependency that will automatically load all modules npm install --save-dev load-grunt-tasks npm install grunt-contrib-compass --save-dev npm install grunt-contrib-watch --save-dev npm install grunt-contrib-requirejs --save-dev npm install --production npm update --save # remove removed packages node prune # update package.json to latest version $ npm install -g npm-check-updates $ npm-check-updates -u $ npm install -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ # install a dev dependency that will automatically load all modules npm install --save-dev load-grunt-tasks -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ # adding a git tag git tag -a 0.0.1 -m "create a SPA server" git push --tags @@ -8,3 +7,10 @@ git show 0.0.1 # deleting a git tag git tag -d 0.0.1 # linking tags in markdown for README Tags ------------------------------------------------------------------------------- * [tag 0.0.1] - in this tag we've reached the point where we have a server set to our SPA app [tag 0.0.1]:https://github.com/hamecoded/myBlog/tree/0.0.1 -
hamecoded revised this gist
Jun 14, 2014 . 2 changed files with 10 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # adding a git tag git tag -a 0.0.1 -m "create a SPA server" git push --tags # showing a git tag git show 0.0.1 # deleting a git tag git tag -d 0.0.1 -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ git tag -a 0.0.1 -m "create a SPA server" git push --tags -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,8 @@ * for handling browser refresh * a more complicate solution using standard modules can be found here: * https://coderwall.com/p/b2kmkg * an interesting discussion: * http://stackoverflow.com/questions/7268033/basic-static-file-server-in-nodejs */ var express = require('express'), app = express(); @@ -15,4 +17,6 @@ app.get('*', function (req, res) { res.sendfile(__dirname + '/public/index.html'); }); var server = app.listen(process.env.PORT || 8088, function() { console.log('Listening on port %d', server.address().port); }); -
hamecoded revised this gist
Jun 14, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,8 @@ * we use express to simplify handling of static files * whilst directing all paths to main index.html * for handling browser refresh * a more complicate solution using standard modules can be found here: * https://coderwall.com/p/b2kmkg */ var express = require('express'), app = express(); -
hamecoded created this gist
Jun 14, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /** * An express server to serve a SPA app * we use express to simplify handling of static files * whilst directing all paths to main index.html * for handling browser refresh */ var express = require('express'), app = express(); app.use(express.static(__dirname + '/public')); app.get('*', function (req, res) { res.sendfile(__dirname + '/public/index.html'); }); app.listen(process.env.PORT || 8088);