News

Upgrade OwnCloud offline [News]

15.05.2015 | 

On slower systems (such as the Raspberry Pi), updating OwnCloud through the web interface can take so long as to time out.  As alluded to by the upgrade message, it can be done offline.  To do so (on Arch):

cd /usr/share/webapps/owncloud
chmod +x occ
su -s /bin/bash -c './occ upgrade' http

Run command as user with no login shell [News]

13.03.2015 | 

To run a command as another user the following would normally suffice:

su -c '/path/to/command --switches ' user

For a user with no login shell, it is possible to specify the shell to use:

su -s /bin/bash -c '/path/to/command --switches' user

PGP Public Key [News]

26.03.2014 | 

My PGP public key, for encrypting email:

 

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)

mQENBFMzLloBCADXdcfggqKi+0k+qkx5bL5DucnBxYSZRWNdJBEUfDFSGKUvbGeh
sRJJ4ONMSRAeUXyvRJ50vpdTPaow2hN1DxwsbNeqSA+rKuwoqDoGWKt4KDp79jA/
ALQyVE9PK5QRV3hFTK/6ra1G8Uy67BXkSUR6gTqlmkRrzmlPBW9hu/hbyztLLnrq
NhdK3YiiPLsxmPBx2SV2URxSYF1+vQFHWK/9XLS3219HRkUbYkserrWdgZfZeDFt
qFVD3gnRTN14oZcu6MXfSmeDA5PyZDpJjVu1KuuSYUj9AniT6vfR3io4+LofXDSY
RNDURn85UpxGcQoSi6zgwr+HsFe0MF96ljl3ABEBAAG0H0FsZXggUGFya2VyIDxh (...)

Split (audio) files with ffmpeg [News]

05.10.2013 | 

ffmpeg -i input_filename -ss 00:00:00 -t 00:10:00 -acodec copy output_filename

 

Replace the 00:00:00 following -ss with the start time of the section you want in HH:MM:SS, and replace 00:10:00 after -t with the length of the section you want in HH:MM:SS

Custom home link in zpskeleton [News]

18.07.2013 | 

To make the link point to an aribtrary page instead of the gallery home page in the Zenphoto theme zpskeleton, edit inc-header.php and replace

<h3 class="logo"><a href="<?php echo getGalleryIndexURL(false); ?>"><?php printGalleryTitle(); ?></a></h3>

with

<h3 class="logo"><a href="http://site.example"><?php printGalleryTitle(); ?></a></h3>

Subscripts in Zenphoto theme zpskeleton [News]

17.07.2013 | 

A small issue, but out of the box the <sub> and <sup> tags to make characters sub and supercripts respectively don't work when using the zpskeleton theme for Zenphoto.  This can be fixed by editing style.css and removing sub and sup from the list following:

 /* #Reset & Basics (Inspired by E. Meyers)
================================================== */