How to maintain a local mirror of github repositories

Similarly to yesterday’s post about mirroring ONAP’s git, I also want to mirror all of the git repositories for certain github projects. In this specific case, all of the Kubernetes repositories.

So once again, here is a script based on something Tony Breeds and I cooked up a long time ago for OpenStack…

(more…)

Continue ReadingHow to maintain a local mirror of github repositories

How to maintain a local mirror of ONAP’s git repositories

  • Post author:
  • Post category:ONAP

For various reasons, I like to maintain a local mirror of git repositories I use a lot, in this case ONAP. This is mostly because of the generally poor network connectivity in Australia, but its also because it makes cloning a new repository super fast.

Tony Breeds and I baked up a script to do this for OpenStack repositories a while ago. I therefore present a version of that mirror script which does the right thing for ONAP projects.

(more…)

Continue ReadingHow to maintain a local mirror of ONAP’s git repositories

Head On

  • Post author:
  • Post category:Book

A sequel to Lock In, this book is a quick and fun read of a murder mystery. It has Scalzi's distinctive style which has generally meshed quite well for me, so it's not surprise that I enjoyed this book.  

Continue ReadingHead On

A first program in golang, with a short aside about Google

  • Post author:
  • Post category:golang

I have reached the point in my life where I needed to write my first program in golang. I pondered for a disturbingly long time what exactly to write, but then it came to me... Back in the day Google had an internal short URL service (think bit.ly, but for internal things). It was called "go" and lived at http://go. So what should I write as my first golang program? go of course. The implementation is on github, and I am sure it isn't perfect. Remember, it was a learning exercise. I mostly learned that golang syntax is a bit bonkers, and that etcd hates me. This code stores short URLs in etcd, and redirects you to the right place if it knows about the short code you used. If you just ask for the root URL, you get a list of the currently defined short codes, as well as a form to create new ones. Not bad for a few hours hacking I think.

Continue ReadingA first program in golang, with a short aside about Google

etcd v2 and v3 data stores are separate

  • Post author:
  • Post category:etcd

Just noting this because it wasted way more of my time that it should have... So you write an etcd app in a different language from your previous apps and it can't see the data that the other apps wrote? Check the versions of your client libraries. The v2 and v3 data stores in etcd are different, and cannot be seen by each other. You need to convert your v2 data to the v3 data store before it will be visible there. You're welcome.

Continue Readingetcd v2 and v3 data stores are separate
Read more about the article pyconau 2018 call for proposals now open
hdr

pyconau 2018 call for proposals now open

The pyconau call for proposals is now open, and runs until 28 May. I took my teenagers to pyconau last year and they greatly enjoyed it. I hadn't been to a pyconau in ages, and ended up really enjoying thinking about things from topic areas I don't normally need to think about. I think expanding one's horizons is generally a good idea. Should I propose something for this year? I am unsure. Some random ideas that immediately spring to mind: something about privsep: I think a generalised way to make privileged calls in unprivileged code is quite interesting, especially in a language which is often used for systems management and integration tasks. That said, perhaps its too OpenStacky given how disinterested in OpenStack talks most python people seem to be. nova-warts: for a long time my hobby has been cleaning up historical mistakes made in OpenStack Nova that wont ever rate as a major feature change. What lessons can other projects learn from a well funded and heavily staffed project that still thought that exec() was a great way to do important work? There's definitely an overlap with the privsep talk above, but this would be more general. a talk…

Continue Readingpyconau 2018 call for proposals now open

Caliban’s War

  • Post author:
  • Post category:Book

This is the second book in the Leviathan Wakes series by James SA Corey. Just as good as the first, this is a story about how much a father loves his daughter, moral choices, and politics -- just as much as it is the continuation of the story arc around the alien visitor. I haven't seen this far in the Netflix series, but I sure hope they get this right, because its a very good story so far.

Continue ReadingCaliban’s War

City2Surf 2018

  • Post author:
  • Post category:Running

I registered for city2surf this morning, which will be the third time I've run in the event. In 2016 my employer sponsored a bunch of us to enter, and I ran the course in 86 minutes and 54 seconds. 2017 was a bit more exciting, because in hindsight I did the final part of my training and the race itself with a torn achilles tendon. Regardless, I finished the course in 79 minutes and 39 seconds -- a 7 minute and 16 second improvement despite the injury. This year I've done a few things differently -- I've started training much earlier, mostly as a side effect to recovering from the achilles injury; and secondly I've decided to try and raise some money for charity during the run. Specifically, I'm raising money for the Black Dog Institute. They were selected because I've struggled with depression on and off over my adult life, and that's especially true for the last twelve months or so. I figure that raising money for a resource that I've found personally useful makes a lot of sense. I'd love for you to donate to the Black Dog Institute, but I understand that's not always possible. Either way,…

Continue ReadingCity2Surf 2018

End of content

No more pages to load