PreserveFQDN and EscapeControlCharactersOnReceive with rsyslog
In legacy versions of rsyslog, if you want to use the option PreserveFQDN, you have to set the option before anything else, or it wouldn't work.If you are having issues sending logs from nxlog on...
View ArticleAndroid Automagic: enable or disable motion detection on Dlink webcams
This has been tested on DCS-930L and DCS-5020L<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><data version="1.25.0"><trigger...
View ArticlePipe tcpdump trafic into Wireshark from a remote server
This command will allow you to pipe trafic generated by tcpdump on a remote machine into Wireshark running on your local machine:ssh root@dest tcpdump -U -s0 -w - 'tcp port 389' | wireshark -k -i -
View ArticleBash: loop until a connection is successful
I use Terminator as my terminal app, and use the "watch for activity" feature a lot. With the following command, I'd get notified as soon as the connection is opened.while ! nc -vz localhost 3306; do...
View ArticleMigrating from Wordpress to Scriptogr.am
I just migrated this blog from Wordpress to Scriptogr.am.Mainly because this blog isn't so much active anymore, those SQL IOPS were useless for something that had become so static (I disabled the...
View ArticleSamba integrated to Active Directory on RHEL7
Tested with Active Directory 2003 and RHEL 7.0For RHEL 6.0 see hereI consider that the server is correctly set up, its hostname should be set accordingly to the Active Directory domain. It should also...
View ArticleAdding a disk to a Synology Hybrid RAID (SHR) (with no data protection) to...
I bought a Synology DS214j a couple of months ago.I bought only one 2TB disk in the first place. My plan was to buy a second disk a couple of months later so I would have a RAID1 array made of two...
View ArticlePostfix routing and rewriting of addresses based on LDAP attributes
Note: This has been tested on RHEL6 and Postfix 2.6.6 from RHEL repositories and version 2.10 from postfix.org. RHEL6 version contains a nasty bug, I recommend you use Postfix.org RPMS.We want to route...
View ArticleSwitching back from Chrome/Chromium to Firefox and a global rant about Google
I've used Chrome (and Chromium, depending on the platform, from now on I'll refer to it as Chrome) pretty much since it went out of beta.I started to get annoyed with the last few versions though.It...
View ArticleVerify expiration date for a local x509 certificate
Use this command:openssl x509 -noout -in /etc/pki/tls/certs/client.crt -datesOutput would be:notBefore=Feb 20 16:20:08 2015 GMT notAfter=Feb 20 16:20:08 2016 GMT
View Article