Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| The MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
| alias can-haz="sudo apt-get install" | |
| # Autocomplete function | |
| _can-haz() { | |
| cur=`_get_cword` | |
| COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) | |
| return 0 | |
| } | |
| complete -F _can-haz can-haz |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.