Category: Code

Store Emoji in MySQL DB

If you want to store Emoji characters in a MySQL DB, you need to update the table encoding. You can…

HTML Native Autocomplete

HTML Native Autocomplete – no JavaScript necessary… <input type=”email” size=”40″ list=”defaultEmails”> <datalist id=”defaultEmails”> <option value=”jbond007@mi6.defence.gov.uk”> <option value=”jbourne@unknown.net”> <option value=”nfury@shield.org”> <option…

Intro summary and details tags in HTML5

A brief introduction to the <summary> and the <details> HTML5 Tags

Puppeteer and ShadowDOM

If you are testing an app – be it React, Angular or Vue – and you are using an library…

Iterate a Text File in Bash

This is how you iterate thru a text file outputting a line at a time in Bash shell scripting.

Watch for Ubuntu 9.10 Launch

This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.

Replacing in Found Files

Replace one string by another in all file found by find. find . -name *whatyouwant* -exec perl -pi.bak -e ‘s/TEXT_TO_REPLACE/TEXT_TO_REPLACE_IT_WITH/g’…

Regular Expression Twitter Linker

Regular expression to link twitter users… Replace this ‘@(\w+)’ With this ‘<a href=”http://twitter.com/\1″>@\1</a>’

Object Or Array Check in JavaScirpt

Test whether an object is an object or an array if(Object.prototype.toString.apply(arr) === ‘[object Array]’) alert(“Array”) Original Article

A Shell Scirpt to Mount ISO files

A Shell Scirpt to Mount ISO files – call it using the command moustiso.sh ImageFile.iso. You need a folder called…