Blog

Migrate Salling Media Sync including License

Actually renewing the Licens fail, because the Licence server has gone offline. But finally i found a way to migrate it and keep it working as before.

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

Clear OS-X font cache

I did it again. Messed up something after installing font. So after removing duplicate fonts I need to clear the font cache. Its simple:

  • Close all running applications.
  • Type: sudo atsutil databases -remove into Terminal as Admin
  • Restart immediatly

This removes all font cache files. (system and all user font cache files)

Tags