Protect WordPress Sites from WP Scan

WP Scan is a tool to scan for vulnerable parts on your WordPress website. It checks various kinds of files and directories to make sure you don’t leave the backdoor behind. WP Scan is capable to: Scan in general Guess WordPress login name and password List all plugins the site is using List what theme…

[Continue reading]

Install Ruby Gem in Mac OSX

Whenever Apple releases its new OSX, most of the software that were previously installed were gone such as Git or Ruby Gem that is needed to run Compass for front end development. To fix it, simply re-install the Ruby Gem by running the following command: \curl -L https://get.rvm.io | bash -s stable –rails –autolibs=enabled

[Continue reading]

Facebook Open Graph Plugin for WordPress that Works

Building a website that could be shared on Facebook nicely is promising right now. I have written a fully working Facebook Open Graph plugin for WordPress as below: <?php //Adding the Open Graph in the Language Attributes function add_opengraph_doctype( $output ) { return $output . ‘ xmlns:og=”http://opengraphprotocol.org/schema/” xmlns:fb=”http://www.facebook.com/2008/fbml”‘; } add_filter(‘language_attributes’, ‘add_opengraph_doctype’); //Lets add Open Graph…

[Continue reading]

Using SCP in Mac

There are times when we need to upload files via command line. Luckily, Mac offers an SCP software built-in unlike Windows that you’ll need to install WinSCP. To do so, open a terminal and run the following commands: scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop Then we’ll just need to type the password of that username over SSH. For…

[Continue reading]

Adding Tags Filter to the Posts List

By default, WordPress does not ship the tag filter capability to its posts list whilst, in many cases, we need it to quickly access to the content type we have classified. To do so, add the following codes: <?php /*********************************** * Function to add filter by tags * in the posts list */ function kc_add_taxonomy_filters()…

[Continue reading]

Check to See Which Ports are Running on Ubuntu Server

There’s a time where we need to check for ports which are running on our current server. To do so, we need to install a software called, nmap. To install, simply run the following command: $ sudo apt-get install nmap Then run the following command to see the table of the ports which are currently…

[Continue reading]

Run Composer Install in Mac

First, navigate to the directory you want to run the composer command on. Then paste in the following commands:   php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -r “unlink(‘composer-setup.php’);” Then the directory is executable…

[Continue reading]