Jul 22 2016

postfixadmin – zmiana hasła administratora

doveadm pw -s MD5-CRYPT -p password | sed 's/{MD5-CRYPT}//'
update admin set password=’CRYPTED PASSWORD’ where username=’USERNAME’;

Sep 4 2015

Bitdefender Security for Virtualized Enviroments

Bitdefender Security for Virtualized Enviroments
default login: root
default password: sve
setup command: sva-setup
communication server: ip address:8443
update server configuration: ip:7076

Feb 26 2015

gammu sending sms

gammu sendsms TEXT 048123456789 -text "Halooo .."

Feb 20 2015

If your SSL certificate was received in DER format, here is the command to convert it to PEM:

openssl x509 -in signed_cert.der -inform DER -out server.crt

Feb 6 2015

compiling mariadb 10.0 on Slackware

add option
-DWITH_JEMALLOC=NO
to slackbuild

May 15 2014

HDD check on linux

1. Check HDD for bad block
sudo badblocks -v /dev/sda1 > bad-blocks
2. Pass the file to fsck
sudo fsck -t ext4 -l bad-blocks /dev/sda1

Jan 15 2014

clamdscan

Przykład clamdscan
sudo -u clamav clamdscan /home/ftp/samba_public/

Jan 15 2014

Linux random password

in bash script
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 16 | xargs

function in $HOME/.bashrc
genpasswd() {
local l=$1
[ "$l" == "" ] && l=16
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs }

Dec 20 2013

PHP Warning: preg_match(): Compilation failed: support for \P, \p, and \X has not been compiled

recompile pcre with option

–enable-utf8 –enable-unicode-properties

Nov 22 2013

British Airways – #lookup in Piccadilly Circus