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
#!/usr/bin/env php | |
<?php | |
/** | |
* Wraps the PHP Stack trace of a wab page you are developing for better | |
* visualization | |
* | |
* Recomended usage: | |
* | |
* 1. Open your terminal and run | |
* |
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/sh | |
# Git filter to ignore lines in your files. | |
# | |
# Copyright (c) 2017-2019,2023 Aryel Mota Góis <[email protected]> | |
# | |
# MIT License | |
# | |
# | |
# SETUP: | |
# |
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/sh | |
# Amend the last commit overriding the committer and author info. | |
# | |
# The committer info is forced to be the same as the author's. | |
# | |
# Options: | |
# $1 Overrides date | |
# $2 Overrides name | |
# $3 Overrides email | |
# |
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
#!/usr/bin/env bash | |
# Fix git colors, userful for watch(1) | |
# | |
# @usage watch -c 'git colored <git command>' | |
# @see https://askubuntu.com/questions/967503 for an example of the problem and explanation | |
# run git command and replace all foreground colors to include '0' | |
exec git -c color.ui=always "$@" | sed -r $'s/\033\[([[:digit:]][[:digit:]])m/\033\[0;\\1m/g; s/\033\[m/\033\[0m/g' |
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 | |
/** | |
* This Software is provided "as is" under the terms of the MIT license. | |
* | |
* @link https://opensource.org/licenses/MIT | |
*/ | |
/** | |
* Provides named constants for HTTP protocol status codes and their messages | |
* |
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/sh | |
# Watch your commit history in the terminal. | |
# | |
# The log is scrollable. | |
# | |
# To refresh, you have to press 'q'. To exit, press <Ctrl-c> then press 'q'. | |
# | |
# See git-log-fullest at https://gist.github.com/aryelgois/bcba085572e2786a579d82354ad540f6 | |
while git log-fullest; do :; done |
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/sh | |
# A complete commit log tree for git. | |
p=$(git config --get core.pager) || p=${PAGER:-less} | |
( | |
git log --color=always --format=fuller -1 2>&1 && | |
echo && | |
git log --color=always --all --date-order --decorate --graph --oneline | |
) | $p |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* Automated process to extract SVG Icomoon icons | |
* | |
* Usage: php icomoon-extract.php path/to/icomoon.svg [path/to/destiny/] | |
* | |
* It takes each non-empty <glyph> and outputs into a svg file with one <path>. | |
* It also adds a matrix to resize to 48x48 px, some rectangles to help | |
* positioning, and includes some guides and grid. |
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
#!/usr/bin/env bash | |
# Synchronize local branches with remotes. | |
# | |
# It removes gone branches and fast-forward the others. | |
echo 'Fetching remotes...' | |
git fetch --prune | |
echo | |
BRANCHES=$(git for-each-ref refs/heads/ --format='%(upstream:short):%(refname:short)~%(upstream:track)') |
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
#!/usr/bin/env bash | |
# | |
# Automated creation of major and minor releases | |
# | |
# Usage: release VERSION | |
# | |
# VERSION should be a semver for the next release | |
# | |
# For patch releases (i.e. hotfixes) you need to | |
# do manually |
OlderNewer