1 0 Archive | Random Thoughts RSS feed for this section
post icon

More snippets

06. Sep, 2011

Yesterday I posted about having an existing ssh-agent load on all new shells. Here are two more handy snippets of code from my .bash_profile

The first code snippet is a follow on from yesterday, were I can type ‘lock’ or ‘unlock’ into my shell and the ssh-agent will follow on accordingly. When your ssh-agent is locked, users that have access to the ssh-agent will be required to type in your SSH agent password.

function lock () { ssh-add -x }
function unlock () { ssh-add -X }

The next snippet of code adds a ‘ns’ command. I have issues trying to remember IPs – especially when they are not used too often. This command lets me easily remember :)

alias ns='for x in ns1 ns2 ns3 ns4 ; do host $x.google.com; done'

When run:

[tim@2-xlc-controller ~]$ ns
ns1.google.com has address 216.239.32.10
ns2.google.com has address 216.239.34.10
ns3.google.com has address 216.239.36.10
ns4.google.com has address 216.239.38.10

The last dirty one liner that I love is another simple time saver. Many people use the ‘whois‘ command to find out what nameservers are used by a domain name. It’s not too long before you work out that it is not really the best way to be finding out what the domain name’s nameservers are.

function nameservers() { echo $1\'s nameservers are:; dig +trace $1 | grep NS  | grep "^$1.";  }

This handy one liner allows me to do awesome things like:

[tim@3-xlc-controller ~]$ nameservers google.com
google.com's nameservers are:
google.com.             172800  IN      NS      ns2.google.com.
google.com.             172800  IN      NS      ns1.google.com.
google.com.             172800  IN      NS      ns3.google.com.
google.com.             172800  IN      NS      ns4.google.com.
Read full story »


Written By Tim Groeneveld.
post icon

Duff Beer, IRL!

24. Jul, 2011

Duff Beer!

While in Brisbane, a good friend of mine (Hadi Nematollah) introduced me to Duff Beer (of The Simpson’s fame). Although I am not really  a beer drinker, I can say that I was not put off the taste. Not a bad deal, $25 for a six-pack of novelty beer. Bonus points for being drinkable!

Read full story »


Written By Tim Groeneveld.
post icon

Sydney IT Meetup Calendar

05. Feb, 2011

Wondering where all the interesting Sydney IT meetups are? I have listed here a rough calendar for 2011. There may be some updates further on in the year as more events are announced.

Big Meetups

  • PHPConfAu – Late October. You didn’t hear that form me though because the exact date is yet to be confirmed. First national PHP meetup, this one is going to be big! Some of Australia’s most respected PHP developers are already slated to be there, so if you want to learn anything new, definitely drag yourself across!
  • WordCamp – OK, technically it is in Melbourne, but this is the WordPress meetup of the year, and something everyone who has a blog should go to – tickets are $50, there is no reason not to go!
  • PyCon AU – 20th – 21st August. Again, Python’s National Conference.
  • Ad:Tech Sydney – 9-10 March. ad:tech is the leading event for the digital marketing and advertising community in Australia and New Zealand.
  • CeBIT Australia – 31st May – 2nd June. Australia’s biggest IT get-together.

Weekly / Fortnightly Meetups

  • Sydney Tech Startup Meetup – Every Thursday Morning. 8am-10am.
  • Silicon Beach Sydney – Every Friday at the Grace Hotel 6pm+. Silicon Valley has a supporting ecosystem that makes Internet innovation thrive, so what can Australia do? How can that big island with the best beaches in the world, harness the passionate, intelligent individuals who care to do more?
  • Coffee Mornings – Every Friday Morning @ 8am. A get together of social media personel.

Monthly Meetups

Sparatic

Please let me know (in the comments section “below”) if there is anything that I have missed out on!

Read full story »


Written By Tim Groeneveld.
post icon

Google’s Android Fonts

23. Jan, 2011

I love Android, and I love that Google is offering such a good mobile operating system, for free. Many people might just remember that Microsoft grew to prominence in the IT industry in much a similar way. They provided DOS for free (or at least at a low cost) to OEMs, which provided them with much of the market share that they have now.

It can be seen as actually quite smart that Google are offering their OS for such a low price.

Google commissioned Ascender, a digital typeface foundry and software development company located in the Chicago suburb of Elk Grove Village, Illinois in the United States to create the fonts that are used by the Android user interface.

Ascender engineered the new set of system User Interface (UI) fonts named “Droid” for the Android platform built by the Open Handset Alliance. The fonts provided by Ascender allow highly legible text resulting in easy to use interfaces.

The fonts are open source, licensed under the Apache Software License.

Finding a download link to the fonts can be a bit tricky, but one of the easiest ways to get the fonts is to download them from Google’s Web Fonts project.

Here is Droid Sans, Droid Sans Mono and Droid Serif.

Failing that there is this link here to a Mercurial repository, but I didn’t tell you that, now did I?

Read full story »


Written By Tim Groeneveld.
post icon

Holiday mode started early?

22. Jan, 2011

Looking at my emails, I just realised that I forgot to pay for Drupal Downunder. -.-”

Read full story »


Written By Tim Groeneveld.
post icon

libguestfs: library for accessing and modifying VM disk images

18. Jan, 2011

Imagine if there was an application that you could feed a disk image to, wether it be Microsoft Windows 2008 or Red Hat EL 6 and see a list of applications that are installed – no step back – imagine if there was an application that you could feed a disk image to and just discover what operating system was installed.

Well fear not! There is such an application. I kid you not, if you are anything like me you are going to look and see this as one of the most amazing discoveries. When I found this, I had a “oh my goodness, why didn’t I know about this sooner” moment.

libguestfs is a set of tools for accessing and modifying virtual machine (VM) disk images. You can use this for viewing and editing files inside guests, scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V, performing partial backups, cloning VMs and much much more.

libguestfs basically allows you to do anything that you have ever dreamed of. Yes. It will even read your Windows Registry “hive” files and spit them out as XML files.

The virt-inspector command examines a virtual machine or disk image and tries to determine the version of the operating system and other information about the virtual machine.

libguestfs is definitely on the TODO list for installing :) I am love. I could just imagine a nice web application thrown on top of this that would allow you to do funky things like that a WIndows machine offline, run a Windows Update *while the virtual machine is not running* and then start the machine up again. Doesn’t sound awesome yet? Think about it this way: a new Windows update is released. You take an LVM snapshot of the currently running box. You apply any Windows Update to the new LVM snapshot, shutdown the current running box while bringing up the new one (or edit the registry and remove any details of the IP and add a script to run on startup…)… so many ideas :)

