find . -type d -exec echo mkdir -p {} \;find . -type d -exec echo […]
MySQL How to select domain name from email address ?
SELECT COUNT(*) as cnt, SUBSTR(SUBSTR(Email, INSTR(Email, ‘@’), INSTR(Email, ‘.’)), 2) as domain FROM Users GROUP […]
lost connection with while performing the HELO handshake
Ако видите този проблем в mailq опашката, най-вероятната грешка е, че нямате set-нат smtp_helo_name. В […]
Добавяне на timezones в MySQL (Adding time zones to MySQL)
При опит да сменим часовата зона на MySQL сървъра: SET time_zone = ‘Europe/London’;SET time_zone = […]
PHP UK Postcode format function
/** * If postcode is 5 characters, insert space after the 2nd character * If […]
Списък с всички симлинкове (symlinks) в папка… рекурсивно
ls -lR /path/to/folder/ | grep ^lls -lR /path/to/folder/ | grep ^l
RAID (mdadm) add/remove faulty drive
/dev/sda3 -> faulty device. root@makeitweb ~ # cat /proc/mdstat Personalities : [raid1] md3 : active […]
Apache директиви за инсталиране на SSL сертифиакт
Във файла /etc/apache2/sites-available/website.conf пишем: SSLEngine on SSLCertificateFile /etc/ssl/crt/primary.crt SSLCertificateKeyFile /etc/ssl/crt/private.key SSLCertificateChainFile /etc/ssl/crt/intermediate.crtSSLEngine on SSLCertificateFile /etc/ssl/crt/primary.crt […]
Как се сменят кондензатори?
Рано или късно идва края на живота на кондензаторите на нашия хардуер. Основната причина за […]