These code snippets demonstrate how to access command line arguments for a Node.js program.
jQuery provide a convenient way to access elements using CSS selectors. Node.js has a package called Cheerio that allows us to make jQuery style code. The Request module can be used in tandem to provide the ability to perform an HTTP GET to fetch remote HTML documents. That is useful for web scraping.
Perl is commonly used for sysadmin tasks which frequently involves managing files. These examples demonstrate how to read, write, and append files with Perl.
This example shows how to get information from the user using Standard Input (STDIN), which is typically the keyboard.
Exif information is a group of meta tags stored on an image. It can contain information about the image, the camera used to take it, software used to manipulate it, latitude and longitude, and even more. This example shows how to use Perl to extract and manipulate image exif data.
This example shows how to list the contents of directories in Perl. It also demonstrates how to change directories, create directories, differentiate between files and directories, and use a regular expression to limit the results or search for particular file names or extensions.
Serial communication is still used a bit today. Arduino's are fun programmable microcontrollers and the main method of communication is serial over USB. This example will show you how to communicate using serial in Perl.
RCON, or Remote Console, is a way to manage a minecraft server from another computer with a console. The Minecraft::RCON module needs to be installed from CPAN first.
CPAN is a Perl tool for installing and managing modules. CPAN stands for the Comprehensive Perl Archive Network. There are many mirrors around the world that host the same CPAN archive. Sometimes mirrors shut down or you may want to add mirrors that are closer to you. These examples demonstrate how to add and remove mirrors from your configuration.