Category: Tools

Some tools to help with affiliate marketing

How to encrypt text in Visual Studio Code (VSCode)

I wanted a way to quickly encrypt and decrypt files in Visual Studio Code using a memorised pass phrase so I created an easy to use plugin. VSC has become the text editor of choice for most developers and it is relatively simple to create and publish a plugin using Javascript or Typescript. The Encryption-VScode plugin uses AES encryption to encrypt/decrypt the contents of the current text file. The Crypto-JS...

Preventing Mobile Browsers From Turning Off

The following code has been published which prevents a mobile browser from going into sleep mode. This was affecting setTimeout functions as the javascript code in the browser is effectively paused preventing the event loop from processing once sleep mode is activated. I originally looked at nosleep.js but ended up simplifying the code and putting it into a standard module for Vue.js https://github.com/jamesbachini/StayAwake.js The code works by looping through a...

Pop Under Code 2020

Updated January 2020 This code is used for running pop under traffic on your own site. It adds an onclick function to every link on the page which opens a new tab with the clicked link and changes the existing window (underneath) to a popped ad url. Make sure you change the var puURL from http://Google.com to whatever you want to pop. The number 3600 in the code is number...

Beautiful Email Template [Download]

I loved this email layout so I created my own version which you can download from here: http://jamesbachini.com/misc/email.zip View the html page: http://jamesbachini.com/misc/email.htm Update all the images and links before you send out. The background skyline is in the zip file, you could modify to suit your niche just keep the color the same.

A simple floating feedback/support button

Updated for 2020 with a cleaner design. This uses the mail command in PHP to send the email but if this is disabled on your server you can connect it to Sendgrid/Mailchimp/AWS etc for the sending of email queries. There is a working example at: https://jamesbachini.com/misc/feedbackexample.html The code for this is really easy to implement as it is all just copy and paste. I’ve open-sourced the project on GitHub: https://github.com/jamesbachini/feedbackbutton...

RAM & CPU usage PHP script

Update Feb 2020 This single file, server health check, written in PHP. It was getting a lot of downloads so I’ve updated the code and open sourced it on Github. You can see demo here: https://jamesbachini.com/misc/servercheck.php JSON output: https://jamesbachini.com/misc/servercheck.php?json=1 Single file download here: https://jamesbachini.com/misc/servercheck.zip Github repo here: https://github.com/jamesbachini/Server-Check-PHP Screenshot: It’ll run on linux servers but not on windows or wamp. To calculate ram we use the ‘free’ shell command. To...

Basic exit intent pop up script

The following script will launch a pop up and redirect if the user moves the mouse off the page. You can add this to your landing page targeted at desktop users, on mobile it wont work obviously. This is just a basic version but you can change the popUp() function to load an email capture box, redirect to the offer page, load a different lander/angle, play a sound or video,...

Download: Basic Email Newsletter Template

Here is a template for a basic email newsletter: http://www.jamesbachini.com/misc/emailnewsletter.zip http://www.jamesbachini.com/misc/emailnewsletter.html Some important things to note when creating email newsletters: Inline CSS Only, no style sheets or <style> tags as they will be stripped by most clients. Make it responsive, a lot of email is read on mobile, it should collapse and expand beautifully. Add utm_source=email&utm_campaign=email newsletter to links to track it in Google Analytics External JS/CSS/Fonts/API’s are all a...

Tool to generate a guest blog post request

This tool can be used to generate a guest blog post request for SEO purposes. This is a great way to not only build SEO juice but it also gets your name out there and helps interact with the community surrounding your niche. http://www.jamesbachini.com/misc/guestpostrequest.php Simply enter your name,site,niche and theirs and it will generate a unique guest post request letter. Email that over and you will hopefully get some responses....