Accessing Glassfish server admin when you’ve forgotten your admin password

For my own development I frequently rotate between different app servers and different versions, Tomcat, JBoss AS, Glassfish, trouble is when you work with one for a while and then go back to one of the others, you forget key things, like what your admin password was when you last installed/configured a server.

Whatever the reason, there’s a few different approaches to working around this issue with Glassfish, like creating a new domain and copy files from the old to the new, but this question on superuser.com has the best lifesaver response ever… this file has a backup password that you can use for your admin account, even if you have no idea what your original password was – just copy the value from this file:

glassfish3glassfishdomainsdomain1configlocal_password

Running Dropbox on Linux

Given that the Linux version of Dropbox installs itself to .dropbox-dist in your home dir, I often forget where it is (?) or how to start it.

Install instructions – here.

Start service running:

cd .dropbox-dist
./dropboxd

Or to run in background:

./dropboxd&

Leave running after logoff:

nohup ./dropboxd& > dropbox.out

 

Changing the gpu / main memory split on the Raspberry Pi

The memory allocation to the gpu is defined in /boot/config.txt using the gpu_mem property.

Minimum is 16, default is 64. If you’re running graphics intensive apps on the Pi you can increase this value. If you’re running in headless mode then you can decrease it to 16 or 32.

More info here.