Skip to content

Instantly share code, notes, and snippets.

@ahmadvaroqua
Created April 26, 2011 18:51
Show Gist options
  • Save ahmadvaroqua/942852 to your computer and use it in GitHub Desktop.
Save ahmadvaroqua/942852 to your computer and use it in GitHub Desktop.
TimeStream aliases for bash
# Add a new task
tsn ()
{
curl -F "username=yourusername" -F "password=yourpassword" -F "task=$1" http://timestreamapp.com/api/task/add
}
# Get the current task
tsc ()
{
curl -G -d "username=yourusername" -d "password=yourpassword" http://timestreamapp.com/api/task/current
}
# Get the current task time
tst ()
{
curl -G -d "username=yourusername" -d "password=yourpassword" http://timestreamapp.com/api/task/current/time
}
# Adds and commits code but does not push up
gc ()
{
git add .
git commit -m "$(tsc)"
}
# Adds, commits and pushes up code
gcp ()
{
git add .
git commit -m "$(tsc)"
git push origin master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment