Michal Hrušecký

...about me, Linux and OpenSource

openSUSE Paste

openSUSE PasteDo you also feel that Hackweek is nearby? So many people will be working together on so many interesting stuff. And when you are working in large groups around the world, sometimes you need to talk about code snippets. And then you use something like pastebin.com. But there are many similar services on the web. And I already encounter on openSUSE IRC people using for example fpaste.org. So why don't we have some paste thing to show that we are the openSUSE guys and girls? My guess is that nobody cared enough to create other one then opensuse.pastebin.com. But I was part of the Umbrella team, so I want to have everything nicely integrated... So here I come with openSUSE Paste.

It is basically Open Source software called Stikked. I just downloaded it, configured it and make it fit to our Bento theme. Currently it is hosted on my webserver only, but I'll try to get some nice opensuse.org name for it. I'll also publish source code adapted to Bento theme once I figure out how to create a repository on gitorious.org face-smile-big.png

Just one nice tip at the end. If you want to use it frequently, add following to your .profile

SUSEPASTE='curl -v -F "code=<-" -F "name=`whoami`" '
SUSEPASTE="$SUSEPASTE -F \"submit=submit\" -F \"lang=text\" "
SUSEPASTE="$SUSEPASTE http://paste.michal.hrusecky.net "
SUSEPASTE="$SUSEPASTE 2>&1 | grep Location "
alias susepaste="$SUSEPASTE"

Then you can use it like this:

$ dmesg | susepaste
< Location: http://paste.michal.hrusecky.net/index.php/view/33355419

So try it, play with it, and any comments are welcome (and once I publish the code, contributions too)

openSUSE Paste

UPDATE: Public git repository with sources available on http://gitorious.org/opensuse/paste

#1 Re: openSUSE Paste

Fisiu, <E-Mail> / Thursday 03 June 2010 8:14pm  
avatar

Great idea!
Any chance to keep pasties forever? Now 1 month is max.

[ Reply (1) ]

#1.1 Re: Re: openSUSE Paste

Michal Hrušecký, <E-Mail> / Friday 04 June 2010 10:34am  
avatar

Well, it was possible, I disabled that as typically you need pasties for a few hours (IRC) or few day (e-mails). I think that for permanent things, there are webhostings... Currently it's only temporally running on my server, so forever wouldn't be really forever anyway. But before it will get some real place, we can discuss if it makes sense to have pasties forever (or maybe just add options for years, that's pretty forever). And of course, this will be also up to whoever will be taking care of that server (whether keeping something really old makes sense).

[ Reply (0) ]

#2 Re: openSUSE Paste

Marcus Moeller, <E-Mail> / Sunday 06 June 2010 7:18pm  
avatar

Could we perhaps make this a bit more official, e.g. paste.opensuse.org?

Best Regards
Marcus

[ Reply (0) ]

Leave a Comment

Write the captcha code you are seeing.

Comment XML feeds: RSS | Atom

openSUSE Conference 2010

Identica

Ohloh Journal for Michal Hrušecký

  • Finally pushed Affisix version that supports variables in the way I'm satisfied with. Time to get back to the documentation fixing ;-)
    4 days ago :: link
  • Article about Affisix was acceptet for ITAT 2010! Time to fix everything that reviewers complained about!
    71 days ago :: link
  • Abstract for ITAT2020 about Affisix sent, working on the article now...
    101 days ago :: link
  • Just commited basit filter mode support to the Affisix repository. It is still missing a lot of features, but the basics are already there!
    127 days ago :: link
  • One more note about affisix - backward entropy works now as well. So after school exams, I can start implementing new features and fixing broken ones...
    194 days ago :: link

Emblems

Powered By Jaws Project
Supports RSS2
Supports Atom
Powered By openSUSE
Powered By Vim
Is Valid XHTML
Is Valid CSS
Is Valid RSS2