One Laravel codebase with multiple databases and hostnames

What we want to achieve: These are the steps needed to accomplish this. Symlink to codebase Each hostname should have be a symlink to the original codebase. For example our codebase is in /var/www/codebase and if we have a new hostname we should create a symlink to this codebase, for example a symlink /var/www/host1 pointing […]

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: