[eZPublish] Clear app cache

To clear eZPublish cache you can use the ezcache.php script, inside the /bin directory.

php bin/ezcache.php --clear-all

For ez4.X add the --purge option too.

To delete only a portion of the cache, use the --clear-tag option:

php bin/ezcache.php --clear-tag=template

You can list all the tags with the --list-tags option.

It’s also possible to delete the cache of a single siteaccess:

php bin/ezcache.php --clear-tag -s automobile_magazine

[Cisco] ASA – Displaying pre-shared keys

Normally you use the show run command to browse the running configuration. When doing it pre-shared keys for VPN tunnels are displayed as asterisks. In order to view the full configuration with unencrypted passwords, use the command:

more system:running-config

[OpenVZ] Enable iptable inside containers

To enable iptable inside containers, you must first make sure the proper modules are loaded on the host:

modprobe xt_state
modprobe xt_tcpudp
modprobe ip_conntrack

Don’t forget to add them to /etc/modules
Them inside the /etc/vz/vz.conf setting file, add the following line:

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state"

Then restart the vz service.

GParted Live

I’m pretty sure you already know gparted. Now you can have the power and simplicity of GParted on a biz-card size LiveCD ! Check here.