31 Oct 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-10-31

  • @ipot de dierenwinkel, natuurlijk :) in reply to ipot #
  • Brrr cold! #
  • Apparantly, CCNA certification does not include general knowledge about SSH. #
  • @ripienaar If it's a petition to abolish java forever, I don't mind to be spammed with it :) #
  • @ripienaar Too bad :( We'll miss you there! in reply to ripienaar #
  • Eens kijken of DAS me vandaag wel terugbelt naar aanleiding van de terugbelnotitie. Gisteren is het niet gelukt, in ieder geval. #
  • @ripienaar good man! #
  • Traffic jam at Transferium in Sittard. Made me miss my train :( #
  • There, got our kumihatch system working for Squeeze. Tomorrow I'll create a working iso. #
  • So how would I use #spotify to learn about new music? Does it do recommendations like last.fm? Or import those? #
  • @baseonmars You should try and get in touch with those people and combine your efforts :) in reply to baseonmars #

Powered by Twitter Tools

24 Oct 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-10-24

Powered by Twitter Tools

21 Oct 2010, 14:11
Tags: , , , , ,
Comments Off

New GPG key

Finally took the time to initialise the cryptostick we’re using these days. Some info for those who use it:

asterisk:~ tim$ gpg --fingerprint 0D70B4D7
pub   3072R/0D70B4D7 2010-10-20 [expires: 2015-10-19]
      Key fingerprint = 8D6D 61AF AA5D 6295 AFF3  4A3C B742 5A37 0D70 B4D7
uid                  Timmy Hanko Stoop (Tim) 
uid                  Administratie Kumina 
uid                  Timmy Hanko Stoop (Tim) 
sub   3072R/3A5D131C 2010-10-20 [expires: 2015-10-19]
sub   3072R/E564D8F1 2010-10-20 [expires: 2015-10-19]

And the SSH fingerprint too.

3072 59:78:05:ee:f2:c3:85:e5:38:bf:4f:05:fc:f8:db:08 cardno:00050000069F (RSA)

Tags: , , , , ,

17 Oct 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-10-17

  • @profbriancox Two Cessna's? Did you gain that much weight? Man! #
  • @pieterkirkels justeat.nl? :) #
  • Bah. Enorm aan het ergeren aan die leugenaars en kwakzalvers op #radar #
  • Vervelende mist ook, trein net gemist vanwege de drukte op de weg. Zag hem nog fijn wegrijden toen ik het perron op kwam :( #
  • Eindelijk in een trein. Nu eerst opwarmen. Begint toch al langzaam koud te worden buiten. #
  • Added my tweets to Facebook. At least it's easy. #
  • Error connecting to foursquare: 503 #fail #sysadmins or do they call themselves #devops #
  • Wish the ubuntu gnom-keyring devs would take a look at this problem http://bit.ly/b2qYCy #maverick #notsogood #annoying #
  • Product names are overrated. It should all just have a UUID. #
  • Updating WoW. Expected time of completion: Dec. 8th. Somewhere in the afternoon. Damn. #
  • Damn, missed my train again. It's awefully crowded on the roads in this mist. #
  • I just used "Kthxbye" in sms communication. I suck. #selffail #
  • Latest #WoW patch is giving me all sorts of trouble. Having been able to play correctly anymore since it was released :( Need to investigate #

Powered by Twitter Tools

15 Oct 2010, 14:15
Tags: , , , , ,
Comments Off

[Puppet 0.25.5] MySQL type for Debian

I’ve modified DavidS’ puppet-mysql type to work on Debian and with puppet 0.25.5 (added a local instances method). It’s not perfect, but good enough for what I need. You can find my fork for it here:

puppet-mysql for Debian

Let me know if you have any questions or if this helps you! Also, if you’re a ruby programmer, you might want to take a look at my providers… They’re slightly messy, I think. They work, though.

The main difference between the old package and the debian specific ones is that my types always use Debian’s /etc/mysql/debian.cnf as a defaults file. This file is created when you install mysql from the Debian repository and is mainly used for maintenance. So ideal for puppet usage.

Tags: , , , , ,

11 Oct 2010, 11:01
Tags: , , , , ,
2 comments

Puppet Tips&Tricks: Custom type to manipulate XML config (activemq.xml)

Last week I worked in my first ever Ruby code. It’s a custom type for Puppet that allows one to edit the /etc/activemq/activemq.xml file and add (or remove) transportConnectors. It’s a fairly simple thing, not very elaborate, but it’s a start. I’ll try to expand it to make editing other xml files possible too, because I think that shouldn’t be too hard. Now for the code. Keep in mind this is my first ever Ruby code (well, second, technically, because I worked out the REXML lib in a separate script first). It’s probably very ugly and inefficient, so if you can do better, do let me know!

xml_manipulator.rb type:

Puppet::Type.newtype(:xml_manipulator) do
    @doc = "Manage TransportConnectors for ActiveMQ"
 
    ensurable
 
    newparam(:uri) do
        desc "The uri on which the connector should listen"
    end
 
    newparam(:type) do
        desc "The connector type."
 
	isnamevar
    end
end

And the provider activemq_transportconnector.rb:

require 'rexml/document'
include REXML
 
Puppet::Type.type(:xml_manipulator).provide :activemq_transportconnector do
    desc "The actual ActiveMQ config manipulator"
 
    defaultfor :operatingsystem => :debian
 
    def create
        file = File.open("/etc/activemq/activemq.xml", "r+")
        doc = REXML::Document.new file
	connectors = doc.elements["//transportConnectors"]
	connectors.add_element 'transportConnector', {'name' => resource[:type], 'uri' => resource[:uri]}
	file.rewind()
	doc.write( file, 4 )
    end
 
    def destroy
        file = File.open("/etc/activemq/activemq.xml", "r+")
        doc = REXML::Document.new file
	doc.root.elements.delete("transportConnect[@name=" + resource[:type] + "]")
	file.rewind()
	doc.write( file, 4 )
    end
 
    def exists?
        file = File.open("/etc/activemq/activemq.xml", "r+")
        doc = REXML::Document.new file
        XPath.match( doc, "//amq:transportConnector[@name='" + resource[:type] + "' and @uri='" + resource[:uri] + "']", {"amq" => "http://activemq.apache.org/schema/core"}).length() > 0
    end
end

Tags: , , , , ,

10 Oct 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-10-10

  • I so enjoy doing some python coding on the side. #python #rocks #
  • The Qualys v2 API is a horribly inconsistent. Really annoying to prog against. #api #fail #
  • Ben benieuwd hoeveel #slechtdevbureau rekent voor het opleveren van een PHPFormMail scriptje… #hekel #prutsers #
  • @sunit_qg_api If you create an API and call it "version 2", make sure it incorporates functionality from the one you called "version 1". in reply to sunit_qg_api #
  • @sunit_qg_api I currently need to search two large PDFs to find the functionality I need. And have two ways of communicating with the API. in reply to sunit_qg_api #
  • @sunit_qg_api That's very frustrating and costs me a lot of time. in reply to sunit_qg_api #
  • @sunit_qg_api While you're on it, include in your API docs a brief description about what the differences between reports really are? in reply to sunit_qg_api #
  • @sunit_qg_api Currently I need to get that information either from the UI user or from documents spread out all over the site. in reply to sunit_qg_api #
  • Got Skype on my HTC Desire now. Sweet! #
  • So much power in my hand (Htc desire), and still I'm bored in the train… #
  • En nu ben ik het gezeur over wel of geen goeie coalitie wel een beetje beu. Tijd om eens te kijken wat er gaat gebeuren. #
  • @patrickdebois You'll always have t-dose! in reply to patrickdebois #
  • @ipot wordt ook alleen maar gebruikt door oelewappers, had ik begrepen in reply to ipot #
  • @TubbyNL Lekkerder dan die van ons?? in reply to TubbyNL #
  • @davecoveney It is. Serving static files shouldn't bother a properly configured Apache, really. in reply to davecoveney #
  • @davecoveney Isn't that an optimization method? Less files to download? in reply to davecoveney #
  • #puppetcamp just started! too bad I'm not there though :( #
  • @kartar How about Eindhoven? :) #
  • Grapjassen van #NS laten mijn trein wachten op een andere. Hoppa, 10 minuten vertraging. #fail #
  • Nieuwe techniek is best mooi. Vanuit de trein via sms op een email van collega reageren over een gesprek op irc over mijn tweet. #stoer #
  • Grr… Spent the whole evening trying to find what's causing a 10054 error on Win64 when I try to access an SSL site via urllib in py3k #
  • It works from MacOSX and a Win32 machine :S So I don't think it's my python code… #

Powered by Twitter Tools

3 Oct 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-10-03

Powered by Twitter Tools

 
  • Search


  • Calender

    October 2010
    M T W T F S S
    « Sep   Nov »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Twitter

    Powered by Twitter Tools

  • RSS Delicious feed

  • Archives