Wednesday, March 21, 2018 in Miscellaneous
There are somea fun toys in bash. I would not rely on it for a production script, but here is one such things : exec 5<>/dev/tcp/10.1.0.254/8080 bash$ echo -e "GET / HTTP/1.0\n" >&5 bash$ cat <&5
Monday, March 05, 2018 in Commands
Here is how to rewrite a git commit history, for example to remove a file : git filter-branch –index-filter "git rm --cached --ignore-unmatch ${file}" --prune-empty --tag-name-filter cat - -all
Monday, March 05, 2018 in Miscellaneous
You can choose to ignore write-protection by setting Tools > Options > libreOffice Writer > Formatting Aids > Protected Areas > Ignore protection.
Monday, March 05, 2018 in Miscellaneous
Commands Get statistics : qmail-qstat list queued mails : qmail-qread Read an email in the queue (NNNN is the #id from qmail-qread) : find /var/qmail/queue -name NNNN| xargs cat | less Change queue lifetime for qmail in seconds (example here for 15 …
Monday, March 05, 2018 in Miscellaneous
Get the inode number from lsof, then run debugfs -w /dev/mapper/vg-home -R 'link <16008> /some/path' where 16008 is the inode number (the < > are important, they tell debugfs you manipulate an inode). The path is relative to the root of …
Monday, March 05, 2018 in Miscellaneous
ldap_server ldap { auth_ldap_cache_enabled on; auth_ldap_cache_expiration_time 10000; auth_ldap_cache_size 1000; url "ldaps://ldapslave.adyxax.org/ou=Users,dc=adyxax,dc=org?uid?sub?(objectClass=posixAccount)"; binddn …