THE Ultimate Htaccess
AskApache.com.htaccess is a very ancient configuration file that controls the Web Server running your website, and is one of the most powerful configuration files you will ever come across. Htaccess...
View ArticleBash Script to Create index.html of Dir Listing
AskApache.comIf you use Apache to auto-generate directory index listings of files/dirs, using the IndexOptions directive, like at http://gnu.askapache.com/, and you have a large number of files and...
View ArticleBash Functions and Aliases for Traps, Kills, and Signals
AskApache.comDownload: trapstuff.txt See also: signal.h Bash Trap and Kill Aliases alias traps='trap -l|sed "s,\t,\n,g;s,),:,g;s,SIG,,g;s, \([0-9]\),\1,g"' alias kills='for h in $(builtin kill -l); do...
View ArticlePHP fsockopen for FAST DNS lookups over UDP
AskApache.comWhile reading up on gethostbyaddr on PHP.net, I saw a nice idea for using fsockopen to connect over UDP port 53 to any Public DNS server, like Google's 8.8.8.8, and sending the reverse...
View ArticleSeparate favicons for the Frontend and Backend
AskApache.comHere's a nifty little idea I had that has some merit. Separate favicons for separate areas of a site. Basically, I can't live without Firefox or Chrome and the way they use multiple tabs....
View ArticleHtaccess Rewrite for Redirecting Uppercase to Lowercase
AskApache.comWant to redirect all links with any uppercase characters to lowercase using pure mod_rewrite within an .htaccess file? Sure why not! OR how to use RewriteMap and mod_speling for those with...
View ArticleBash alternative to Reflector for Ranking Mirrors
AskApache.comSo if you don't already know, I am a long-time user and supporter of Arch Linux. Arch uses a package management tool called pacman that works similarly to yum or apt, but much better IMHO....
View ArticleShow Events that Occurred on this day in the Past
AskApache.comThe Function: askapache_calendar Note the screenshot is awesome due to my custom .vimrc. It is missing the randomized color in the code below. Download OpenBSD Calendars By default this...
View ArticleAlienware M18xR2 Review of Dells fastest Laptop
AskApache.comRise above all other laptops. The Alienware M18x is an extreme gaming laptop designed for those who want desktop quality performance but with the flexibility of a laptop — the best of both...
View ArticleKing Penguin Linux Notebook
AskApache.com The machine itself is super super ultra-thin, wafer thin, very cool looking. It's crazy light, I was amazed how slick it looked when it arrived.Huge amount of open-source...
View ArticleBuilding strace-plus
AskApache.comstrace+ is an improved version of strace that collects stack traces associated with each system call. Since system calls require an expensive user-kernel context switch, they are often...
View ArticleMySQL Performance Tuning Scripts and Know-How
AskApache.comUnless you are a total linux-freak-guru like myself, and even if you are, it can be enormously challenging and somewhat overwhelming to locate and eliminate MySQL bottlenecks. While many...
View ArticleRXVT Customization with ~/.Xresources
AskApache.comAfter many years of using all sorts of terminal emulators, from xterm to the Gnome terminal, to KDE Konsole to xfce4-terminal, lxterminal, vte, yakuake, rote, roxterm, putty, sakura,...
View ArticlePDF.js
AskApache.compdf.js is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance.pdf.js is community-driven...
View ArticleDiscover who’s tracking you online with Collusion
AskApache.comThe collusion add-on for Firefox is super-legit. Just navigate to any website normally, then just click the little collusion icon in the status bar and a full detailed report pops up in a...
View ArticleHelp the Free Software Foundation
AskApache.comBecome a Member Become a member of the Free Software Foundation today to help us reach our goal of $450,000 by January 31st....
View ArticleGet Number of Running Proccesses with PHP
AskApache.comRecently I had to setup a script to curl 10k urls, but it could only do 500 requests at any one time. 501 requests would cause a 503 server error, or even a 500. In order to work under...
View ArticleBoosting Googles PageSpeed Module with TMPFS
AskApache.comGoogle's mod_pagespeed speeds up your site and reduces page load time. This open-source Apache HTTP server module automatically applies web performance best practices to pages, and...
View Article