Custom colors for AdminLTE

There is some information about using different colors for the AdminLTE dashboard, but this is either too old (still uses Grunt and LESS files) or there's not enough information for someone who is not experienced in running the NPM scripts. So below are the steps to build the AdminLTE CSS with custom colors for the […]

Laravel and WordPress combined

WordPress and Laravel are popular frameworks that are good at what they are designed for. WordPress excels in managing content with revisions, taxonomies and a pretty good UI. Laravel is good in managing structured data with its eloquent models, routing and securing access to routes. Sometimes a project requires both the management of a lot […]

CLI Titanium, Android, iOS

Titanium For Titanium you can use the appc or the ti command line NPM client. The ti client is the open source version and the one I use. You use it together with the alloy client. Here are some commands that I use a lot. Create a new alloy project Location of AndroidManifest.xml for Titanium […]

Docker info

Some docker info and commands I use a lot. Bash shell Custom prefix By default Docker prefixes your container and volume names with the directory it's running in. For example I have a couple of projects with the trunk sub directory where I run docker from. If I run Docker from this sub directory, my […]

Execute command line PHP script from within WordPress

You can try to load the wp-load.php of wp-config.php files manually, but then some defines are not set (like HTTP_HOST). An easier way is to use the eval-file method of the wp-cli package. No you can just do: And in your file, you can call all the usual WordPress methods. Only make sure to explicitly […]

Openbox pipe menu Network Manager

A little script to add your available networks to the Dropbox menu and to let it connect / disconnect. Now call the script above in your .config/openbox/menu.xml file:

Mirror git repository

I had to push to 2 GitHub repositories from 1 SVN repository. After some searching I came with the following solution. I suppose there are better ways to do this, but this works for me: After you pushed to the first repository, just use the following command to push to another one:

Apache Authentication header for Bearer token

By default, Apache doesn't allow the Authentication header that is used for bearer tokens. To make it work, I had to do this: I had to use the SetEnvIf line, but some people report that they had to use the RewriteRule line.