devcodepro Public source code sharing repository https://devcodepro.com Find and delete folder with SSH - devcodepro Search: find / -type d -name myfolder Output: /home/admin/public_html/example.com/myfolder Delete: rm -rf /home/admin/public_html/example.com/myfolder https://devcodepro.com/view/91/1/Find-and-delete-folder-with-SSH https://devcodepro.com/view/91/1/Find-and-delete-folder-with-SSH Wed, 22 Jul 2020 13:57:24 GMT How to check PHP version on XAMPP - devcodepro ###Option 1### Open C:\xampp\readme.txt + PHP 7.4.1 (VC15 X86 64bit thread safe) + PEAR + Apache 2.4.41 + MariaDB 10.4.11 + phpMyAdmin 5.0.1 + Tomcat 7.0.99 + XAMPP Control Panel Version 3.2.4. + OpenSSL 1.1.0g + ADOdb 518a ###Option 2### Create a php file phpinfo.php... https://devcodepro.com/view/87/87/How-to-check-PHP-version-on-XAMPP https://devcodepro.com/view/87/87/How-to-check-PHP-version-on-XAMPP Wed, 12 Feb 2020 14:14:06 GMT Web fonts available on all operating systems and browsers - devcodepro Sans-serif fonts Arial, Comic Sans, Trebuchet MS, Verdana Serif fonts Georgia, Times New Roman Monospace fonts Courier New https://devcodepro.com/view/86/87/Web-fonts-available-on-all-operating-systems-and-browsers https://devcodepro.com/view/86/87/Web-fonts-available-on-all-operating-systems-and-browsers Thu, 26 Dec 2019 13:40:52 GMT WampServer - phpMyAdmin: No activity within 1440 seconds; please log in again. - devcodepro C:/wamp/apps/phpmyadmin/libraries/config.default.php Replace this line of code: $cfg['LoginCookieValidity'] = 1440; With this line of code: $cfg['LoginCookieValidity'] = 3600; C:/wamp/bin/php/phpVER/php.ini Replace this line of code:... https://devcodepro.com/view/83/7/WampServer-phpMyAdmin-No-activity-within-1440-seconds;-please-log-in-again- https://devcodepro.com/view/83/7/WampServer-phpMyAdmin-No-activity-within-1440-seconds;-please-log-in-again- Sun, 28 Jul 2019 11:56:24 GMT YouTube video thumbnails size - devcodepro https://img.youtube.com/vi/ /maxresdefault.jpg 1280 x 720 https://img.youtube.com/vi/ /sddefault.jpg 640 x 480 https://img.youtube.com/vi/ /hqdefault.jpg 480 x 360 https://img.youtube.com/vi/ /mqdefault.jpg 320 x 180 https://img.youtube.com/vi/... https://devcodepro.com/view/79/76/YouTube-video-thumbnails-size https://devcodepro.com/view/79/76/YouTube-video-thumbnails-size Mon, 13 May 2019 05:24:07 GMT Block googlebot robots.txt - devcodepro User-agent: Googlebot Disallow: / https://devcodepro.com/view/72/1/Block-googlebot-robots-txt https://devcodepro.com/view/72/1/Block-googlebot-robots-txt Wed, 28 Nov 2018 00:01:26 GMT Exim - How to block certain domain - devcodepro 1. In etc/exim/exim.conf after this line: # $Cambridge: exim/exim-src/src/configure.default,v 1.14 2009/10/16 07:46:13 tom Exp $ put this line: system_filter = /etc/exim/filters 2. Create file filters in /etc/exim/ folder with code: if $header_from: contains... https://devcodepro.com/view/65/7/Exim-How-to-block-certain-domain https://devcodepro.com/view/65/7/Exim-How-to-block-certain-domain Wed, 28 Feb 2018 11:02:34 GMT SSH IPTables command to block IP Address - devcodepro [my@server ~]# iptables -A INPUT -s x.xx.xx.xx -p tcp --dport 25 -j REJECT [my@server ~]# service iptables save [my@server ~]# service iptables restart https://devcodepro.com/view/64/7/SSH-IPTables-command-to-block-IP-Address https://devcodepro.com/view/64/7/SSH-IPTables-command-to-block-IP-Address Tue, 27 Feb 2018 09:41:12 GMT Warning: purging the environment. Suggested action: use keep_environment issue - devcodepro 1. Open etc/exim/exim.conf 2. Directly after this code line: # $Cambridge: exim/exim-src/src/configure.default,v 1.14 2009/10/16 07:46:13 tom Exp $ add: keep_environment = X-SOURCE : X-SOURCE-ARGS : X-SOURCE-DIR add_environment =... https://devcodepro.com/view/63/7/Warning-purging-the-environment-Suggested-action-use-keep_environment-issue https://devcodepro.com/view/63/7/Warning-purging-the-environment-Suggested-action-use-keep_environment-issue Tue, 27 Feb 2018 09:25:15 GMT Exim mail queue commands - devcodepro exim -bpc number of emails in queue exim -bp print a list of messages in queue exim -qf force deliver all messages in queue exim -Mrm mesageid remove message from the queue exim -Mvh mesageid view message headers exim -Mvb mesageid... https://devcodepro.com/view/52/7/Exim-mail-queue-commands https://devcodepro.com/view/52/7/Exim-mail-queue-commands Sat, 2 Sep 2017 16:26:09 GMT CSF block force attacks on Exim - devcodepro 1. Backup /etc/csf/csf.conf 2. Make sure this exist in /etc/csf/csf.conf LF_DAEMON = "1" LF_CSF = "1" SMTP_BLOCK = "1" SMTPAUTH_LOG = "/var/log/exim/reject.log" SMTPRELAY_LOG = "/var/log/exim_mainlog" POP3D_LOG =... https://devcodepro.com/view/42/7/CSF-block-Exim-attacks https://devcodepro.com/view/42/7/CSF-block-Exim-attacks Mon, 26 Jun 2017 09:21:15 GMT Basic ClamAV SSH Command Line Commands - devcodepro service clamd status Check status service clamd start Start service service clamd stop Stop service service clamd restart Restart service service clamd reload Reload service freshclam -V Version info clamscan -V Version info 2... https://devcodepro.com/view/25/7/Basic-ClamAV-SSH-Command-Line-Commands https://devcodepro.com/view/25/7/Basic-ClamAV-SSH-Command-Line-Commands Thu, 19 Jan 2017 17:40:32 GMT SSH CSF - ConfigServer Commands - devcodepro csf -v Show csf version csf -l Status csf -l6 List/Show the IPv6 ip6tables configuration csf -f Flush/Stop firewall rules (Note: lfd may restart csf) csf -s Start the firewall rules csf -r Restart firewall rules (csf) csf -sf... https://devcodepro.com/view/19/7/SSH-CSF---ConfigServer-Commands https://devcodepro.com/view/19/7/SSH-CSF---ConfigServer-Commands Wed, 28 Dec 2016 04:11:52 GMT CentOS - SpamAssassin and Exim - devcodepro 1. Install Spamassassin [SSH]: sudo yum install spamassassin 2. Create file filters in /etc/exim/ folder with code: if $h_X-Spam-Flag: contains "YES" then headers add "Old-Subject: $h_subject" headers remove "Subject" headers add... https://devcodepro.com/view/15/7/CentOS-SpamAssassin-and-Exim https://devcodepro.com/view/15/7/CentOS-SpamAssassin-and-Exim Thu, 8 Sep 2016 15:04:22 GMT