Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created July 8, 2009 18:44
Show Gist options
  • Save defunkt/143067 to your computer and use it in GitHub Desktop.
Save defunkt/143067 to your computer and use it in GitHub Desktop.

Revisions

  1. defunkt revised this gist Jul 8, 2009. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    # Put this in ~/.bashrc or wherever.
    # If it doesn't work, make sure your ~/.netrc is right
    #
    # (Thanks to @anildigital for curl-fu)
    # (Thanks to @anildigital and @grundprinzip for curl-fu)

    function tweet {
    curl -n -d status="$*" http://twitter.com/statuses/update.xml &> /dev/null
    curl -n -d status="$*" https://twitter.com/statuses/update.xml --insecure &> /dev/null
    echo "tweet'd"
    }
  2. defunkt created this gist Jul 8, 2009.
    11 changes: 11 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # $ tweet Hi mom!
    #
    # Put this in ~/.bashrc or wherever.
    # If it doesn't work, make sure your ~/.netrc is right
    #
    # (Thanks to @anildigital for curl-fu)

    function tweet {
    curl -n -d status="$*" http://twitter.com/statuses/update.xml &> /dev/null
    echo "tweet'd"
    }
    4 changes: 4 additions & 0 deletions .netrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # put this in ~/.netrc
    machine twitter.com
    login USERNAME
    password PASSWORD