Making git a bit easier on me
Submitted by CrashTest_ on Thu, 12/03/2009 - 13:09
So lately I have been having all kinds of issues forgetting to do a git pull before doing a git push. Decided to make sure that doesn't happen any more.
#!/bin/bash
# This little script just makes it easier to do all of the git things I do all at once,
# so instead of typing git add file1.fl file2.fl etc, then git pull, then
# git commit -m "blah blah blah", this let's me just type:
# gp "My commit message" all.my files.etc
args=("$@")
if [[ ${args[0]} == '--help' || ${args[0]} == '-h' || ${args[0]} == '/?' ]]; then
echo "Usage: gp "Your commit message in quotes" filetocommit.ext file2tocommit.ext etcToCommit.ext"
exit
fi
for (( i=1; i<$#;i++)); do
git add ${args[i]}
done
git commit -m "${args[0]}"
git pull
git pushSetting up pdftotext and search_files on a shared host (Bluehost)
Submitted by CrashTest_ on Sat, 07/26/2008 - 04:25
So this week I had to get search_files module for Drupal 6 running on a shared host, Bluehost, for one of my customers. I had promised that we would be able to search his PDF files, but I didn't realize that search_files, as well as search_attachments modules require a Linux command line utility named pdftotext to be installed.
I did request that Bluehost install it on my box and was told that anything requiring root access wasn't going to happen.
Fine, maybe I can run it myself, after all, I did get SVN running on Bluehost, how hard could it be?
VirtualBox OSE on Kubuntu
Submitted by CrashTest_ on Fri, 07/18/2008 - 15:56


