Use Composer and Bower behind a firewall that blocks the port
Composer { ... "config": { ... "github-protocols": [ "https" ], [...]
View ArticleDeep insight of xdg-open
In a previous post I explained how to set the default browser with xdg-open but it’s not limited to this kind of application. To name a few examples where xdg-open is [...]
View ArticleMonitor PHP warnings and fatal errors
Create the file /usr/local/bin/error-check with the bash script below. #!/bin/bash LOGFILE=/var/log/apache2/error.log EMAIL=you@example.com errors=$(grep "PHP Fatal error" "$LOGFILE" | wc -l)...
View ArticleGit McFly – make commits in the past or in the future
DATE FORMATS The GIT_AUTHOR_DATE, GIT_COMMITTER_DATE environment variables and the –date option support the following date formats: Git internal [...]
View ArticleMigrate old gogglesdb database
Goggles Music Manager is a lightweight manager with a plain but efficient window layout. After the quick startup you can manager media files in Ogg Vorbis ,Opus, FLAC, MP3 and [...]
View ArticleGit: bad object HEAD
I’ve never had this error before and I also didn’t know what could have caused this issue. In my specific case I could no longer use the commands status and [...]
View ArticleHow to solve a RangeError when the maximum call stack size exceeded
When trying to copy an object with AngularJS’ copy() it might be that Angular throws a RangeError. This is the case if your object has circular dependencies which is troublesome [...]
View ArticleConfiguring a system-wide HTTP or SOCKS proxy in Chrome/Chromium
Other than Firefox, Chrome/Chromium uses the system’s proxy settings so in order to route your traffic through a proxy you’ll need to configure it on the system level. In general the [...]
View ArticleSet Firefox as the default browser on Linux
Many different browsers are available on Linux, including Chrome/Chromium, Firefox and Epiphany. All of them can be installed and used at the same time. If you click on a link in [...]
View ArticleCreate virtual network devices on a KVM- and OpenVZ- based Linux VPS
There are numerous ways to create your own bridge. One way is using VDE (Virtual Distributed Ethernet) which will be covered by this article. All the steps described here work perfectly [...]
View ArticleInstall Docker on a Debian-based VPS
This howto describes how to get docker working on the older Debian version 6 (Squeeze) on a VPS which you maybe haven’t migrated to Debian 7 (Wheezy) yet since its [...]
View ArticleHow to create a full-fledged docker image
Last week we saw how to get docker installed on your Debian-based system. If you haven’t installed docker by reading this article, take some minutes and follow the steps of [...]
View ArticleHow to use unix domain sockets with the Zend Framework
Using the client $client = new Client(); $client->setUri('unix:///run/docker.sock:/v1.13/version'); $client->setOptions(array( 'maxredirects' => 0, 'timeout' => 30 )); $response =...
View ArticleHow to output a debugging message in MySQL?
select concat ("Updated ", row_count(), " rows") as ''; #DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*10) DAY)); select concat ("Random date: ", DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*100) DAY)))...
View ArticleSet global constants and variables in AngularJs
Using the root scope // app.js angular.module('myApp', [ 'ngCookies', 'ngResource', 'ngSanitize', [...]
View ArticleAdd a printer, attached to a FRITZ!Box, to your printer list in cups
See the screenshots made offline.
View ArticleConvert accent characters to standard ASCII
Example: http://de.wikipedia.org/wiki/%C5%A0 utf_decode can’t handle that character because what that function does is converting utf-8 characters to latin-1.
View ArticleCreate a font stroke in Gimp
Add text to a layer create a new transparent layer below the text layer select text, in text layer right-click on ‘text to path select transparent layer click “Select > From Path” and click [...]
View Article