Posts Posts by: "isaac"

Here is a quick example of how to add a large thumbnail image with the title as the Alt Tag attribute <?php the_post_thumbnail( ‘large’, array( ‘title’ => get_the_title() ) ); ?> You can replace ‘large’ with thumbnail, medium, medium_large, & full…(Read More)

If your blog page is pulling the title of the last/latest post, here is a quick and dirty fix: Add this to your title tags: <?php elseif ( is_home() ): ?> Example: <div class=”container”> <?php if( is_page() ): ?> <?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?&gt…(Read More)

Here is a quick example of how to add a background image to the header of your WordPress website pulling the Feature Image: <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ );?> <div id=”page-sub-header” style=”background: linear-gradient(rgba(0, 0, 0,0.6), rgba(0,0,0,0.6…(Read More)

How to add auto excerpts to a WP Theme: For this example, I’m using the WP Bootstrap Starter theme (remember to create a Child theme, or you will lose any edits after you update). You need to locate content.php file, it should be under the template-parts folder: Find the code: the_content( __…(Read More)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file: <?php echo do_shortcode(‘[gravityform id=1 name=ContactUs title=false description=false]’); ?> You can also add the embed codes: Basic <?php gravity_form( 1, false, false, false…(Read More)

It is incredibly easy to add a malicious components (malware) to DMG files,  uploading them to file sharing websites like sourceforge.net, & infecting computers on a mass scale.  SHA checksum is added to DMG files like TransmissionBT1, & Handbrake.fr2 to detect file tampering. How to check SHA checksums: In terminal, find the file…(Read More)

This drove me a little crazy one afternoon. I had to add a gravity forms shortcode to a new add_shortcode script in functions.php To accomplish this, I added this to my code: ‘ . do_shortcode($content) . ‘ Here is how it looks in its working example. I work best by watching. Too many people just…(Read More)

You can remove the repository from the sources list using terminal. First you need to find your lists: sudo ls /etc/apt/sources.list.d Look for your desire PPA here and then remove the PPA using the following command: sudo rm -i /etc/apt/sources.list.d/PPA_Name.list…(Read More)

SSH into your VPS host: ssh root@IP sudo apt-get update sudo apt-get install binutils libreadline5 libruby1.8 ruby ruby1.8 ssl-cert unhide.rb mailutils Once it has finished downloaded, extract the files and enter the resulting directory: tar xzvf rkhunter* cd rkhunter* Install RKHunter: sudo ./installer.sh Initial Test Runs The…(Read More)

DDoS Trojan attacks

by

Have you encountered with DDoS Trojan attack? It’s a familiar issue to all SysAdmins, when we work on DDoS attack. Normally, the top command shows a suspicious process with a random name like, Xdrgwdjd, jjiiyaykzg etc or some system commands like ls, ifconfig, pwd, ping, awk, telnet etc. When we kill that task another…(Read More)

PageLines