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
A random collection of links to tools I come across so I can remember them. | |
Open Source Lightweight Image Viewer: https://imageglass.org |
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
# When using Cmder in Windows and trying to set the startup directory, this works with git bash where "C:\projects" is the target directory | |
sh --login -i "-cur_console:d:C:\projects" |
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
git rm -r --cached . | |
git add . |
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
echo "" | |
echo "******************************" | |
echo "** Running PHP Syntax Check **" | |
echo "******************************" | |
if [ -z "$PHP_BIN" ] | |
then | |
PHP_BIN=php | |
fi |
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
alias svnrefresh='find . -mindepth 1 -maxdepth 3 -name "*.svn" -type d -exec svn up {}/.. \;' |
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
/** | |
* Any Widget As ShortCode | |
* @uses http://digwp.com/2010/04/call-widget-with-shortcode/ | |
*/ | |
function widget($atts) { | |
// Initialize values | |
$instance = null; | |
$id = null; | |
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
find . -name '*.ph*' -not \( -name "*svn*" \) | xargs wc -l |
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
mysqldump -u user -h localhost --no-data -p database > database.sql |
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
find . -type f \( -iname "._*" \) -exec svn delete {} \; | |
find . -type f \( -iname ".DS_*" \) -exec svn delete {} \; |