I Joined the #100DaysOfCode Challange

#100DaysOfCode, I will code for at least an hour every day for the next 100 days


After reading Alexander Kallaway post on medium Join the #100daysofcode where he shares his vision of a whole hour every day spent coding, not in work that doesn’t count, I code every day in my day to day job, but like he mentions in his article, the last thing I do or feel like doing when arriving home is to sit down at a computer and carry on coding. Therefore, I’m diving in and welcome anyone who wants to join me.

Additional rules according to Alex.

  1. will tweet about my progress every day -> eojeel using the hashtag #100DaysOfCode
  2. I code at work, but I want to be able to work on my projects as well. That’s why I won’t count the time I spend coding at work towards this challenge.
  3. I will push code to GitHub every day so that anyone can see my progress. If you want, you can follow me here.
  4. I will mostly be working through a lot of old online courses that I’ve accumulated
  5. The time spent doing tutorials, online courses, and other similar resources will NOT count towards this challenge. I want to write real code and work on real projects, facing real challenges.


Remove bbPress forum profile URL link

I finally found the answer I want to put it here for others to maybe find…

To remove the url link from all author instances in bbPress but leave the author names intact you can put this in the child theme’s functions.php:

/* Remove link urls from forum author instances...
add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
function remove_author_links($author_link, $args) {
$author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
return $author_link;

Linux: JPEG/PNG Image Optimisation (Command Line)

Images are a integral part of any website and often occupy a significant portion of a website. As a result, optimising images can save some of the largest bytes and improve performance for your website.

The fewer bytes the browser has to download, the less time the user is waiting for the page to render resulting in a faster website and better user experience.

Continue reading “Linux: JPEG/PNG Image Optimisation (Command Line)”

Disable WordPress RSS Feed.

A feed is a function of special software that allows feedreaders to access a site, automatically looking for new content and then posting the information about new content and updates to another site. This provides a way for users to keep up with the latest and hottest information posted on different blogging sites.

There are several different kinds of feeds, read by different feedreaders. Some feeds include RSS (alternately defined as “Rich Site Summary” or “Really Simple Syndication”), Atom or RDF files.

Source: WordPress Codex

Continue reading “Disable WordPress RSS Feed.”

WordPress Embedded video with Image Overlay.

After spending a good time searching on how to place an image over a video in wordpress, i know i know, its not really that hard of a task but due to a couple of other tasks on at the same time i proved annoying during the spare 10 minutes i had between tasks.

Multiple google searches flagged up multiple HTMl / CSS implementations that yes they did work and after some testing they were semi suitable for the application.

Continue reading “WordPress Embedded video with Image Overlay.”

Network Security Assessment Methodology

The best practice assessment methodology is used by determined attackers and network security consultants involves four distinct high-levels components:

  • Network reconnaissance to identify IP networks and hosts of interest
  • Bulk network scanning and probing to identify potential vulnerable hosts
  • Investigation of vulnerabilities and further network probing by hand
  • Exploitation of vulnerabilities and circumvention of security mechanisms

Continue reading “Network Security Assessment Methodology”

JavaScript: Leave a Message for Code Viewing Developers

Fancy leaving a little message for anyone snooping around viewing your source code of the your well developed app or website, that you have spent hours developing, This handly little snippet of javascript code will let you leave a message however long or short for developers using the developer console to inspect your site in Google Chrome, Safari and Firefox including other browsers that support console.log.


AppleWebKit browsers (Chrome, Safari, Opera etc) have a more advanced console than other browsers so you can style your messages using CSS, supporting a number of properties including

color, font-size, font-family, font-weight, text-transform and more.

<script type="text/javascript">
var Util = {
  is_webkit: function() {
    return navigator.userAgent.indexOf("AppleWebKit") > -1;
  message: function() {
    if ( typeof console == "object" ) {
      if ( Util.is_webkit() ) {
        console.log( "%cOI! What are you looking under here for? Didnt you know its rude to look under the covers?", "color: #601321; font-size: 25px; font-family: 'Trebuchet MS', Helvetica, sans-serif;" );
      } else {
        console.log( "Hey! What are you looking under here for?" );

// call on page load

To view the message simply check out the console log within developer tools on this page.

Better site performance through Apache .htaccess

Web performance is becoming a large factor on many web applications currently developed, and is a large topic within web development, and has became a factor in google search since the back end of 2014.

Compress content

Compression reduces the response time by reducing the size the HTTP request.

its a worthwhile to implement gzip your HTML documents, scripts & css.

images and downloadable files should be compressed via other means, using image compression.

To compress your web documents with apache  use of mod_deflate

Continue reading “Better site performance through Apache .htaccess”

Operating System Hardening – Working with Services

Services are programs that run when the operating system boots, and they are often are running in the background without the users interacting directly with them. Many services are quite important -even critical. However a service can provide an attack vector that someone could exploit against your system, so be sure to enable only those services that are absolutely required. Part of operating system hardening is disabling unnecessary service on your windows computer (any version – from XP to windows 8 or windows server 2012), you first select the control panel and then select Administrative Tools.

The remote registry service is shown. This service is used to allow technical support personnel to access that systems registry remotely. The service can be quite usefully in some situations, but it can also function as a means for an attacker to get into your system. If you don’t need it, turn it off. The issue is not that a given service is “bad”; it is more of an issue of ensuring that you know what services to run (or not). Windows also provides a brief summary of what the service does and any services that depend on that service. If you don’t know what a service does, then you should probably leave its default setting.
Continue reading “Operating System Hardening – Working with Services”