Skip to content
tennant.io
  • Home
  • Projects

Posts by Callum

  • Home
  • Callum
About Callum
I am a full-stack/back-end developer with over 15 years of software development experience. My most skilled technologies include PHP, NodeJS, JavaScript and TypeScript. Senior Software Developer at The Service Directory.

Beware the Dangers of .swp Files On Prod

Posted by By Callum July 23, 2024Posted inUncategorizedNo Comments
Editing a file with vim and exiting the program improperly on a public-facing web server can leave you vulnerable to leaking private data like db credentials, private keys etc. A…
Read More

Spy on the Output of a Linux Process Using its PID

Posted by By Callum June 1, 2023Posted inUncategorizedNo Comments
There may be instances whereby ps -aux has been used to see the PID of a running process and you would like to see its output. This can be done…
Read More

CSS Viewport Units: What They Mean (vh, dvh, svh etc.)

Posted by By Callum May 17, 2023Posted inSoftware DevelopmentNo Comments
The table below can be used as a reference to check the meaning of the unit. E.g. height: 20dvh is 20% of "current viewport height, excluding user agent's interface..." UnitDescriptionsvhSmallest…
Read More

Most Useful VS Code Keybinds

Posted by By Callum January 10, 2023Posted inUncategorizedNo Comments
Here are the shortcuts I find myself using on a daily basis. I will update this post as I think of more. Last updated: 16th January 2023. CMD + SHIFT…
Read More

Using createDocumentFragment to Improve Performance when Writing to DOM

Posted by By Callum December 7, 2022Posted inTips & InstructionsNo Comments
DocumentFragments are useful when you want to create multiple DOM elements and add them to the DOM tree at once, as it is more efficient to do so using a…
Read More

Installing and Running MongoDB on MacOS

Posted by By Callum December 7, 2022Posted inTips & InstructionsNo Comments
MongoDB is most easily installed on MacOS by using Brew, a package manager for macOS that can be used to install, update, and manage software packages on your system. Brew…
Read More

Stop Git from Tracking a File or Directory Added to Gitignore

Posted by By Callum November 28, 2022Posted inUncategorizedNo Comments
This article will explain how to fix files still being tracked by Git after it has been added to the .gitignore file. Rules added to the .gitignore file only applies…
Read More

Run a Terminal Command after n Seconds Has Passed

Posted by By Callum November 22, 2022Posted inUncategorizedNo Comments
It is sometimes desirable to run a command after n seconds has passed e.g. to run a command after the approximate time taken for deploy pipeline to complete. Scheduling the…
Read More

Scrolling on MacOS Terminal Does Not Work/Scrolls Commands instead of Text

Posted by By Callum November 15, 2022Posted inUncategorizedNo Comments
This happens when the terminal is in 'Alternative Screen Mode'. The problem might also be combined with characters looking like ^[OB^[OB. What is Alternative Screen Mode? Many user-interactive terminal application…
Read More

Benchmarking a webpage response time (for web developers)

Posted by By Callum October 17, 2022Posted inUncategorizedNo Comments
It is good practice to benchmark your webpages and API endpoints before pushing them live to production. This can help identify areas of improvement which can be used to inform…
Read More

Posts pagination

1 2 Next page

AWS CSS Databases Git JavaScript linux MacOS MongoDB MySQL Programming Shell Scripts

Popular Posts

Quick MongoDB Naming Conventions

How to Export Amazon RDS MySQL Results to CSV

Copyright 2025 — tennant.io. All rights reserved. Sinatra WordPress Theme
Scroll to Top