'Divers' Category

  • Remount root – mount: / is busy

    October 5, 2016
    To solved: mount / -o remount,ro mount: / is busy Do: echo “u” > /proc/sysrq-trigger mount / -o remount,ro
  • WordPress dashicons css class names

    July 14, 2016
    Wordpress provide a list of css icons. Php Source code: static public function dashicons() { $r = ”; if (preg_match_all(‘/^\.(dashicons-[\w-]+)/m’, file_get_contents(ABSPATH.’wp-includes/css/dashicons.css’),$dashicons) ) { asort($dashicons[1]); $r .= ‘<div><div class=”wrap” style=”display:inline-block”>’; foreach ($dashicons[1] as $v) { if ($v == ‘dashicons-before’) continue; $r .= sprintf(‘<div style=”background-color:#000;color:#fff;border:solid 1px #fff” class=”dashicons-before %s”>%s</div>’.”\n”,$v,$v); } $r .= ‘</div></div>’; } return $r; } […]
  • Copy / clone packages from servers

    February 2, 2016
    If you want to copy or clone packages from one Debian or Ubuntu server to another, here is how to to it: ssh server1 ssh server2 ‘dpkg –get-selections’| dpkg –set-selections apt-get -u dselect-upgrade
  • SMTP, Send email with telnet

    July 29, 2015
    $> telnet localhost smtp Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. 220 mailtest ESMTP Postfix (Debian/GNU) $> ehlo example.com 250-my-new-mailserver 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN $> mail from:<nico@example.com> 250 2.1.0 Ok $> rcpt to:<admin@example.com> 250 2.1.5 Ok $> data 354 End data with <CR><LF>.<CR><LF> $> Hi Admin, $> $> […]
  • Fixing damaged /var/lib/dpkg/available

    March 17, 2015
    Sometimes the file /var/lib/dpkg/available is corrupted. When you use the package managing tools you get messages similar to these: dpkg: warning: parsing file ‘/var/lib/dpkg/available’ near line 1128 package ‘dash’: missing description dpkg: warning: parsing file ‘/var/lib/dpkg/available’ near line 2687 package ‘login’: missing description Usually this is not a big issue but it may be annoying. […]
  • Welcome!

    April 9, 2014
    I’m Starting the website! It’s time to share what I’ve learned the last 20 years and to write down how I make my technical choices. You can find here as well all the tips command that I never remember 😉