UFW Quick Cheat Sheet Reference

By | Engineering | No Comments

UFW – Uncomplicated Firewall The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled. To allow a port (ex. SSH = 22) ufw allow 22 To allow all http, https traffic over TCP ufw allow proto…

Read More

Upgrade Your Terminal with iTerm2 and OhMyZsh

By | Engineering | No Comments

As a developer, when you switch from a Windows based PC or laptop to a Mac, you’ll start to notice an affinity for the terminal. Here’s two pro tips to get your terminal running at tip-top condition. Install iTerm2 Install a new terminal called iTerm2 that provides more robust features and customization. On the link below you’ll find a download…

Read More

dotnet DI Dependency Injection – Transient, Singleton, Scoped (per Http Request)

By | Engineering | No Comments

With dotnet’s built in Dependency Injection (DI), you have the choice to wire up dependencies with three different flavors of binding. Here’s a quick reference for how those bindings work. Transient Transient lifetime services are created each time they’re requested. This lifetime works best for lightweight, stateless services. services.AddTransient<IService, Service>(); Scoped Scoped lifetime services are created once per request. services.AddScoped<IUsersService,…

Read More

Schedule Cron Job on Linux

By | Engineering | One Comment

The origin of the name cron is from the Greek word for time, χρόνος For reference, here’s how to create a quick cron job task that can run on a recurring schedule on Linux. You have one of two options to get a script to run, either dropping a script into one of the following folders on a linux machine or creating…

Read More

What Linux Distro is Running?

By | Engineering | No Comments

Wondering what linux distro is running in a container or on some forgotten VM? I’m sure if you’re in the various flavors of Linux, including but not limited to Ubuntu, CentOS, Fedora, Debian, etc., then you would recognize the distro by file structure or other subtle differences. For those that don’t recognize the distro instantly, here’s a quick linux command…

Read More

Quick Setup VSTS Build Agent with Docker

By | Engineering | No Comments

VSTS has a few readily available build agents that are hosted and shared with other users on the platform. If you have special build dependencies, don’t like waiting for others on shared hosts, want faster builds, or just simply want to own the agent, then the following short article should give you just enough to get up and running quickly….

Read More

MSSQL on Linux through Docker with Persistent Storage

By | Engineering | No Comments

Microsoft continues its effort to release open source software and frameworks, with their recent release of Microsoft SQL Server that runs on Windows, Mac and Linux. This is easy to deploy and get up and running quickly with Docker containers. There are three main containers that you may want to reference as you get started. https://hub.docker.com/r/microsoft/mssql-server-linux/ https://hub.docker.com/r/microsoft/mssql-server-windows-developer/ https://hub.docker.com/r/microsoft/mssql-server-windows-express/ The first…

Read More