Skip to content

Instantly share code, notes, and snippets.

View halfdan's full-sized avatar
🇩🇪

Fabian Becker halfdan

🇩🇪
View GitHub Profile
2010-10-01 10:29:12: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:9000
2010-10-01 10:29:12: (mod_fastcgi.c.3356) response not received, request sent: 1010 on socket: tcp:127.0.0.1:9000 for /index.php?module=about&show=&id=&action=&page=&value=&subid=&sortorder=, closing connection
2010-10-01 10:29:14: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:9000
2010-10-01 10:29:14: (mod_fastcgi.c.3356) response not received, request sent: 1010 on socket: tcp:127.0.0.1:9000 for /index.php?module=about&show=&id=&action=&page=&value=&subid=&sortorder=, closing connection
2010-10-01 10:29:33: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:9000
2010-10-01 10:29:33: (mod_fastcgi.c.3356) response not received, request sent: 1010 on socket: tcp:127.0.0.1:9000 for /index.php?module=about&show=&id=&action=&page=&value=&subid=&sortorder=, closi
#!/bin/bash
# Author: Fabian Becker <[email protected]>
#
# Extracts a database of an sql dump
# usage: ./grep-db.sh dump.sql dbname
line=`grep -n "CREATE DATABASE $2" $1 | cut -d ":" -f 1`
next=`sed 1,${line}d $1|grep -m 1 -n "CREATE DATABASE" |cut -d ":" -f 1`
end=$(($line + $next - 1))
sed -n ${line},${end}p $1
class VHost
attr_accessor :hostname
attr_accessor :file
attr_accessor :changed
attr_accessor :config
attr_accessor :id
@changed=false
def initialize(config,hostname,id=0)