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
vendor/bin/phpcs -w | |
vendor/bin/phpmd ./ text phpmd.xml.dist | |
vendor/bin/phpcpd --exclude=vendor/ --progress ./ | |
vendor/bin/php-cs-fixer fix --dry-run |
#!/bin/sh | |
#Colours | |
red="\033[00;31m" | |
RED="\033[01;31m" | |
green="\033[00;32m" | |
GREEN="\033[01;32m" | |
yellow="\033[00;33m" |
<?php | |
$hosts = [ | |
[ | |
'name' => 'host1', | |
'folder' => '/var/www/host1/', | |
'git' => '/var/www/host1/.git', | |
], | |
[ | |
'name' => 'host2', | |
'folder' => '/var/www/host2/', |
#!/bin/sh | |
# Colours | |
red="\033[00;31m" | |
RED="\033[01;31m" | |
green="\033[00;32m" | |
GREEN="\033[01;32m" | |
yellow="\033[00;33m" |
[core] | |
quotepath = false | |
editor = nano | |
autocrlf = input | |
excludesfile = /Users/username/.gitignore_global | |
[user] | |
name = username | |
email = [email protected] | |
[alias] | |
ap = add -p |
*~ | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db |
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' |
# full diff | |
git diff <SHA1> <SHA1> -- `find . -name '<pattern>'` | |
# only file names | |
git diff <SHA1> <SHA1> --name-status -- `find . -name '<pattern>'` |
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
#!/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 |