Installing Android Debug Bridge (adb)

Two ways of installing ADB, the first method is installing via Android Studio which will come with packages you may not ever use. The second option would be to just download the platform-tools

Android Debug Bridge (adb)  |  Android Studio  |  Android Developers

Download Android Studio & App Tools – Android Developers

The second option

SDK Platform Tools release notes  |  Android Studio  |  Android Developers

After installing, extract to somewhere simple, I would recommend C:\ just to avoid any url issues. So it would like like C:\platform-tools, then ensure you’ve set up the system PATH in your environment variables settings as “C:\platform-tools\” it’s as simple as that. Just start a powershell or cmd and type adb to confirm it works.

Other useful guides

How to install ADB on Windows, macOS, and Linux

Commands & Steps

  1. Enable debugging mode on device, then connect device.
  2. Start PowerShell or Command Prompt (CMD)
  3. Type command to see connected devices list:
adb devices
  1. Then type to connect, check the to confirm authorisation:
adb shell

Testing malicious USB Cables

There are currently two ways of testing malicious cables. Pre-made testers and standard USB Testers that you can observe the current draw.

If you don’t know what I mean, check out the O.MG Cable, I will not go into the details of how you can visually tell them apart from other cables, and it depends on the cable brands and I guess both methods are evolving fast.

If you’re serious about making sure it’s malicious, I would recommend getting both or one that includes a current meter. If you’re like me and just want to double check a cable, a USB tester that shows current is enough.


How to Detect Malicious USB Spy Cables #TSCM #MurrayAssociatesTSCM – YouTube

O.MG Malicious Cable Detector – Lab401

The CuVoodoo USB Bug Detector Safely Ferrets Out Those Sneaky Malicious O.MG Cables –

USB Testers

FNIRSI-FNB58 Multi-function USB Voltage/Current Meter Type-C Fast Charge Tester


How to spot the difference between the O.MG Cable and a standard USB-A Cable – iFixit Repair Guide


USB Data Blocker Teardown

Testing USB Cables – Type C – for Faults

Now days Type C cables require a bit more effort than previously with standard USB A and Macro cables, in addition the pins are so small it’s quite a struggle. To simplify and also check correct negotiations, you should grab a tester.

Test a USB-C Cable for Faults – YouTube

USB-C Cable Testers

Search for:

Treedix USB Cable Tester

Mini USB Cable Tester 6 in 1 Cable Diagnostic Tool


USB-C cable tester – C2C caberQU

USB-A to USB-C cable tester – A2C caberQU


[WordPress] Creating custom post type and converting/changing post types of your post/page

Creating a custom post type is as simple as tweaking the code, saving it to your functions.php file or if you prefer to have it not bound to your theme then saving it to a code snippet plugin.

Follow this guide here. If you prefer to have the posts be categorized and taggable, then use the modified code below:

