Create video from iOS simulator

More than one file was found with OS independent path ‘META-INF/module_release.kotlin_module’

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 […]

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.

Update network WordPress with command line

Update network WordPress with command line:

Useful NVM commands

Just some commands that I always have to lookup. NVM is a tool that manages your node versions. An important concept is that your node versions are installed into their own directories together with the packages that are installed by this version of node. So if you install another version of node, you have to […]