Built with Docpress https://github.com/docpress/docpress
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
| $ git log origin/preprod --no-color | grep '^commit' | sed 's#^commit ##' | while read r; do if [ "$(git branch --contains "$r" | wc -l)" == "1" ]; then echo $r; fi; 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
| # Consider compressed/minified JS/CSS files as binary | |
| www/themes/cbi/assets/css/theme.css -diff | |
| www/themes/cbi/assets/js/theme.js -diff |
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 | |
| tail -n 200 -f /var/log/apache2/www.labelleiloise.fr/access.log \ | |
| | grep -vE ".png|.jpg|.gif|.js|.ico|.css|.svg|POST /bms-admin/ajax|.woff2|/php-fpm-status" \ | |
| | egrep --color '^|POST|GET|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|HTTP/1.1" [^2][0-9]{1,2}' | |
| # first egreo regex is for IP Address, | |
| # second is for HTTP reponse codes other than 2xx |
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
| add_filter('document_title_parts', 'filter_title_part'); | |
| function filter_title_part($title) { | |
| $title['title'] = 'Codi ' . $title['title']; | |
| return $title; | |
| } |
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/sh | |
| # | |
| # Automatically adds Redmine task reference to every commit message. | |
| # Ex branch: dev-12345 | |
| # Will result in: | |
| # Refs #12345 [rest of commit message] | |
| # | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME=$(echo $BRANCH_NAME | sed -e 's/dev-//g') # Remove "dev-" part |