Skype on Debian 8: missing libGL.so.1

After upgrading to Debian 8.0 (jessie) Skype stopped working with the following error message: skype: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory There is a really simple fix available: sudo ln -s /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 /usr/lib/i386-linux-gnu/ Done.

May 22, 2015 · 1 min

Laravel v5.0.20: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()

When creating a new Laravel project and running composer update you might get the following error: Writing lock file Generating autoload files PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /tmp/foo/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28 [Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() Script php artisan clear-compiled handling the post-update-cmd event returned with an error [RuntimeException] Error Output: PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /tmp/foo/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand .php on line 28 update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN] See also this issue on Github: https://github.com/laravel/framework/issues/8127 ...

March 25, 2015 · 1 min

SQLgreyGUI: A web interface for SQLgrey using #Laravel 5

Today I released a new version of SQLgreyGUI . It’s a web interface for SQLgrey using the Laravel 5 PHP framework. Installation is pretty straight forward – check the README on GitHub.

March 21, 2015 · 1 min

PHP: Disable Xdebug for CLI

In most scenarios you won’t need Xdebug on your CLI. Also it is recommended to disable it if you use Composer . sudo php5dismod -s cli xdebug

February 10, 2015 · 1 min

Twig: Render String as Template

In case your template is not located in a file but in the database Twig allows you to render a string: $twig_env = new Twig_Environment(new Twig_Loader_String); $output = $twig_env->render('This is {{ foo }}', [ 'foo' => 'an ordinary string', ]); // $output now contains: This is an ordinary string

January 19, 2015 · 1 min

shred a hard drive

If you want to destroy all data on a device use the following command. shred is part of the coreutils package. /usr/bin/shred -v -f /dev/sda Data destroyed by shred can’t be restored unless you invest a lot of time and use special equipment. Use with caution. The option -n can be used to increase the amount of iterations (default: 3).

October 7, 2014 · 1 min

git: set new origin

In case the URL of your remote git repository has changed, update your local repository as follows: git remote set-url origin git@server:path/to/repository.git

October 1, 2014 · 1 min

Debian: waiting for root filesystem fails (using software raid)

If your system does not boot up und you’re dropped to an initramfs shell after “waiting for root filesystem” fails – check your mdadm config /etc/mdadm/mdadm.conf Make sure it contains the correct definitions which are available with mdadm --detail --scan Adjust your config and run update-initramfs -u -k all to make the system bootable again.

September 29, 2014 · 1 min

Debian: get around maintenance shell asking for root password

Once in a while it might happen to you that you attempt to boot some Debian machine and some fsck errors occur. Debian will then present you a maintenance shell and ask for your root password. There are two options at this point: Enter your root password or hit CTRL-D to continue. Continuing will not resolve the problem as the fsck error needs to be fixed manually. If you don’t know your root password or you’re just to lazy to type in a 30 character string the following might help. ...

August 11, 2014 · 1 min

fail2ban: unban IP from iptables

In case an IP gets banned by fail2ban and you want to remove it: The following command gives you an overview of all chains and the banned IPs along with their corresponding number. iptables -L -n --line-numbers To unban an IP use this command with the correct chain and number: iptables -D fail2ban-ssh 2 Another method is the usage of fail2ban-client: fail2ban-client set sasl unbanip IP

April 11, 2014 · 1 min