Tip Cache
Your source for tech tips
TipCache is a service that stores tips, process, hacks, HOWTOs, anything related to technology and computers. Tips are categorized by tag words so they're easy to find.
The goal of TipCache is to ease the life of anybody who has spent countless hours googling for that one magical page that finally has the information you were looking for. There are many pieces of software out there, and there are many ways to bend each piece of software. Wouldn't it be nice if there was a single community-driven site that indexed all these tips and tricks in one place?
Welcome to TipCache.
› Recent Tips
Build PHP as a static binary
How to build PHP (from source) as a static binary.
Regular Expression to Validate a URL
This regular expression can validate most HTTP/FTP URLs
Regular Expression to Validate an Email Address
This regular expression can validate most email addresses.
Convert a static library (.a) to a shared object (.so)
A quick recipe on how to convert a static library (archive) to a dynamic one (shared object) in Linux.
Setup your own Certificate Authority (CA)
A quick rundown on how you can create a basic CA to self-sign your own certificates.
Protect a web area with Basic HTTP Authentication
Outlines the basic steps involved in protecting a web directory with basic HTTP authentication in Apache.
Reuse an existing ssh connection
Speed up additional SSH connections to the same server
Setup SMTP AUTH and TLS with Exim
This mini HOWTO shows you how to enable TLS and SMTP Authentication for your Exim 4.x server.
How to avoid ISP blocks on port 25 (SMTP)
Some ISPs will block outgoing connections to port 25 (SMTP) in attempt to curb spam delivery. Nowadays, unprotected Windows machines can quickly become part of spam-delivering botnets, and blocking access to third-party SMTP servers can curtail this.
How to Balance Database Load Across Multiple MySQL Servers
This is a poor man's method of using multiple MySQL servers (all replicating off a single master) to balance database load.
Manipulate the Return-Path of outgoing emails in Exim
Some MTAs require a valid email address in the Return-Path header. Here's how to set it explicitly.
Prevent Exim from adding a Sender header to outgoing mails
Exim likes to add a "Sender" header to outgoing emails. If this differs from the "From" header you set, some email clients will note this.
Convert an if/elseif/else statement into a switch/case
Sometimes a switch statement can be neater than a bunch of if/elseif/else lines. Here's a simple way to do it.
Encode a video into XVid format
Cameras and other digital devices can often capture video, but they don't use a space-friendly format. This script uses open source tools to encode an AVI into XVid and MP3.
Set up Virtual Hosts in Exim with Separate Aliases
This is a basic outline of how to setup virtual hosts in Exim with separate aliases for each domain.
› Most Viewed Tips
Setup SMTP AUTH and TLS with Exim
This mini HOWTO shows you how to enable TLS and SMTP Authentication for your Exim 4.x server.
Convert a static library (.a) to a shared object (.so)
A quick recipe on how to convert a static library (archive) to a dynamic one (shared object) in Linux.
How to Balance Database Load Across Multiple MySQL Servers
This is a poor man's method of using multiple MySQL servers (all replicating off a single master) to balance database load.
Regular Expression to Validate a URL
This regular expression can validate most HTTP/FTP URLs
How to avoid ISP blocks on port 25 (SMTP)
Some ISPs will block outgoing connections to port 25 (SMTP) in attempt to curb spam delivery. Nowadays, unprotected Windows machines can quickly become part of spam-delivering botnets, and blocking access to third-party SMTP servers can curtail this.
Reuse an existing ssh connection
Speed up additional SSH connections to the same server
Build PHP as a static binary
How to build PHP (from source) as a static binary.
Setup your own Certificate Authority (CA)
A quick rundown on how you can create a basic CA to self-sign your own certificates.
Regular Expression to Validate an Email Address
This regular expression can validate most email addresses.
Prevent Exim from adding a Sender header to outgoing mails
Exim likes to add a "Sender" header to outgoing emails. If this differs from the "From" header you set, some email clients will note this.
Protect a web area with Basic HTTP Authentication
Outlines the basic steps involved in protecting a web directory with basic HTTP authentication in Apache.
Manipulate the Return-Path of outgoing emails in Exim
Some MTAs require a valid email address in the Return-Path header. Here's how to set it explicitly.
Convert an if/elseif/else statement into a switch/case
Sometimes a switch statement can be neater than a bunch of if/elseif/else lines. Here's a simple way to do it.
Encode a video into XVid format
Cameras and other digital devices can often capture video, but they don't use a space-friendly format. This script uses open source tools to encode an AVI into XVid and MP3.
Set up Virtual Hosts in Exim with Separate Aliases
This is a basic outline of how to setup virtual hosts in Exim with separate aliases for each domain.
