Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralf Albert RalfAlbert

View GitHub Profile
@marcoarment
marcoarment / rss-subscribers.sh
Created Sep 25, 2012
Bash script to parse Apache log for a count of RSS subscribers and email it to you
View rss-subscribers.sh
#!/bin/bash
# --- Required variables ---
RSS_URI="/rss"
MAIL_TO="your@email.com"
LOG_FILE="/var/log/httpd/access_log"
LOG_DATE_FORMAT="%d/%b/%Y"
# --- Optional customization ---
@ocean90
ocean90 / newinstall.php
Created Nov 18, 2011
Drop existing WP install and install a new clean WP
View newinstall.php
<?php
/* Place the file into WordPress root folder and open the file in your browser. */
/* Settings */
define( 'BLOG_TITLE', 'WordPress Dev' );
define( 'USER_NAME', 'admin' );
define( 'USER_EMAIL', 'foobar@example.com' );
define( 'USER_PASSWORD', '123456' );
define( 'WP_SITEURL', 'http://wp.dev' );
You can’t perform that action at this time.