This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ..="cd .." | |
alias ...="cd ../.." | |
alias h='cd ~' | |
alias c='clear' | |
alias art=artisan | |
alias codecept='vendor/bin/codecept' | |
alias phpspec='vendor/bin/phpspec' | |
alias phpunit='vendor/bin/phpunit' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTS='/etc/apache2/sites-enabled/' | |
for file in `ls $HOSTS` | |
do | |
echo $file | |
cat $HOSTS$file | grep --color -E "ServerName|DocumentRoot" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# From all the Apache sites-enabled conf files, | |
# extract the ServerAlias and ServerName lines. | |
# And for nginx too. | |
find /etc/apache2/sites-enabled/ -name "*.conf" -exec grep -E "ServerName|ServerAlias" {} \; \ | |
| grep -vE '^*\#' | sed -e 's/^[ \t]*//' | grep --color -E "^|ServerName|ServerAlias" \ | |
| awk {'print $2'} | sort | uniq | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script with loop through every commit in the current branch | |
# and run every php file through phpcbf (standard PSR2) | |
# -f to force if there is already a back up (previous filter-branch run) | |
# -d path to a tmpfs mount point | |
# PSR2 Coding Standard | |
# Only PHP files that have been added or modified | |
# Excluding root folders: vendor, libs and dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To decide how many times the test should be run: | |
# perf <n> <url> | |
# | |
# Otherwise simply use | |
# perf <url> | |
DEFAULT_RUN=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f /volumes/users/gaetan.priour/Documents/CheckPHPRFC/diff.txt ]; then | |
echo "PHP RFC has been updated!" | osd_cat -i 1200 -o 3 -d 300 & | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /volumes/users/gaetan.priour/Documents/CheckPHPRFC | |
DATE=`date +"%Y%m%d %H%M"` | |
# Remove all but the last two | |
/bin/ls -1tr rfc* | /usr/bin/head -n -2 | /usr/bin/xargs -d '\n' rm -f -- | |
# Get the page |
Sublime 3200 integrates Git in the gutter, but in a way that ia a little too visible in my taste.
https://www.sublimetext.com/docs/3/color_schemes.html#global_settings-gutter
To make it less visible I modified the different .tmTheme files I use and added:
<key>line_diff_width</key>
<string>1</string>
line_diff_added
NewerOlder