/* Custom Post Type Start */
function create_posttype_services() {
    register_post_type( 'service',
    // CPT Options
      'labels' => array(
       'name' => __( 'Services' ),
       'singular_name' => __( 'Service' )
      'public' => true,
      'has_archive' => false,
      'rewrite' => array('slug' => 'services'),
    // Hooking up our function to theme setup
    add_action( 'init', 'create_posttype_services' );
    /* Custom Post Type End */
    /*Custom Post type start*/
    function cw_post_type_services() {
    $supports = array(
    'title', // post title
    'editor', // post content
    'author', // post author
    'thumbnail', // featured images
    'excerpt', // post excerpt
    'custom-fields', // custom fields
    'comments', // post comments
    'revisions', // post revisions
    'post-formats', // post formats
    $taxonomies = array(
    'category', // post title
    'post_tag', // post content
    $labels = array(
    'name' => _x('Services', 'plural'),
    'singular_name' => _x('Service', 'singular'),
    'menu_name' => _x('Services', 'admin menu'),
    'name_admin_bar' => _x('Services', 'admin bar'),
    'add_new' => _x('Add New', 'add new'),
    'add_new_item' => __('Add New Service'),
    'new_item' => __('New Services'),
    'edit_item' => __('Edit Services'),
    'view_item' => __('View Services'),
    'all_items' => __('All Services'),
    'search_items' => __('Search Services'),
    'not_found' => __('No Services found.'),
    $args = array(
    'supports' => $supports,
    'taxonomies' => $taxonomies,
    'labels' => $labels,
    'public' => true,
    'query_var' => true,
    'rewrite' => array('slug' => 'services'),
    'has_archive' => true,
    'hierarchical' => false,
    register_post_type('service', $args);
    add_action('init', 'cw_post_type_services');
    /*Custom Post type end*/

You can simply change “service” and “services” to the singular and plural of your choice. I’ve bolded the only change I did.

Now that you’ve got your custom post added and working, like me you probably wanted to change some of your current posts. There’s a great plugin called Post Type Switcher, however it seems to not be getting updated anymore and failed to work. The next option is to use a SQL Query. Log in to your phpMyAdmin, head over to your wp_posts, find SQL on the menu and run the below command. Look further into this article for more information.

UPDATE wp_posts SET post_type = 'service' WHERE post_type = 'post'

Links & References

How to Create Custom Post Type in WordPress (Easy Guide)

How to convert/change post type in WordPress – QuadLayers

Thunderbird 115 Common Issues

Missing folders/emails in Unified Folders view

Close Thunderbird, go to the profile folder and delete virtualFolders.dat file and Mail folder. Start Thunderbird.

Exporting/Importing Message Filters

When you create a message filter, each filter is saved within the emails folder, in a file called msgFilterRules.dat, so when importing or exporting you’ll need to retrieve the file for every email address.


Thunderbird 115 Customizations

Hiding the number of messages under Message List Header

In Thunderbird Config Editor, find and change toolkit.legacyUserProfileCustomizations.stylesheets to “true”. Close Thunderbird.

In your profile folder, create a folder called “chrome”, then a file named “userChrome.css”, edit the file in any editor and add the following line:

#threadPaneFolderCount { display: none !important;}

Start up Thunderbird and it should now be hidden, if not, double check the config editor setting and the other steps if still further issue.

Changing tag background and font colours

Making sure Thunderbird is closed before you do any editing. Simply add on a new line, in the same file mentioned above.

/* Change the background color of tagged messages */
/* Tag name: Important */
treechildren::-moz-tree-cell(Timportant) {
    background-color: red !important;
treechildren::-moz-tree-cell-text(Timportant) {
    color: #FFF !important;

This should turn your emails, set with the tag “Important” to have a background colour of “red” (can be changed to another colour using HEX colours). Then the font colour to #FFFFFF (white).

Syncing files on Synology using a WebDAV server, with Joplin

My Synology is a bit outdated so the preferred or latest method seems to be with Docker, however I do not have that, so the alternative is the WebDAV method.

The first things you obviously need to do is download Joplin on your clients, installing on the PC and on Android, go to your synchronisation settings and it’ll ask you for a WebDAV URL, username and password.

Next create a location for the WebDAV server, specifically where our Joplin clients will look to when syncing their files.

Before you proceed you should decide on what you require, if this is purely an offline (no access to the internet) kind of syncing solution for yourself then you will not be able to use HTTPS unless you figure out and setup a local self-signed SSL certificate, whether that’s to your IP or an offline hostname.

Install & Setup WebDAV Server

On Synology (6.2), it’s a simple case of heading over to the Package Center and installing the WebDAV Server, once running go to settings and enable HTTPS (5006) and that’s it, at least for me. If you’re going the route where you’d like your notes to be synced via the internet then I wouldn’t turn on the HTTP, just to make it easier on securing the route.

In order for WebDAV to work via the internet, you need to create a DNS to point your dynamic IP or if you’ve got a static IP laying around skip all of that.

Purely HTTPS

FreeDNS, No-IP

Head over to one of the free DNS services/providers below and setup an account.

FreeDNS – Free DNS – Dynamic DNS – Static DNS subdomain and domain hosting

Duck DNS

FreeDNS Alternatives: 25+ Dynamic DNS Services & Similar Apps | AlternativeTo

Updating your dynamic IP

If you’ve got an option in your router to automatically update your IP (as it changes) to your dynamic DNS service/provider then you’re all set, simply provide the credentials and details it requires and your router does all the work.

If not you’ll have to either manually update it every time your router resets and changes IP or set up some kind of automation, there are some little apps/programs that keeps track, depending on the DNS service, you can see what’s compatiable.

I used DuckDNS and found that they’ve got a simple vbs script that can be run with Task Scheduler, which you can find out below.

Duck DNS – install

I had to use a .bat file to run the command via CMD and get the .vbs script running or it stalled. Be sure to use pause or echo to test.

Add and export your certificate

Via the Synology (6.2) Control Panel, under Security, the Certificate tab, hit add and using the domain (sub domain) you created, fill in the details. Once done you can right click on the certificate and Export.

Install a certificate on Windows 10

Right click on your start menu and hit run, type “mmc” and OK, which should bring up the Microsoft Management Console (MMC), on the top left, under File menu, press Add/Remove Snap In, from the left, add to the right Certificates snap-in for Computer.

On the left, right click “Trusted Root Certification Authorities ” then under All Tasks, choose Import. Go through the process, I personally did automatic also right after.

Setup/add your new domain (sub domain)/hostname on Synology

Via the Synology (6.2) Control Panel, under External Access, press Add on the top and go through the process of adding your dynamic DNS service details. You’ll also have the option to configure your router there, if your router is on the list, if not then the manual way is below.

Install the required certificates for Configure Port Forwarding on your router

You’ll need to point any visitors to your external (public facing) IP that also use the port 5006 to forward to your local IP Synology server. So for example would come to your router, the router will see that it’s got the port 5006 at the end of it and knows that the traffic for this port all must go to your Synology box at, 5006 is being the WebDAV server we turned on earlier.

Install a certificate on Android

  1. Open your device’s Settings app.
    • Tap Security and privacy > Other security settings
  2. Under Credential Storage, Tap Install from device storage CA certificate.
  3. Tap where you saved the certificate.

Configuring Joplin

Once you’ve installed the certificates on your devices (to avoid TLS certificate errors), you should be able to input the URL, username and passwords.

Your URL should look something like this:

You can create a user specifically for Joplin use, but you’ll need to give it access. You’ll need to tweak the permissions where you only give it full access to the Joplin folder, allow it access to the parent folder so it can enter the directory, but not view anything else, other than what it’s been given, which is the joplin folder.

Links & References

Joplin in NAS Synology (webDAV) – Support – Joplin Forum

JST Connectors

The world of JST connectors, JST stands for Japan Solderless Terminal, that’s pretty much more than what you really need to know in my opinion other than the technicals. If you’re like me and only interested because you find yourself needing to replace a broken connector, well what I’ve rapidly figured out is you need to make sure you’re getting the correct size (duh), there’s obviously the basic questions you would know, such as how many pins, but they come in different sizes. 1mm, 1.25mm, 1.5mm, etc.

Your best bet is to actually measure your connector and look for an exact match. This page was a good starter on how to distinguish what you’re looking for.

Common JST Connector Types – Matt’s Tech Pages

Then you either go to genuine sellers or you simply find what you’re looking for on eBay. You could go to Aliexpress, if you’re ok with waiting a very long time.

Links & References

Mini Micro JS 3 Pin Connector plug cable male and female new x 20 | eBay

Mini Micro 3 pin for sale | eBay

ZH 1.5mm Mini Micro JST Male for sale | eBay

ZH 1.5mm 3-pin for sale | eBay

JST ZH 1.5mm 3 pin for sale | eBay

10PCS Mini Micro ZH 1.5mm 3 pin Jacks JST Connector with Wire YXSA | eBay

2pcs JST ZH 1.5 3 Pin Male Female Connector Wires Cables 15cm Mini Micro FAST | eBay

5 Set 2/3/4/5/6/7/8/9/10Pin ZH1.5mm Mini Micro JST Male 15cm Cable + Female XY | eBay

JST ZH 1.5 3 Pin Male Female Connector Wires Cables X 5 15cm Mini Micro | eBay

JST ZH 1.5mm 2-Pin 3-Pin 4-Pin Connector PCB Socket Wire Cable UK Seller | eBay

15134-0402 Molex | Mouser United Kingdom

Mini Micro JST 1.0 PH 3 Pin – Google Search×520.jpg&tbnid=dAaz6qOxUKk19M&

Reset/clear NTFS Permissions

Ever hooked up an old drive and received error messages regarding permissions while copying or browsing through folders? There’s a simple way to reset and clear the user permissions for all the folders in one go.

Via Command prompt (admin) type the below code. In this case E:/ indicates that everything within the E drive will be reset. For more information on what the other parameters do, check out the below links.

icacls E:\ /reset

icacls E:\ /reset /t /c /l

Links & References

How to Reset NTFS Permissions Using a Simple, Free utility

reset all permissions for windows 10 and remove any unwanted hidden – Microsoft Community

Icacls | Microsoft Learn

Takeown | Microsoft Learn

Quickly Reset NTFS Permissions in Windows 10