Skip to content

Instantly share code, notes, and snippets.

View cfedde's full-sized avatar

Chris Fedde cfedde

  • Loud Noise System Services
View GitHub Profile
@cfedde
cfedde / gist:5086715
Created March 4, 2013 23:47
for thumbs on #apache
/usr/sbin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server crf.example.com (/etc/httpd/conf.d/vhostcrf.conf:1)
port 80 namevhost crf.example.com (/etc/httpd/conf.d/vhostcrf.conf:1)
Syntax OK
#!/usr/bin/env perl
use Modern::Perl;
use autodie;
my $x;
open my $f, "<", $ARGV[0];
seek $f, $ARGV[1], 0;