A guy, a blog and the internet
Archive for January, 2010
Remote syncing files using git
Jan 26th
I’ve been wanting to write a post about this for a while, and a friend of mine asked about it a couple of weeks ago, and here it is…
First you need to create a remote Git repository, either on your own server or Codaset, GitHub
You will need to create a local repository:
mkdir directory_to_sync cd directory_to_sync git init touch .gitignore git add .gitignore git commit
To create a remote Git repository do the following on your server:
mkdir repository.git cd repository.git git init --bare
Once you have created the remote repository you will need to link it to your local copy:
git remote add origin ssh://server_address/path_to_repository git push origin master git pull origin master
To make life easier I always edit the Git config file and add the following:
vi .git/config
[push]
default = current
[branch "master"]
remote = origin
merge = master
The only problem with this approach is that you need to store the files in a seperate directory, but we ca get around this “limitation” by using symlinks for example to store the .bash* files in Git:
ln -s directory_to_sync/.bashrc ./
Well I hope this helps someone out there
The post is brought to you by lekhonee v0.7
Moving… again…
Jan 25th
Well, I can’t believe how time has flown, Cecilia and I split up end of October last year, and we were still staying together till the end of the lease. I found a new place end of November, and now finally get to move in
So now instead of driving 100Km a day (from Durbanville to Tokai), I am now gonna be driving 10Km a day
<– AWESOME!!!
And now I’m closer to the beach, it’s like a 10min drive, on a busy day
so will be spending alot more time there, and when Catelyn comes to visit she will also, she loves “THE BEACH” as she puts it… hehe…
So as one part of my life finally comes to a close, another starts up…
Now finally I’ll have more time to spend on the stuff I love, and hopefully I will be able to start contributing to the Debian comunity.
New things to learn, new people to meet, new experiences to experience… #ROCKON #AWESOME
OpenMoko Neo Freerunner mobile phone
Jan 5th
So the OpenMoko Neo Freerunner mobile phone has been available in SA for a while now, and I can’t wait to get my hands on one, due to various situations this wasn’t likely to happen soon.
Then I stumbled apon a competition at WebAddict, so now I have a chance to win one, not only will I have an awesome phone that I can install Debian or Google Android on, but I’ll have a replacement for the 5800 that was stolen a couple of weeks ago…
Checkout the competion, it’s really an awesome phone…
Happy New Year
Jan 2nd
So, it’s the begining of a new year, man 2009 went by quick… I really didn’t expect (or want) the year to end the way it did, but go figure.
Well I have a feeling that this next year is gonna be a tough one, but I’m sure I’ll get through it…
Here’s to the new year and I hope that all of you guys reading this have an awesome year. Hopefully big things happen…