UserDB Perl module
UserDB is a simple Perl management module for users and groups. It uses a flat file database to store information and as such does not rely on any external resource. It provides an interface to do simple functions for implementing users and groups, and handles errors gracefully.
my $userdb = UserDB->new("user.db"); # Connect to the database
$userdb->create_user("tanya"); # Create a new user
$userdb->set_attributes("tanya", name => "Tanya Harding", email => "tanya.harding\@example.com"); # Set some attributes
my %attrs = $userdb->get_attributes("tanya"); # Get attributes
$userdb->create_group("Finance Staff"); # Create a group
$userdb->add_to_group("tanya", "Finance Staff"); # Add user to group
Sanitize Perl module
This is a simple Perl module to sanitize user input. Here are some examples of its use:
sanitize("fd gfd*#(sd)", alpha => 1); # Returns: "fggfdsd"
sanitize("The ip is 192.168.3.53:80", ip => 1); # Returns: "192.168.3.53"
sanitize("The ip is 192.168.3.53:80", port => 1); # Returns: "80"
sanitize("The ip is 192.168.3.53:80", ip => 1, port => 1); # Returns: "192.168.3.53:80"
sanitize("Blah", password => 1); # Returns: "****"
sanitize("sf d54_d <script>alert('test');", html => 1); # Returns: "sf d54_d <script>alert('test');"
sanitize("Some email is: email@example.com, email me now", email => 1); # Returns: "firstname.lastname@example.org"
sanitize(" some thing ", rtrim => 1); # Returns: " some thing"
sanitize(" some thing ", ltrim => 1); # Returns: "some thing "
sanitize(" some thing ", nospace => 1); # Returns: "something"
sanitize("This is a %3Cscript%3Ealert('test');", noquote => 1, noencoding => 1); # Returns: "This is a scriptalert(test);"
validate("invalid email@some!host", email => 1); # Returns: 0
validate("10.0.0.1", ip => 1); # Returns: 1
validate("invalid.ip.7.4", ip => 1); # Returns: 0
NodePoint is a free ticket management system based on Bootstrap meant to be elegant, easy to install and easy to use, yet still offer many typical features such as user management, access levels, commenting, release tracking, email notifications and a JSON API. It can be used as a bug tracking site for a developer, products support for a company, help desk system, project tracking for a group or organization, and more.
Modern LaTeX template
A simple Node.js chat client with a JSON API:
|/help/||API usage information|
|/register/||Register a user|
|/users/||See a list of users|
|/post/||Post a message to the public feed|
|/message/||Send a private message|
|/feed/||View the public feed and your messages|
To use, simply run the file with Node and load a browser to http://localhost:8080/.
This is a simple PHP script that provides country and country code information based on IP addresses.
Real Time Event Monitor
This Perl module is a simple way to save and load configuration options in the Windows registry. While other Config modules exist, they mostly rely on flat files, which is the norm on Unix systems but not as useful on Windows.
The registry provides an easy place to store values and this module takes advantage of that. It uses the Win32API::Registry low-level API to access the values.
my $cfg = Config::Win32->new('Vendor name', 'Application name');
DB 2 HTML
DB 2 HTML is a utility to export data from a database to HTML. It supports the following databases:
- MS SQL Server
- Oracle Server (requires Oracle 32bits client)
- SQLite 3
- Generic ODBC
Binaries for Windows and Linux are included.
Command line Twitter client
View full archive
Hi, my name is Patrick Lambert and I'm a freelance content creator living in Montreal, Canada. I have over 15 years of experience in technology and am A+, i-Net+, MCSA, MCTS and Linux certified.
I've written for...
...and many more!
Movies: Star Wars, Planet of the Apes
TV shows: The Walking Dead, Breaking Bad, Game of Thrones
Devices: PC, iPhone, iPad
Games: Half Life 2, KOTOR, Fallout 3
MMOs: World of Warcraft, SWTOR
- NodePoint - Ticket tracking system
- Steam - My Steam profile
- GitHub - My GitHub code
- CPAN - My Perl modules
- IMDb - My movie ratings
- Android Apps - The Android Apps I've created.
- Commissions - Information if you want to commission art from me.
- Aurebesh - Learn the language of Star Wars.
- Crypt - Online encryption and hashing service.
- Headers - Headers and browser information.
- WebDB - Simple cloud configuration store.
- Samples - Hire me here.
- 3D Models - The 3D models I've done and released for free on ShareCG.
(C) 2014 Patrick Lambert