Programming
POSIX
- Atomically rewrite the content of a file
- Capture the output of a child process in C
- Cause a process to become a daemon
- Cause a process to become a daemon in C
- Convert an IP address to a human-readable string in C
- Convert an IP address to the corresponding domain name in C
- Determine the fully qualified hostname of the local machine in C
- Establish a TCP connection in C
- Ignore SIGPIPE without affecting other threads in a process
- Listen for and accept TCP connections in C
- Listen for and receive UDP datagrams in C
- Listen on a TCP port with connections in the TIME-WAIT state
- Prevent a process from terminating when writing to a broken pipe
- Reap zombie processes using a SIGCHLD handler
- Send a UDP datagram in C
- Send an arbitrary IPv4 datagram using a raw socket in C
C
- Calculate an Internet Protocol checksum in C
- Capture Ethernet frames using an AF_PACKET ring buffer in C
- Capture Ethernet frames using an AF_PACKET socket in C
- Capture the output of a child process in C
- Cause a process to become a daemon in C
- Convert an IP address to a human-readable string in C
- Convert an IP address to the corresponding domain name in C
- Determine the fully qualified hostname of the local machine in C
- Establish a TCP connection in C
- Get the IP address of a network interface in C using SIOCGIFADDR
- Get the MAC address of an Ethernet interface in C using SIOCGIFHWADDR
- Get the index number of a Linux network interface in C using SIOCGIFINDEX
- Get the size of a Linux block special device in C
- Ignore SIGPIPE without affecting other threads in a process
- Listen for and accept TCP connections in C
- Listen for and receive UDP datagrams in C
- Prevent a C or C++ header file from being compiled more than once
- Prevent a process from terminating when writing to a broken pipe
- Reap zombie processes using a SIGCHLD handler
- Round towards minus infinity when dividing integers in C or C++
- Safely parse an integer using the standard C library
- Send a UDP datagram in C
- Send an arbitrary Ethernet frame using an AF_PACKET socket in C
- Send an arbitrary IPv4 datagram using a raw socket in C
C++
- Demangle an object code symbol generated by G++
- Pad an integer with leading zeros in C++
- Prevent a C or C++ header file from being compiled more than once
- Round towards minus infinity when dividing integers in C or C++
- Safely parse an integer using the standard C library
Java
- Bind a value to a named parameter in a Hibernate query
- Iterate over a map in Java
- Process an XML document using an XSLT stylesheet in Java
- Round towards minus infinity when dividing integers in Java
- Serve web pages using an embedded HTTP server in Java
Perl
- Accept named function arguments in Perl
- Connect to a database using Perl DBI
- Dump the content of an arbitrary Perl data structure
- Fetch the content of a given URL in Perl
- Fetch the content of a given URL in Perl using LWP::Simple
- Fetch the content of a given URL in Perl using LWP::UserAgent
- Get the size of an array in Perl
- Globally rename an identifier throughout a set of source files
- Install a Perl module
- Recursively compare the content of two arbitrary Perl data structures
- Select a single row from a database table using Perl DBI
JavaScript
- Create a cookie in JavaScript
- Delete a cookie in JavaScript
- Inspect the value of a cookie in JavaScript
- Make an AJAX request using XMLHttpRequest
Sed
Shell
- Act on all files in a directory tree using find
- Act on all files in a directory tree using find and xargs
- Add a directory to the current path
- Convert a text file from one character encoding to another
- Convert leading spaces to tabs in a text file
- Convert the line endings in a text file from DOS to UNIX format
- Copy a file from one machine to another using Netcat
- Create a file filled with zeros
- Display the size of a Linux block special device
- Display the value of an environment variable
- Persistently set the value of an environment variable for a given user
- Persistently set the value of an environment variable for all users
- Set the value of an environment variable