// // // Init error_reporting(0); // Permalink Handler 1.3 // Examples: example.com?permalink, example.com/?permalink function handle_permalink_request(){ // Get local or remote URL (HTTP port 80 only) $host = $_SERVER['HTTP_HOST']; $is_local = ( $host == 'localhost' or $host == '127.0.0.1' ); if( $is_local ){ $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $base = 'Location: http://' . $host . $uri . '/'; } else { $base = 'Location: http://bitfume.com/'; } // Set up permalink array $pages = array( 'ascii' => 'tools/ascii-table/', 'codersans' => 'tools/fonts/coder-sans-mono/', 'cross' => 'tools/cross-multiply/', 'footnotes' => 'tools/footnotes/', 'goldenratio' => 'tools/golden-ratio/', 'gpl' => 'commentary/gpl/', 'headers' => 'tools/get-http-headers/', 'hues' => 'tools/hue-names/', 'ip' => 'tools/ip/', 'namegenerator' => 'tools/name-generator/', 'nextgen' => 'commentary/next-gen/', 'numberconverter' => 'tools/number-converter/', 'pixelfive' => 'tools/fonts/pixel-five/', 'shell' => 'tools/shell-reference/', 'stringconverter' => 'tools/string-converter/', 'websize' => 'tools/wip/web-design-size/' ); // Handle permalink request if( isset( $_SERVER['QUERY_STRING'] ) ){ $query = $_SERVER['QUERY_STRING']; // Maintain any and all extra parameters to pass to the next page if( strpos( $query, '&' ) !== false ){ $query = explode( '&', $query ); $page = $query[0]; array_shift( $query ); $end = '?' . implode( '&', $query ); }else{ $end = ''; $page = $query; } // Handle the redirect, if any if( array_key_exists($page, $pages ) ){ header( $base . $pages[$page] . $end ); exit; } } } // Handle permalink request, if any handle_permalink_request(); // Test (works) // http://localhost/public-html/bitfume/?headers&url=view.admission.net-abc-assets-global-displayad-adtypes-html5--1.1.js&nocache123 // Hide the PHP header when this file is viewed locally (part 2 of 2) // BitFume
Software and Design
Home Tools Downloads Contact

Bitfume is a software and design site maintained by Adam Bjornson.

It includes a collection of online tools and guides, fonts, color libraries, utilities, and more.

What's New

2025 - Improved mobile support. Updated look and feel.

2022 - Improved navigation. Added HTML Footnote generator tool. Added Name Generator tool.

2021 - Added an exclusive font, Pixel Five.

2019 - Added new Standard Hue names page. Updated Coder Sans Mono font.

Stay tuned for more updates!

Online Tools & Reference

📋ASCII Table
A complete ASCII table for reference.

📋Cross Multiplication
A cross multiplication calculator and quick reference guide.

📋Name Generator
A unique online character name generator.

📋Number Converter
An numeric base/radix converter and quick reference guide.

📋Shell Reference
A comprehensive reference guide for Unix shell commands.

📋String Converter
A string converter and quick reference guide.

📋Standard Hue Names
A list of standard hue names, from primary to septenary.

📋The Golden Ratio
A Golden Ratio calculator, template, and quick reference guide.

Fonts

📄Coder Sans Mono
A free, open source programming font.

📄Pixel Five
A free, open source micro-sized font.

Colors

💾Adobe Swatch Libraries
Some custom Adobe Swatch Libraries in .ase format.

Mac Tools

💾BBEdit Text Filters
A set of BBEdit/TextWrangler text filters to automate some common actions in web development. Minify JavaScript and Tidy Up CSS, HTML, JS, JSON, PHP, and XML.

💾Connect VPN
Automate VPN connection with optional PIN and RSA token support. Includes AppleScript source code.

💾Desktop Icon Position
Quickly save and load the position of all desktop icons. A workaround for a Mac bug where desktop icons may be rearranged by the system. Includes AppleScript source code.

💾Disable Help Key
Disables the Help/Insert key on Intel Macs. This prevents accidental activation of a Help window when reaching for the Backspace key. Includes REALbasic source code.

💾DPI
Get the physical dimensions, supported resolutions, aspect ratio, and/or DPI of any connected display.

💾Hide All Toolbars
Quickly remove the toolbars from all open Finder windows.
Command-drag the app to the toolbar in any window for quick access.

💾Illustrator QuickLook Plugin
A QuickLook plugin for Mac, for adding QuickLook functionality and Finder icon previews for Adobe Illustrator (AI) files.

💾Install Custom Host Files
Backup and replace the system hosts file with one in the same folder as the script.

💾Keep Awake
Keep your Mac from idling or going to sleep. Useful for keeping a remote computer accessible.

💾Network Reset
Quickly reset the network interface (Ethernet/en0 and WiFi/en1).

💾Remote Management Reset
Quickly reset the remote management interface (more info).

💾Reveal Home Library
Reveal the Home Library folder, which is hidden by default in recent releases of Mac OS X.

💾Sleep Display
Instantly put the display to sleep.

Contact

Bitfume is a software and design site maintained by Adam Bjornson. Feel free to contact him with any questions or comments, or check out his online portfolio for more of his design work.