Send Mail with Gmail and sSMTP
Sometimes we want to enable our servers/desktops to be able to send email without setting up a full featured mail server or configuring postfix to route through Gmail. sSmtp is an extremely simple,...
View ArticleMutt with SSMTP
Here is how you set up Mutt without a working sendmail or exim installation. Most linux boxes I work with already have some kind of mail transfer agent installed by default, so I never really had to do...
View ArticleSend emails with attachements from the Linux command line.
If you are like me and you are running your Raspberry Pi headless, and don’t want to start up X windows to send a simple email. You are in luck, as this can easily be done from the command line. And it...
View ArticleSending Email With Attachments From Unix / Linux Command
If you need to send an email with a text file (or binary file) as attachment using shell script or command prompt in Unix or Linux; try mutt – a terminal-based e-mail client for Unix-like systems. Mutt...
View ArticleHow to create SVN repository on server?
subversion info $yum install subversion $/etc/init.d/svn start Create a Repository:svnadmin create /svnrepos Create a SVN Uservi /svnrepos/conf/svnserve.conf anon-access = none auth-access = write...
View ArticleRunning Bootstrap locally on CentOS/Fedora
Within my job we are quite frequently faced with creating web pages and in order to improve the look and feel we have made (intensively) use of jQuery. Because of this we keep an eye on developments in...
View ArticleMigrating Email Between IMAP Servers with Imapsync
Ever needed to move a email account from one server to another and all you have is the login name and password for the mail account. Whether it be cPanel to Zimbra, cPanel to cPanel, Plesk to cPanel or...
View ArticlePHP Redirect 301 permanently
Sometimes you might want to redirect your visitors to a new URL address. This article will show you how to make a PHP redirect using the 301 "moved permanently" redirection. This is the one you should...
View ArticleHow To Compare Two Text Files Using Notepad++
Let’s say you have two text files that are pretty similar in content and you want to find out what the differences are between those two. You can easily do so using Notepad++. Basically, once you have...
View ArticleFunny Commands of Linux or Linux is Fun in Terminal
Linux is fun! Huhhh. OK so you don’t believe me. Mind me at the end of this article you will have to believe that Linux is actually a fun box. 20 Linux Funny Commands 1. Command: sl (Steam Locomotive)...
View ArticlePlesk 11.0 to 11.5 Upgrade
ERROR while trying to upgrade APSC SQL database from 11.1.0 nano /etc/my.cnf add this line thread_stack = 256K Danach mysql neu starten: # /etc/init.d/mysql restart
View ArticleInline lists LESS
Here the LESS code .list-inline { padding-left: 0; list-style: none; margin-left: -5px; li { display: inline-block; padding-left: 5px; padding-right: 5px;...
View ArticleVertical center align LESS
here the style LESS .mtable{ width:100%; display: table; .mcell{ display: table-cell; vertical-align: middle; } } /*optional*/ .matable{ height:500px; background:red }...
View ArticleCENTERED HEADING OVERLAYING A HORIZONTAL LINE WITH CSS
Besides allowing any kind of background, my solution doesn’t add any extra HTML tag and scales with every size of text. h1 { overflow: hidden; text-align: center; } h1:before, h1:after {...
View ArticlePlesk Roundcube Mail Skin Path
Just run # rpm -ql plesk-roundcube Linux path /usr/share/psa-roundcube/skins/classic/images/roundcube_logo.png /usr/share/psa-roundcube/skins/larry/images/roundcube_logo.png Image size png width 178px...
View ArticleReading mail from /var/spool/mail/root
Try mutt. #yum install -y mutt #mutt -f /var/spool/mail/root
View ArticleSort Multi-dimensional Array by Value
How can I sort this array by the value of the "order" key? Even though the values are currently sequential, they will not always be. Array ( [0] => Array ( [hashtag] =>...
View ArticleSorting a VARCHAR column as FLOAT using the CAST operator
Solution 1 SELECT guid, number FROM table ORDER BY number * 1 DESC Solution 2 ...CAST(value as DECIMAL(10,5))
View ArticlePHP the difference between http_build_str() and http_build_query()?
By reading the API, it appears that http_build_str() does not URL encode the parameters, while http_build_query() does. http_build_str() also can take either an object OR an object as its primary...
View ArticleUseful CSF SSH Command Line Commands
This article covers some useful CSF SSH Command Line Commands in a “cheat sheet” format. csf -sStart the firewall rulesroot@server[~]#csf -s csf -fFlush/Stop firewall rules (note: lfd may restart...
View Article
More Pages to Explore .....