Read full story »


Written By Tim Groeneveld.
post icon

Reminder: root needs > 10GB

16. Jan, 2011

*sigh*

[tim@beast ~]$ df / -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/disk/by-uuid/ebc29b81-cc7e-4fa5-9777-8953f54752ff
9.9G  9.3G   70M 100% /

Why oh why do I do this to myself?

Read full story »


Written By Tim Groeneveld.
post icon

Internet Travels

14. Jan, 2011

*sigh* the Internet. From updated software to the Himalayas’.

I thought that I might just describe today how I got lost in an interesting maze of Handbrakes to Schools in the Indian Himalayas.

So, I was doing my normal morning Internet browse, off discovering what new and interesting tidbits of information I could discover. On Freshmeat, I learnt that there was a new version of Handbrake, a popular (and very, very awesome tool) for converting DVDs into other formats so they can be viewed on iPods and iPhones.

Cool, I thought. Upon reading the changelog, they listed a couple of changes to ‘ghb’. What was ghb, I wondered? Well, a Google found that GHB was infact Gamma-Hydroxybutyric Acid. Indeed, Gamma-Hydroxybutyric Acid was not what I was looking for, but it did start the wild search party.

From learning all about GHB and it’s affects, Wikipedia was only more then happy to teach me more information. Xyrem, manufactured by Jazz Pharmaceuticals is a orphan drug. What’s an orphan drug? Well, it’s a pharmaceutical agent that has been developed specifically to treat a rare medical conditions.

