##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
| $('*[placeholder]').val(function () { return $(this).prop('placeholder')}); | |
| $(document).on('focus', '[placeholder]',function(){ | |
| $(this).val() == $(this).prop('placeholder') ? $(this).val('') : ''; | |
| }); | |
| $(document).on('blur', '[placeholder]',function(){ | |
| $(this).val() == '' ? $(this).val($(this).prop('placeholder')) : ''; | |
| }); |
| git add . | |
| git commit -m "message" | |
| git show --pretty="format:" --name-only | |
| git push | |
| delete: git rm -r filename | |
| - Create a repository | |
| git init <repo-name> | |
| git clone <url> <directory-name> |
| var isChrome = navigator.userAgent.indexOf('Chrome') > -1, | |
| isFireFox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1, | |
| isSafari = navigator.userAgent.indexOf('Safari') > -1, | |
| isIE = navigator.appName.indexOf('Internet Explorer')!=-1, | |
| isIE7 = navigator.appVersion.indexOf("MSIE 7.") != -1, | |
| isIE8 = navigator.appVersion.indexOf("MSIE 8.") != -1; | |
| if ((isChrome)&&(isSafari)) {isSafari=false;} | |
| /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? isTabletMobile = true : isTabletMobile = false; | |
| /iPad/i.test(navigator.userAgent) ? isTablet = true : isTablet = false; |
| $(document).click(function(e) { | |
| if( !$(e.target).closest('.tooltip-wrapper').length ) { | |
| if( $('.tooltip').hasClass('active') ) { | |
| $('.tooltip').hide(); | |
| } | |
| } | |
| }); |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
| # | |
| # This is the main Apache HTTP server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
| # In particular, see | |
| # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
| # for a discussion of each configuration directive. | |
| # | |
| # Do NOT simply read the instructions in here without understanding | |
| # what they do. They're here only as hints or reminders. If you are unsure |
| # Settings for user home directories | |
| # | |
| # Required module: mod_authz_core, mod_authz_host, mod_userdir | |
| # | |
| # UserDir: The name of the directory that is appended onto a user's home | |
| # directory if a ~user request is received. Note that you must also set | |
| # the default access control for these directories, as in the example below. | |
| # | |
| UserDir Sites |
| <Directory "/Users/username/Sites/"> | |
| Options Indexes MultiViews | |
| AllowOverride All | |
| Options +FollowSymLinks | |
| Require all granted | |
| Allow from all | |
| </Directory> |
| [PHP] | |
| detect_unicode = Off | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
| git reset --hard | |
| branches: | |
| git branch | |
| git checkout -b [branch-name] | |
| git checkout [branch-name] | |
| git branch -D [branch-name] | |
| // setup | |
| - fork repo |