The DNServer class can be used to implement domain name servers (DNS). It starts listening to DNS UDP port 53 to handle domain name resolution requests. The class decodes the DNS request, and invokes a configurable callback function that takes the DNS query type and the domain to resolve and returns an IP address.
Bae's Progress Bar Generator is very light-weight code that is designed to quickly and easily generate CSS bars showing your progress on a project. There is one bar for the progress you made today, and one for total progress. Any quantifiable goal can be measured, such as words or pages written per day. This was originally written for NaNoWriMo. This script gives you code that can be inserted into any HTML page. This script has been tested in IE, Opera, and Firefox, and it still works pretty well in Lynx or Links.
gCache is a PHP class that can be used to capture and cache Web page content. It can store cached content in files of a given directory. It uses OS independent file locking to prevent corruption from simultaneous attempts to update the cache files. First, it checks whether the cache file exists and has not expired. In that case, it retrieves the cache content into a class variable. If the cache does not exist or has expired, the class can start capturing the output of the current script. When the script is done, the class can store the captured content in the cache file.
This program sets up a socket, then execs a program that inherits that socket on an open file descriptor. You can set up just about any kind of socket. It is like socat, but for programs that know what a socket is. For example, you could have socketexec listen on a TCP port and when a client connects to that port, exec a server program that expects a connected socket as its standard input.
PHP gFeed is a PHP class that implements a stream wrapper to read and write RSS feeds. It can be used to parse RSS feeds with path specified in the URL and stores the parsed feed values in global variables. It can also generate RSS feeds from values from the same global variables.
gHttp is a class that implements an HTTP stream wrapper that can be used to access Web pages like files. It can submit HTTP POST and GET requests using regular PHP access functions with support for authentication and using proxy servers. It provides the stream wrappers ghttp, phttp, ghttps, and phttps for performing HTTP GET and POST requests respectively using SSL or not. They can also be used as replacements for the regular HTTP stream wrappers under PHP 5.1 or later. Optionally, it can cache the responses of the same HTTP requests in files of a given directory.
The Advanced Bash Scripting Guide is both a reference and a tutorial on shell scripting. This comprehensive book, the equivalent of 1,000+ print pages, covers almost every aspect of shell scripting. It contains 382 profusely commented illustrative examples, a number of tables, and a cross-linked index/glossary. Not just a shell scripting tutorial, this book also provides an introduction to basic programming techniques, such as sorting and recursion. Included scripts are the Game of Life, a Perquackey variant, a Morse code trainer, and an implementation of the Gronsfeld Cipher. This book is suited for both individual study and classroom use. It covers Bash, up to and including version 4.2. Note that users of miniaturized single-board computers running Linux, such as the Raspberry Pi and the Beagle Bone, would find this Guide useful for learning and running Bash scripts to explore and expand the capabilities of these small, but powerful machines.