GIT: Useful Scripts

Need some useful and handy scripts for your daily git work? See this http://github.com/jwiegley/git-scripts/tree/master

Kenai.com soon with git?

Everybody has heard about Sun’s new code forge platform Project Kenai [1]. Kenai provides two diffrents SCM systems: SVN and Mercurial. But this seems not to be enought, the community asks for GIT [2].

[1] http://kenai.com/
[2] http://kenai.uservoice.com/pages/general

GIT: Convert a SVN into GIT repo

If you like to convert your SVN repo into a GIT bare repo, it is simple like that. I normally just take the trunk directory of the SVN repo:

git-svn clone <url>/trunk /tmp/git-temp
git clone --bare /tmp/git-temp /pub/scm/<yourproject>.git
rm -rf /tmp/git-temp

KeepVid - downloads streaming videos

Mit dem Dienst [1| können Streaming Videos als .flv oder .mp4 (ohne Browserplugins) downloaden.

Hint: Den Button in die Lesenzeichensymboleiste ziehen, danach kann man während man auf Youtube ein Video anschaut, auf das Lesezeichen klicken und schon, kann man das Vid downloaden. Nice.

[1] http://keepvid.com

Why SVN sucks

I started using SCM with Subversion (SVN) [1] years ago and was quite happy with it. There were some quirks like:

  • the .svn directory in every directory
  • branching is in most cases senseless, it starts a complete new independent tree. You can not really merge! (See also “Subversion merge reintegrate” [2])
  • I like to develop my projects in the train, airplane, parks, restaurants. But SVN must have network support if you want commit. Of course you can install SVN locally and commit to there but what about other team members? It makes more troubles than anything else… So i just made huge commits most of the time.

but I said to myself, you will not find a piece of software which fits into my needs, right?

Few weeks ago, I found speeches [3][4] of GIT by Linus and Schwartz on Youtube . And it seemed GIT solved every issue i had with SVN. After that I looked deeper into GIT [5] and was amazed:

  • It is so fast
  • Uses only flat files
  • Branching and merging is a cheap action! You can make as much branches of your master as you want, you actually make a new branch for every feature or experimental work you develop. You commit into this branch and nobody sees, because it is local. After finished you just merge into your master branch or you delete the experimental work. EASY!
  • Only one .git directory, so a rm -rf .git in the project root removes GIT versioning.
  • It can interact as a SVN client with git-svn. So you will be able to commit into git in your local branch, merge and commit to SVN remote. But there is no need at all to have a centralized SVN repository, you will be able to have a public GIT repository.
  • GnuPG support (for your web of trust)
  • Actually i didn’t find any quirks, it just fits!

I wonder why so many open source project still using SVN? Maybe they use GIT as SVN client or they just don’t know better.
[1] http://subversion.tigris.org/
[2] http://blogs.open.collab.net/svn/2008/07/subversion-merg.html
[3] http://www.youtube.com/watch?v=4XpnKHJAok8
[4] http://www.youtube.com/watch?v=8dhZ9BXQgc4
[5] http://git.or.cz/

Passwortgedanken

Wie schon früher berichtet [1] ist man schlecht bedient, für jeden Dienst das gleiche Passwort zu verwenden. Doch wenn eben kein OpenID oder dergleichen angeboten wird, bleibt einem nichts anderes übrig als sich ein neues Passwort auszudenken. Oder man macht sich Gedanken über einen Mechanismus, der einem ein individuelles, aber für einen selben nachvollziehbares Passwort generiert. Wie z.B. sowas
#!/bin/bash
echo "Passwortd Script:"
echo "Enter your first passphrase"
read PREFIX
echo "Enter your second passphrase"
read POSTFIX
echo "Enter the login URL:"
read URL
echo "Your Password is:"
echo "${PREFIX}${URL}${POSTFIX}" | md5sum
exit 0

Somit erhält man ein Passwort, welches man wieder reproduzieren kann aber doch indiviudell ist. Natürlich nicht für hochsensible Sachen gedacht.

[1] http://www.renemoser.net/2007/09/gnupg-firefox-und-auth/

Openfiler: Linux NAS/SAN appliance

Openfiler [1] converts an industry standard x86/64 architecture system into a full-fledged NAS/SAN appliance or IP storage gateway and provides storage administrators with a powerful tool to cope with burgeoning storage needs. Building upon the popularity of server virtualization technologies such as VMware, Virtual Iron, and Xen, Openfiler can also be deployed as a virtual machine instance.

[1] http://www.openfiler.com/

Event: Turrican Days 2008

Das diesjährige Turrican Days Event findet vom 26. bis 28. September 2008 statt.

JEDER ist herzlich eingeladen, ungezwungen ein paar Stunden bis das ganze Wochenende daran teilzuhaben und zu profitieren.

Denn an diesen Tagen stellen einige kluge Köpfe aus der Opensourceszene Bern namentlich Linux User Group Bern (LugBE) [1] einige kostbare Zeit zur Verfügung um Fragen und Probleme im Bereich Unix/Linux zu lösen

Das offizelle Announcement von LugBE [2] verrät, dass es jedoch nicht nur um Elektronik und Software geht, sonder sicherlich auch das fröhliche Zusammensein und den sozialen Aspekt nicht zu kurz kommt.

[1] http://www.lugbe.ch/
[2] http://www.lugbe.ch/turrican-days/turricandays08.phtml

gitosis: software for hosting git repositories

Fundgrube:

gitosis [1] aims to make hosting git repos easier and safer. It manages multiple repositories under  one user account, using SSH keys to identify users. End users do not need shell accounts on the server, they will talk to one shared account that will not let them run arbitrary commands.

Alles was man wissen muss steht hier [2].

[1] http://eagain.net/gitweb/?p=gitosis.git
[2] http://archive.daniel-baumann.ch/debian/documents/cheatpages/gitosis.html

Newsbeuter: The Mutt of RSS Feed Readers

Wieder mal Fundgrube:

Newsbeuter [1] is an open-source RSS/Atom feed reader for text terminals. It runs on Linux, FreeBSD, Mac OS X and other Unix-like operating systems. Newsbeuter’s great configurability and vast number of features make it a perfect choice for people that need a slick and fast feed reader that can be completely controlled via keyboard.
A summary of some of its features:

  • Subscribe to RSS 0.9x, 1.0, 2.0 and Atom feeds
  • Download podcasts
  • Freely configure your keyboard shortcuts
  • Search through all downloaded articles
  • Categorize and query your subscriptions with a flexible tag system
  • Integrate any data source through a flexible filter and plugin system
  • Automatically remove unwanted articles through a “killfile”
  • Define “meta feeds” using a powerful query language
  • Synchronize newsbeuter with your bloglines.com account
  • Import and exporting your subscriptions with the widely used OPML format
  • Freely define newsbeuter’s look’n'feel through free color configurability and format strings

[1] http://www.newsbeuter.org/

« Previous PageNext Page »