tweet from bash a better alternative!

TSo yesterday I spent a good while looking for options that didn’t require me to memorize a huge long string just to post to twitter, and I thought I had found one until I realized that nope, that only works if your in the same bash session and won’t still be there after a reboot or even just a new terminal window.

So trial and error and I have the solution!

in a terminal window go to /usr/local/bin

[codesyntax lang="bash" lines="no"]

[/codesyntax]

then make a file called twitter

[codesyntax lang="bash" lines="no"]

touch twitter

[/codesyntax]

then open it

[codesyntax lang="bash" lines="no"]

nano twitter

[/codesyntax]

and add this command replacing username and password with YOUR twitter account info

[codesyntax lang="bash" lines="no"]
curl –basic –user “username:password” –data-ascii “status=echo $@|tr ' ' '+'” “http://twitter.com/statuses/update.json”
[/codesyntax]
——–EDIT!———
I can’t believe I didn’t tell you how to actually post! It’s simple, in your terminal window, just enter
[codesyntax lang="bash" lines="no"]
twitter “Your message goes between the double quotes @danstinebaugh”
[/codesyntax]
That’s it!

tweet from bash

first open your favorite terminal emulator (I prefer terminator) and enter in this command

[codesyntax lang="bash" lines="no"]

tweet(){ curl -u “$1″ -d status=”$2″ “http://twitter.com/statuses/update.xml”; }

[/codesyntax]

then just simply tweet your message using the following format

$ tweet username “Your Message is in quotes”

Really, it’s just that simple!

There’s ton’s more tricks like this over at Commandlinefu.com which is where I picked up this little jem!

http://www.commandlinefu.com/commands/view/3165/update-twitter-via-curl-as-function

Screenlets make for a beautiful and informational desktop

So I just installed screenlets and have modified my .conkyrc file to provide a minimal, beautiful desktop if I do say so myself.

I’m running ubuntu 9.10 on my laptop and am using the “deep” theme for the wallpaper clock.

Here’s what it looks like:

and if you want my very minimal .conkyrc file here’s that:

[codesyntax lang="bash" lines="no"]

use_xft yes
xftfont verdana:size=8
alignment top_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_shade_color black
default_outline_color black
default_color 102b45
use_spacer none
no_buffers yes
uppercase no
color1 F8DF58

TEXT

${loadgraph 20,245 2f5c85 FFFFFF -l -t}
${alignr}${loadavg 1}/${loadavg 2}/${loadavg 3}

[/codesyntax]

Be glad your a linux user! Openness is beautiful!

Some quick OS Wallpapers

So it’s been a very long week, and I just wanted a few things to look prettier as I’ve been staring at them for so long. Mostly my computers.

So I cracked into my old habit of photoshop and made a few simple, black, glassy wallpapers for my main 3 (don’t worry a special debian version is comeing up soon!) so here they are in no special order:

crunchbang linux

crunchbang with title
crunchbang linux no title

Windows 7:

windows 7 - normal
windows 7 with a large shadow

and more linux ubuntu this time:

ubuntu linux

I figured being I used the ubuntu font I should at least do one for them as well :)

feel free to download and share, as long as you leave atribution to my by providing a link back to this site.

Creative Commons License
OS Wallpapers by Daniel Stinebaugh is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Based on a work at stinebaugh.info.

And just to show off what it looks like on my system, here’s a screenshot:

QR Codes

First off what are they?! (see the footer for mine)

here’s the QR Code for this page:

What that does is (if your mobile phone supports it) will send you to this page, on your mobile device, just by taking a photo of it on your camera, or using a dedicated program like QuickMark which is what I use on my HTC Touch Pro. (They have a free and you can purchase it for more featues, but I find the free version does what I need it to, as well as generate a QR Code for your contact list if you need to share a number this makes it worlds easier!)

So I’ve also added one at the footer, so if your browsing a page, that you want to view in your mobile device just snap a picture and your off and running!  I’ll also start doing them for item’s that I will be making available for download.

It’s taken off in china, you can find stickers, codes on billboards (I did see one in San Francisco but it was too small to get while driving.) I even have a sweatshirt that I made for my old mobile site so get on the QR Code bandwagon and ride!