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
Comments Off
Twitter Weekly Updates for 2010-10-24
- And unsubscribed from #WoW again. Since 4.0.1 patch the game keeps crashing every 10 minutes or so. Too bad. #
- @domfarr Awesome, good to know suits still know best! #funny #
- @davecoveney Just received it, thanks! Perfect the way it is, don't change a thing. Curious about experiences though! in reply to davecoveney #
- Glad I spent a day figuring out something that was bugging me. Got a nicer solution out of it and we can apply it everywhere. #puppet #rules #
- Koud, nat, staan als sardientjes in blik. Jup, in de trein. #
- @seed_box Still, it's a good idea to be ready and start implementing ipv6 already, like we do at twenty-five.nl :) in reply to seed_box #
- @seed_box True, but the most deployed do. Which app are you waiting on before you can switch? in reply to seed_box #
- @seed_box #rTorrent seems to be close, though: http://bit.ly/9pTY3B #HyperVM not sure, but don't think it cares about how it's contacted. in reply to seed_box #
- @zipkid Isn't a twenty-five.nl vps much more interesting? :P in reply to zipkid #
- @zipkid Check it out and let me know if you want a test vps for a week… I'm sure I can arrange you something :) in reply to zipkid #
- why is the #evolution #mail client so incredibly slow? does anyone actually use it? #
- @_masterzen_ how do you deal with the locking up threads and the general slowness of the client? or is that an #ubuntu feature? in reply to _masterzen_ #
- @_masterzen_ Seems to be the same version as in Maverick. Then I don't get it, we have it getting grey every so often when you move a lot. in reply to _masterzen_ #
- @_masterzen_ do you use the imap or imap+ layer? in reply to _masterzen_ #
- @pmjdebruijn Yeah, on maverick, but it locks up every so often :( in reply to pmjdebruijn #
- @davecoveney You're probably more experienced than I am, but I found out that saying 'not now, sorry' is better than working under stress. in reply to davecoveney #
- @zipkid Gief coffee!! #
Powered by Twitter Tools
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)
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
Tags: debian, mysql, mysql_database, mysql_grant, mysql_user, puppet
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:
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.
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
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
Comments Off
Twitter Weekly Updates for 2010-10-03
- @rjw1 You mean there are exchange servers that actually *can* do that? #
- @bilbobt Glad it helped you! in reply to bilbobt #
- Vandaag nieuwe server ontvangen, zit hij meteen vol! @twenty_five_vps moet maar snel nieuw bestellen weer :S #vps #
- @Dankjewelske Het zit in de lucht, geloof ik… in reply to Dankjewelske #
- Hebben we de vacature gevuld, komen er ineens twee geïnteresseerden op dezelfde dag… Jammer, maar helaas. We hebben al een goeie! #
- @channtalle Dat mag hij eerst bewijzen :P in reply to channtalle #
- @davecoveney Only 1200? :) in reply to davecoveney #
- @davecoveney Consider testing both servers with Unix Bench: http://code.google.com/p/byte-unixbench/ in reply to davecoveney #
- @davecoveney If you do, I'd be interested in the VPS-16 result. Did the same on a VPS-2 yesterday and got a score of 1465.5. in reply to davecoveney #
- I stun the fly with the flyswatter. Dog eats the fly. We're a great team. #
- Gwibber in #maverick is even dumber than in #lucid Now I cannot add FaceBook at all! Why do they ship this? #ubuntu #fail #
Powered by Twitter Tools