Hacks

Part 2: Some Standard declarations and personalizing for your site

More foundational work. This stuff will configure for your site, and the routines that follow will regularly rely on them.

First, let's declare our modules:

#!/user/bin/perl
use strict;
use Net::LDAP;
use Authen::SASL;
use IO::Socket::SSL;
use Digest::SHA qw/sha1_base64/;
use Mail::Sendmail;
use Crypt::SmbHash;
use CGI;
use CGI qw/:standard/;

Tags:

Part 1: Foundations

In our journey of code, it is always useful to have a foundation. For starters you will need to make sure that you have the following PERL packages installed, as we will be using them regularly.

Net::LDAP
Authen::SASL
IO::Socket::SSL
Digest::SHA
Mail::Sendmail
Crypt::SmbHash
CGI

Fixed Tags:
Tags:

Opening Message

Hello and Welcome!

Over the course of my time as an Admin I've done a lot of Google searches and writeen a lot of code that has been very helpful to me in my work. I will be posting things here that hopefully will help you in your quest to master some of these technologies (Or simply stand on the shoulders of midgets).

I by no means consider myself a Perl or LDAP expert. It has been a "Learn as you go" ordeal. No formal training, just get things done on an as-needed basis.

I assume that you have a basic knowledge of PERL and LDAP.

Enjoy!

-Sean

Tags:
xrayspx's picture

HOWTO: Properly SPAM A Blog

For anyone spamming blogs, especially my blog, this is the proper way to do it. This comment is vaguely related enough that it seems like maybe the person just missed the point they were trying to make, or is a bad writer. In fact, it was copied from this Amazon review of a DVD from 2007.

xrayspx's picture

Backups

I've recently had to think about the mechanics of making idiot-proof backups on Linux and OSX. The specific machine I'm backing up is a Linux host with a 40GB drive. Historically only about 10% of the drive has been used, and the user has an IMAP mailbox, so all the mail is safe already.

xrayspx's picture

Moc se mi přání, jsem věděl, že české právo, které nyní

Tonight I really wish I knew Czech. I just had a whole conversation via Google Translate and it was less than satisfying. Here's the backstory:

xrayspx's picture

Converting Visio Stencils to OmniGraffle

Someday, we'll live in The Future, I swear it.

Last year I bought OmniGraffle 4 Pro, I really, really like that app, and it makes using Visio seem like self torture. Now only if the formats were open all the way around...

xrayspx's picture

OUCH!

[music | The Pixies - Break My Body]

If you'll remember back a few months, I lost a toenail after catching a drunken pit guy at Rev. Horton Heat. In today's installment, it's a fingernail.

Today I was putting some switches in a rack, and was putting in cage nuts the un-safe way. With a screwdriver instead of a cage nut tool. Here's what the aftermath of that can look like unless you're more careful than I am.

I'm putting pictures behind here for people who are queasy:

xrayspx's picture

This is fantastic

Thanks boingboing.

Here is video and a couple of scanned articles by James Leatham. He made a great SciFi short in 1981 using an Apple II for special effects. The long and short of it is that since the Apple didn't have the horsepower to produce the actual animations he wanted, he set it up to render still images and control a stop motion video setup.

Pages

Subscribe to RSS - Hacks