# Chocolate Chip Pop Tarts…

Whilst checking out the vending machine at work, which is usually stocked with the usual vending machine faire, I noticed that they replaced our regular Brown Sugar Pop Tarts with something a bit more chocolatey. This is awesome for me, because I fucking love chocolate.

Now, I don’t get out much, so I honestly had no idea that there were actually Chocolate Chip Pop Tarts in the world.

Yes, I have been living under a rock for the past dozen or so years. Why do you ask?

However, now that I’ve actually had the Chocolate Chip Pop Tarts, I must say — don’t bother. Just not that impressive. That “Good source of 7 Vitamins and Minerals” label appears to suck most of the joy and taste out of the chocolate part. Damn you, Kellogg’s.
How about some Bacon Pop Tarts? Oh, wait… it’s been done and I’m so trying this.

# Creating Remote Shares in Windows from the Command Line

No doubt the first question one would have may well be, “Why in the world would you want to do such a thing?”  Well, if you have a domain and prefer to use the command line, then this could help you. Obviously, there’s little need for this type of thing on a standalone computer.
So, how do we do it?
You’ll need a copy of rmtshare.exe — it’s in the Windows NT Resource Kit, but Microsoft has also placed it in the public domain. You can download a copy of it from Microsoft’s FTP site at:
Place the file in a folder then run it to extract a readme.txt file and the executable itself.
No better way than to demonstrate:
Let’s say you have a server called webserver01 and it has a directory called D:\Logs from which you wish to create a share. Let’s also say that we want the share to be readable only to a single domain user or group. We’ll call it “MYDOMAIN\LogReaders”.
Easy enough:
rmtshare \\webserver01\logs=d:\logs /REMARK:"Log files" /GRANT "MYDOMAIN\LogReaders":r
Very nice.
What if you have, say, 10 or even 1000 servers you want to do exactly the same thing on in your domain?
for %f in (
webserver01
webserver02
...
webserver1001
webserver1002
) do (
rmtshare \\%f\logs=d:\logs /REMARK:"IIS Logs" /GRANT "MYDOMAIN\LogReaders":r
)
One could also, if desired, just feed the for command a file that has all of the server names in it — one server per line — to accomplish the same thing in even fewer lines:
for /f "usebackq tokens=1" %f in (
type c:\path\to\serverlist.txt
) do (
rmtshare \\%f\logs=d:\logs /REMARK:"IIS Logs" /GRANT "MYDOMAIN\LogReaders":r
)
Or even one line, if desired:
for /f "usebackq tokens=1" %f in (type c:\path\to\serverlist.txt) do ( rmtshare \\%f\logs=d:\logs /REMARK:"IIS Logs" /GRANT "MYDOMAIN\LogReaders":r )
I love the command line.

# The Beer Prayer

Our Lager,
Which art in barrels,
Hallowed be thy drink.

Thy will be drunk
(I will be drunk)
At home as in the tavern.

Give us this day our foamy head,
And forgive us our spillages,
As we forgive those who spill against us.

And lead us not into incarceration,
But deliver us from hangovers.

For thine is the beer,
The Bitter and the Lager,
For ever and ever,
Barmen.