-
Recent Posts
Recent Comments
Archives
- December 2021
- July 2021
- June 2021
- April 2021
- March 2021
- February 2021
- December 2020
- November 2020
- October 2020
- June 2020
- August 2019
- July 2018
- February 2018
- December 2017
- July 2017
- March 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- May 2016
- February 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- April 2015
- December 2014
- November 2014
- October 2014
Categories
Meta
Category Archives: Uncategorized
reCaptcha, allow_url_fopen
reCaptcha is easy, has plenty of tutorials. However you will find also many comments telling that it always returns bool(false). Many user eventually accept the false reply as “there is a reply at least, so I validate my form”. The … Continue reading
Posted in Uncategorized
Leave a comment
copy directories, only updated files
Use rsync, like: rsync -a –ignore-times updatedfiles/* /var/www/filestoupdate/
Posted in Uncategorized
Leave a comment
Owncloud slow on Windows
Owncloud synchronization on a windows 7 machine used to be insanely slow, sometimes to the point of need to hard reset. I could solve this by: – open the Internet settings – connections tab – network parameters – uncheck the … Continue reading
Posted in Uncategorized
Leave a comment
Postfix: Delete all emails from specific domain
In one shot: postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } /@domain\.tld/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –
Posted in Uncategorized
Leave a comment
SVN revert to revision X
revert to version XXX svn update -rXXX svn logs, last 10 entries svn log -l 10 svn log, more info from version XXX svn log -rXXX –verbose
Posted in Uncategorized
Leave a comment
ramfs – temporarily mount filesystem in ram to speed things up
ram is faster than disk, this is less and less true with ssd, but in many situations it is still true, and can be useful to use the ram to serve files at high speed access. Example script that first unmount … Continue reading
Posted in Uncategorized
Leave a comment
postfix / smtpd – disable relay to specific domains
/etc/postfix/main.cf make sure you have included this: hash:/etc/postfix/access, in smtpd_sender_restrictions = ……………. Note you can also avoid receving to a specific domain if you add this also in reject_unauth_destination ruleset. /etc/postfix/access Have your domain listed like: evildomain.tld REJECT outta.here … Continue reading
Posted in Uncategorized
Leave a comment
Open portmapper – disable rpcbind
you can use firewall rules, or if you dont use nfs, just stop it and remove it from starting: service rpcbind stop update-rc.d nfs-common disable update-rc.d rpcbind disable Check that it is not listening to requests with: rpcinfo -T udp … Continue reading
Posted in Uncategorized
Leave a comment
This site can’t provide a secure connection uses an unsupported protocol. ERR_SSL_OBSOLETE_CIPHER HIDE DETAILS Unsupported protocol The client and server don’t support a common SSL protocol version or cipher suite.
This is a Google Chrome move for your own good. (After version 53) Make sure your ssl.conf in apache mods does not allow old/weak protocols, have something like: SSLCipherSuite ALL:!ADH:!RC4:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT
Posted in Uncategorized
Leave a comment