Private /tmp directories in Fedora

Mon 05 November 2012 by Lars Kellogg-Stedman Tags fedora systemd

I ran into an odd problem the other day: I was testing out some configuration changes for a web application by dropping files into /tmp and pointing the application configuration at the appropriate directory. Everything worked out great when testing it by hand...but when starting up the httpd service …

read more

Posting to Scriptogr.am using the API

Mon 05 November 2012 by Lars Kellogg-Stedman Tags scriptogr.am api

Scriptogr.am has a very simple api that allows one to POST and DELETE articles. POSTing an article will place it in the appropriate Dropbox directory and make it available on your blog all in one step.

Here is how you could use this API via Curl:

curl \
       -d …
read more

Automatic configuration of Windows instances in OpenStack, part 1

Sun 04 November 2012 by Lars Kellogg-Stedman Tags openstack windows

This is the first of two articles in which I discuss my work in getting some Windows instances up and running in our OpenStack environment. This article is primarily about problems I encountered along the way, while the second article focuses on the mechanism I eventually put in place.

Motivations …

read more

Generating random passwords in PowerShell

Sun 04 November 2012 by Lars Kellogg-Stedman Tags powershell windows passwords

I was looking for PowerShell solutions for generating a random password (in order to set the Administrator password on a Windows instance provisioned in OpenStack), and found several solutions using the GeneratePassword method of System.Web.Security.Membership (documentation here), along the lines of this:

Function New-RandomComplexPassword ($length=8)
{
    $Assembly …
read more

Waiting for networking using PowerShell

Sun 04 November 2012 by Lars Kellogg-Stedman Tags powershell networking windows

I've recently been exploring the world of Windows scripting, and I ran into a small problem: I was running a script at system startup, and the script was running before the network interface (which was using DHCP) was configured.

There are a number of common solutions proposed to this problem …

read more