Create notify script:
sudo vi /usr/local/bin/notify
with content:
#!/usr/bin/osascript
| // Copyright (c) 2015, Brad Conte (http://bradconte.com) | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above copyright | |
| // notice, this list of conditions and the following disclaimer in the | |
| // documentation and/or other materials provided with the distribution. |
| # Simple Laravel 8+ versioning | |
| Based on [this article](https://dev.to/dalelantowork/laravel-8-api-versioning-4e8) that contains outdated information. | |
| We will have endpoints like this: | |
| ``` | |
| https://site.test/api/v1/hello | |
| https://site.test/api/v2/hello | |
| ``` |
| [xdebug] | |
| zend_extension="xdebug.so" | |
| xdebug.remote_enable = 1 | |
| xdebug.remote_host = localhost | |
| xdebug.remote_port = 9000 | |
| xdebug.remote_autostart = 1 | |
| ;xdebug.remote_connect_back = 1 | |
| ;xdebug.remote_handler = dbgp |
| #!/bin/bash | |
| ## Automatically generate a file with git branch and revision info | |
| ## | |
| ## Example: | |
| ## [master]v2.0.0-beta-191(a830382) | |
| ## Install: | |
| ## cp git-create-revisioninfo-hook.sh .git/hooks/post-commit | |
| ## cp git-create-revisioninfo-hook.sh .git/hooks/post-checkout | |
| ## cp git-create-revisioninfo-hook.sh .git/hooks/post-merge |
https://www.colinodell.com/blog/201808/automatically-switch-php-version-cd
Create folder and symlink:
sudo mkdir /usr/alternatives
sudo ln -s /Users/yourname/.php /usr/alternatives/php
| # full diff | |
| git diff <SHA1> <SHA1> -- `find . -name '<pattern>'` | |
| # only file names | |
| git diff <SHA1> <SHA1> --name-status -- `find . -name '<pattern>'` |
| https://serverfault.com/questions/375525/can-you-have-more-than-one-ssh-config-file | |
| alias compile-ssh-config='echo -n > ~/.ssh/config && cat ~/.ssh/*.config > ~/.ssh/config' |
| *~ | |
| # OS generated files # | |
| ###################### | |
| .DS_Store | |
| .DS_Store? | |
| ._* | |
| .Spotlight-V100 | |
| .Trashes | |
| ehthumbs.db |
| [core] | |
| quotepath = false | |
| editor = nano | |
| autocrlf = input | |
| excludesfile = /Users/username/.gitignore_global | |
| [user] | |
| name = username | |
| email = user@email.local | |
| [alias] | |
| ap = add -p |