I had to copy the submodule definitions from one repository to another today and it wasn't as straightforward as I would have liked. Here's how I did it:
$ echo 'export ROOT=$(pwd);' > submodules.sh;
$ git submodule foreach "printf 'git submodule add %s %s;\n' \$(git remote -v | grep fetch | sed -re 's/http:/git:/; s/^.*\s+(git.+git).+$/\1/;') \$(pwd | sed -e 's#/home/deoxxa/public_html/antelope/##;')" | grep -v Entering >> submodules.sh;
$ git submodule | grep -v master | sed -re 's/.+\s+(.+?)\s+\((.+?)\)/cd \1; git checkout \2; cd $ROOT;/;' >> submodules.sh;
submodules.sh then contains all the commands necessary to replicate the submodule configuration from the repository you ran it in.
Fun Times Ahead@ 16/06/11 09:43 am
<deoxxa> http://th3j35t3r.wordpress.com/
<deoxxa> when did this become a thing
<deoxxa> soon hackers will be getting corporate sponsorships and advertising deals
<deoxxa> we'll have reality shows where script kiddies take down old wordpress installs and phpbb forums
<deoxxa> there'll be widely pulicised "beefs" between crews
<deoxxa> your little cousin will suddenly be talking about SQLI and RFI like we did transformers and star wars
<deoxxa> i, for one, can't wait until i can buy a t-shirt or fitted cap proclaiming my support for the latest skiddie crew
<deoxxa> this is an interesting time to be alive
So I'm sick again. This is getting kind of old, Mr. Influenza. How about you give me a break sometime, hey?
Lesson seven was an introduction to time. We covered expressing times (「?」「?」じ「?」ふん), いま (now), AM/PM (ごぜん/ごご) and asking what the current time is (いまはなにじですか). There's a few tricky things with times and the pronunciation of じ/ふん. I'll list them in here for later reference, yay!
Click here to read the list!
New Office@ 30/05/11 09:34 am
We're in our new office for the first day of real work today. The desk layout makes me want to hurt people. I don't want people looking at my damn screen all the time.
New Camera@ 28/05/11 04:22 pm
I got a new camera today, a Sony Cyber-shot DSC-TX10. It's waterproof, shock-proof, relatively durable and has a nice sliding cover for the lens and flash. Apparently it does 3D photos, but I'm not entirely convinced; I mean, it only has one lens, so unless I'm grossly misinformed about how 3D imaging works, it's not possible. That aside, however, it is a nice piece of kit. Hopefully I'll get to use it for a while longer than I used my last camera before it broke (which was about 6 weeks). In any case, I have a 1 year warranty on it so I'm covered if it does turn out to be a lemon.