Blog

Wordpres and git - config tweaks


switch ( $_SERVER["HTTP_HOST"] ) {
 case "caj.local" : /** Local Config **/
  define("DB_NAME", "<local databasename>");
  define("DB_USER", "<local username>");
  define("DB_PASSWORD", "<pass>");
  define("DB_HOST", "localhost");
  break;
 case "caj.donkeymedia.eu.local" :
  /** Testing Server Config **/
  define("DB_NAME", "<testing databasename>");
  define("DB_USER", "<testing username>");
  define("DB_PASSWORD", "<testing pass>");
  define("DB_HOST", "localhost");
 break;
 case "caj-koeln.de" :
  /** Life Config .... **/

A small Shell Script to start dropbear at my android

You can execute it on a rooted phone using the Smanager App


#!/system/bin/sh
DROPBEAR=`which dropbear`;
#echo
$DROPBEAR case $1 in start|Start)
echo "starting dropbear ..." cd /data/dropbear su -c "$DROPBEAR -v -s -g" ;; stop|Stop)
echo "stopping dropbear ..." killall dropbear ;; *)
echo "usage: dropbear.sh [start|stop]" ;;
esac

http://tn.genano.de/wordpress/2009/09/18/howtotutorial-dropbear-ssh-fur-android-cyanogenmod-konfigurieren/

Wordpress plugin Cachify cache clear

The Wordpress Plugin Cachify provides a very fast render cache for annonymus users, but it lacks a method to clear the cache if the user is not admin. This tiny plugin solves this issue.

Tags

Unban IP blocked by fail2ban

Login to the Server as root Use to and search for the banned ip. If you can't login: Try using a different IP. You may use you Mobile phone thetering. 

iptables -L -n

You'll get something like