Since the market for any drug with such a limited application scope would, by definition, be small and thus largely unprofitable, government intervention is often required to motivate a manufacturer to address the need for an orphan drug. One of the interventions that can be undertaken by a government is to create a government-run enterprise to engage in research and development, otherwise known as a Crown Corporation.

An example of a Crown Corporation is the Australian based National Broadband Sceme, which is owned and operated by the Department of Communication and the Digital Economy.

On the DBCDE site, there was a media release sent out: “A reminder for Australians affected by floods about the Satellite Phone Subsidy Scheme”. Naturally, it was time to have a look at who was offering and what the price of satellite phone are. $1,000+. One of the coolest phones being the Thuraya XT. (ZOMG! It has a color screen!)

Looking for how much it actually costs to have a satellite phone (ie, monthly charges) I found a page listing where the Thuraya phones are used.

Leading me to an isolated village situated in the Indian Himalayas, Kargyak. In September 2009 the Surya Civic Association finished construction of the specially designed “passive” school-building heated by sun, fully ecological and also compatible with local structures also in terms of appearance.

It’s pretty cool and I suggest you take a look.

Read full story »


Written By Tim Groeneveld.
post icon

Broadcom is part of the Linux Foundation

13. Jan, 2011

When you look at the Linux landscape, there are traditionally two companies which are well known for lacking support when it comes to Linux. ATI and Broadcom. Well, good news when looking at the Broadcom landscape! Broadcom, well known for frequently holding out when it came to delivering drivers – especially Wi-Fi drivers and source code for Linux users has officially joined the Linux Foundation, with plans to extend its open development and collaboration with the Linux community.

The move announced a couple of weeks ago might just be the biggest change in the Open Source landscape* this year.

Heavily contributing to the reputation Linux had for not being as compatible with essential technologies such as Windows and OS X, Broadcom’s decision to join the Linux Foundation and release new open source drivers (brcm80211).

Since the release of that new open driver, it has been integrated into the recent Linux kernel release 2.6.37, where it can be actively improved upon by the entire Linux community.

Off topic a little bit, we need to see more Open Source organisations open up to the community their proprietary drivers.

Although the opening up of commercial code in the kernel is one of my favorite topics, to save myself typing out a whole new discussion on the topic I will simply point over to David Airlie, the maintainer of Maintainer of all the direct rendering manager code and the X.org co-maintainer for Red Hat, covering both Fedora and RHEL.

David goes on to ask one very important question: ‘So what are they [orgnaistaions providing closed source userspace drivers] actually hiding in userspace?

Read full story »


Written By Tim Groeneveld.
post icon

PHP Fog gets $1.8m in funds

11. Jan, 2011

PHP is one of the most popular web development language in the world, with millions of active developers and tens of millions of PHP-based sites already in deployment.

A new company on the PHP scene has been created to service the hundreds of thousands of application developers who work with PHP on a daily basis.

PHP Fog is the only company offering deployment and infinite scaling of PHP applications in the cloud with little to know effort. The company offers one-click deployments for many popular PHP apps and frameworks including WordPress, Drupal, Kohana, Zend, and SugarCRM.

The company is currently in private beta but expects to launch publicly in the first half of 2011.

The technology around PHP Fog allows you to create a new site in less then one minute of your time. You do not even need to know how to code (although, it really, really is beneficial if you can :) ).

Deploying changes to your site is as easy as git push, No longer do you need to work with FTP or any other 1990′s technology. PHP Fog has been built to work around the developer – which is a good thing, because it means that your developers are no longer system administrators – especially in smaller shops.

With PHP Fog, all of your servers (cache, web/http, database servers and load balancers) are on separate boxes

It will be interesting to see how this technology evolves. A similar provider for Rails, Heroku, was not too long ago acquired by Salesforce for $212 million in cash. What company will buy PHP Fog and for how much?

Yahoo are big users of PHP, so they could be in line. Facebook seem to have gone their own way with Hiphop. Interesting times ahead! I can’t wait to see what times I can get out of PHP Fog for page loads!

Read full story »


Written By Tim Groeneveld.