commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
There are 7 alternatives - vote for the best!
An improvement of the original (at: http://www.commandlinefu.com/commands/view/2872/update-twitter-via-curl) in the sense that you see a "from cURL" under your status message instead of just a "from API" ;-) Twitter automatically links it to the cURL home page.
This version of tweet() doesn't require you to put quotes around the body of your tweet... it also prompts you for password. It will still barf on a '!' character.
Found it on snipt, pok3, is it yours?
I put my user = m33600, the password and the status was my robot message:
Settima robot message: ALARM ZONE 3 (sent via command line).
Now bots may have their identity on twitter...
Type the command in the terminal and press enter to create the tweet() function. Then run as follows:
tweet MyTwitterAccount "My message goes here"
It will prompt you for password. Make sure that you use escape "\" character in message for showing varialbles or markup.
If you can do better, submit your command here.
You must be signed in to comment.
Be carefull not to do that in a multi-user machine, since your password will be visible in the process listing for as long as curl is running.
If you leave out `:pass` (your password), you will be able to enter your password later in a more secure manner.
Also note that you can't use an "!" as bash will error out with
bash: !": event not foundor $history -c once you do that... [of course to clear the hisory]
regarding bash history and security: you can also put a space in front of a command to keep it out of your .bash_history (pressing up won't show it)
curl etc...etc...http://www.commandlinefu.com/commands/view/1512/execute-a-command-without-saving-it-in-the-history
This is resulting in 403 (Forbidden) errors today:
403 Forbidden: The server understood the request, but is refusing to fulfill it.
Note: if cURL not installed, install it (ubuntu) :
sudo apt-get install curl
You can use ! just use 'single quotes'
Just start the command with a space (if it includes your password)so that its not stored in your .bash_history file. its safer that way.
i tried, but i get this answer:
Basic authentication is not supported
Twitter recently removed support for HTTP Basic Auth (requiring OAuth instead) so this command will not work anymore.
See http://dev.twitter.com/announcements
hi,
Basic authentication is no longer supported by @twitter
This generates error "curl -u user:pass -d status="Tweeting from the shell"
Basic authentication is not supported
so is there any other solution?
Basic Auth turned off as of August 2010: http://apiwiki.twitter.com/w/page/22554643/Authentication
scan to bottom
Looks like there is a solution, gotta use OAuth: http://jeffmiller.github.com/2010/05/31/twitter-from-the-command-line-in-python-using-oauth
Basic authentication is not supported
Personally I'm using this mostly bash-based solution: http://blog.yjl.im/2010/05/bash-oauth.html
Here is a working bash script to post to Twitter from the command line on Linux and Mac:
http://360percents.com/posts/command-line-twitter-status-update-for-linux-and-mac/
Anyone know of something similar for identi.ca?