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 |
| // 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) { /* .. */ } |
| //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(){ |
| #!/bin/sh | |
| # Variables | |
| USER="admin" | |
| PASS="password" | |
| # Assert Root User | |
| SCRIPTUSER=`whoami` | |
| if [ "$SCRIPTUSER" != "root" ] | |
| then |
| --EVAL 'this script' 1 some-key | |
| local key = KEYS[1]; | |
| local value = redis.call('GET', key); | |
| local jvalue = cjson.encode(cmsgpack.unpack(value)); | |
| return jvalue; |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <configSections> | |
| <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | |
| </configSections> | |
| <startup> | |
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
| </startup> | |
| <log4net> | |
| <appender name="UdpAppender" type="log4net.Appender.UdpAppender"> |
| public Page<SampleOption> GetAvailableSampleOptionsFor(int pageNumber, int pageSize, Guid companyId, Guid requirementId, string whereClause, string searchText, string orderBy) | |
| { | |
| // Build our own Paging Count(*) query to use | |
| var countQuery = Sql.Builder.Append(@" | |
| WITH pcr(Id, ParentSampleGroupId, GroupLevel) AS | |
| (SELECT cg.Id, cg.ParentSampleGroupId, 0 as GroupLevel | |
| FROM SampleGroup cg INNER JOIN SampleWidgetGroupLimit l ON l.SampleGroupId = cg.Id | |
| WHERE l.SampleWidgetId = @1 | |
| union all | |
| select np1.Id, np1.ParentSampleGroupId, GroupLevel + 1 |