This file contains 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
<?php | |
$number = "\d*(?:\.\d+)?"; // It's a reference to use in other cases that matches any kind of number/float | |
$width = "(?<w>(?:$number)?%?)?"; // This is the first part, the width | |
$height = "(?:x(?<h>(?:$number)?%?))?"; // Here is the height, the same as "width" but starting with an "x" | |
$aspect = "[!><@^]"; // These are the different filters one can use to stretch, shrink, etc. | |
$size = "$width$height"; // To match any size we need width and height at least (aspect comes later) |
This file contains 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 | |
######################################################################## | |
################################ README ################################ | |
######################################################################## | |
# | |
# This script is here to allow the use of "git push prod v1.2.3" commands or similar. | |
# | |
# Push a tag to a bare repository having this file as pre-receive hook, | |
# and you'll be able to deploy directly from command line in your local environment, |
This file contains 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 | |
# Author: Joel Nothman | |
# Optimized by Pierstoval | |
# Under BSD-2 license | |
# See https://github.com/jnothman/git-squash | |
# See https://github.com/Pierstoval/git-squash | |
usage() { | |
echo "" | |
echo Usage: git squash '[-m <commit msg>] [-a|--append] [-f|--full] <base>' |
NewerOlder