See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| /** | |
| * Convert a multi-dimensional array into a single-dimensional array. | |
| * @author Sean Cannon, LitmusBox.com | seanc@litmusbox.com | |
| * @param array $array The multi-dimensional array. | |
| * @return array | |
| */ | |
| function array_flatten($array) { | |
| if (!is_array($array)) { |
| # https://stevenharman.net/git-clean-delete-already-merged-branches | |
| BRANCH_NAME=$1 | |
| $ git branch --merged BRANCH_NAME | grep -v "\* BRANCH_NAME" | xargs -n 1 git branch -d |
| # Cloning our fork | |
| $ git clone git clone git@github.com:ifad/rest-client.git | |
| # Adding (as "endel") the repo from we want to cherry-pick | |
| $ git remote add endel git://github.com/endel/rest-client.git | |
| # Fetch their branches | |
| $ git fetch endel | |
| # List their commits |
| hidutil property --set '{"UserKeyMapping":[ | |
| {"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x70000002A}, | |
| {"HIDKeyboardModifierMappingSrc":0x7000000E7,"HIDKeyboardModifierMappingDst":0x7000000E6}, | |
| {"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x7000000E7} | |
| ]}' |
##Create an alias to MAMP's PHP installation
To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.
Within the terminal, run:
nano ~/.zshrc
This will open nano with the contents, at the top in a blank line add the following line:
| const date1 = new Date("06/30/2019"); | |
| const date2 = new Date("07/30/2019"); | |
| // To calculate the time difference of two dates | |
| const differenceInTime = date2.getTime() - date1.getTime(); | |
| // To calculate the no. of days between two dates | |
| const differenceInDays = differenceInTime / (1000 * 3600 * 24); |
autoconf via brew install autoconf and brew install m4 and xcode-select --install.cd /Applications/MAMP/bin/php/php*.*.*/bin,./pecl config-set php_ini /Applications/MAMP/bin/php/php7.4.12/conf/php.ini./pecl install redis for default version or ./pecl install redis-3.1.2 for special version.| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC] | |
| RewriteRule !^subdir/ /subdir%{REQUEST_URI} [L,NC] |
| brew install smartmontools | |
| diskutil list | |
| smartctl -a disk0 |