To base64 encode a file: To decode it:
To base64 encode a file: To decode it:
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 […]
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 […]
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 […]
I saw this error when I was compiling a Titanium app. After some time I figured out this was happening after I added a second module to my project made in Kotlin (and not in Java). Apparently Kotlin adds this file to the build using the name of the directory. Because Titanium modules always have […]
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 […]
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 […]
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 […]
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: