Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| #!/bin/bash | |
| # Checking whether user has enough permission to run this script | |
| sudo -n true | |
| if [ $? -ne 0 ] | |
| then | |
| echo "This script requires user to have passwordless sudo access" | |
| exit | |
| fi |
| Running it locally | |
| If you have Node.js, open a terminal/command prompt in the same directory as this README file, then run: | |
| npm install -g http-server | |
| http-server | |
| ... then browse to http://localhost:8080/ |
| // knockout 2.2.1 | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } | |
| ko.utils.arrayForEach = function (array, action) { /* .. */ } | |
| ko.utils.arrayGetDistinctValues = function (array) { /* .. */ } |
| // knockout 2.2.1 | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } | |
| ko.utils.arrayForEach = function (array, action) { /* .. */ } | |
| ko.utils.arrayGetDistinctValues = function (array) { /* .. */ } |
| <script src="~/Scripts/knockout.mapping-latest.js"></script> | |
| <script type="text/javascript"> | |
| $(function() { | |
| var viewModel = ko.mapping.fromJS(@Html.Raw(Model.ToJson())); | |
| ko.applyBindings(viewModel); | |
| }); | |
| </script> |
| //WelcomeApp: App Container, houses other components | |
| //and creats underlying servicing methods | |
| var WelcomeApp = React.createClass({ | |
| getInitialState: function(){ | |
| return { name: this.props.name }; | |
| }, | |
| handleKeyUp: function(newVal) { | |
| this.setState( {name: newVal } ); | |
| }, | |
| render: function(){ |
| http://webdesign.tutsplus.com/tutorials/how-to-build-an-off-canvas-navigation-layout-with-bootstrap--cms-21991 |
| <nav id="offcanvas" class="navmenu navmenu-inverse navmenu-fixed-right offcanvas navmenu-site" role="navigation"> | |
| <ul class="nav navmenu-nav"> | |
| <li class="dropdown"> | |
| <a href="#" class="dropdown-toggle" data-toggle="dropdown">Tutorials <span class="caret"></span></a> | |
| <ul class="dropdown-menu navmenu-nav"> | |
| <li><a href="#">Design & Illustration</a></li> | |
| <li><a href="#">Code</a></li> | |
| <li><a href="#">Web Design</a></li> | |
| <li><a href="#">Music & Audio</a></li> | |
| <li><a href="#">Photography</a></li> |
| #!/bin/sh | |
| # Variables | |
| USER="admin" | |
| PASS="password" | |
| # Assert Root User | |
| SCRIPTUSER=`whoami` | |
| if [ "$SCRIPTUSER" != "root" ] | |
| then |