Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

261 total results found

UFW and Docker

System Administration

When running containers in Docker, you will come across the need for a container to gain access to a resource on the host.If you have UFW firewall enabled, you will need to allow ingress from the docker network, running on the host. To identify the docker net...

Linux
docker
Administration

Cancellation Token as Method Parameter

.NET

When writing a method that accepts a cancellation token, the method will need to deal with a passed null token. To do so, the method should accept the token parameter like this: public async Task<int> DoSomething(CancellationToken ct = default(CancellationTo...

.NET Process Boilerplate

.NET

Exploring standardized boilerplate for a variety of process types. Here's a known list of process types: Windows Form running as a short-lived client application Long-running Windows Service. Long-running Task Tray app. Short-lived admin task. Camunda ...

Updating Controls from Non-GUI Thread

.NET

Here are a couple methods for how to update form controls from a non-GUI thread. Explicit Setter Method The following is an example method that can be called by non-GUI thread. It first checks if running on the GUI thread. If not, it will invoke a delegate...

Postgres: Troubleshooting Remote Access

PostgreSQL

Here's steps to work through, to ensure remote access to a PostgreSQL instance. Check PostgreSQL is Listening on All Interfaces From a terminal, open the postgresql.conf file, with this: sudo nano /etc/postgresql/<version>/main/postgresql.conf NOTE: Replac...

database
postgres
Administration

Docker Commands

System Administration

Here’s a list of commands to remember for docker administration. List Containers To list all docker containers on a host: sudo docker ps -a Remove Containers To remove all docker containers on a host: sudo docker rm -f $(sudo docker ps -aq) Container Lo...

Administration
docker
deployment

SSH Key Naming Convention

System Administration SSH Keys

This page describes a good naming convention for SSH keys, that makes them easier to track, rotate, and revoke. You should use this naming convention for the filename of keys.And as well, use the same convention when populating the the comment field of each k...

Administration
SSH

How to Get Host SSH Key Fingerprints

System Administration SSH Keys

Here’s a short command line statement that will fetch the host ssh key fingerpring without authenticating with it: ssh-keyscan host | ssh-keygen -lf - Here’s another way to clean up ssh host key fingerprints: # remove any old fingerprints for the host ssh-...

Administration
SSH

Creating SSH Keys in Windows

System Administration SSH Keys

General Notes SSH keys can be easily generated in Windows, using PuttyGen. See this article for an update based on obsolete SHA-1 RSA key usage: Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04 Based on the obsolescence of RSA keys in U...

Administration
SSH

Linux VM Provisioning

System Administration

Here are some steps that need to be done when creating a VM template that will be used multiple times: Template Usage See this page to setup a deployed instance from a template VM: Ubuntu Host Setup References Here’s a good reference for template generatio...

Administration
deployment
Linux
ubuntu

Linux: Allow User to Skip Sudo Challenge

System Administration

When scripting command line work, you will come across the need to respond to sudo challenges, to execute commands that require elevation, if not running as root. You can choose to pass the user's password as stdinput, using the command line gymnastics at the...

sudo
Linux
Administration

Linux: Missing .SSH Folder

System Administration

When creating a new linux user, the system may not create a .ssh folder in the user profile, by default. This creates a little complexity as the permissions are a bit picky. Here are steps to do so. NOTE: Replace 'username' with the target user. Create the...

Administration
Linux

Linux: Shell Appearance

System Administration

If you ever log into a linux host, and the command prompt has only a '$', and there is no scrollable command history, then the shell may not be set to bash. Shell Assignment You can check what shell is assigned to the user with this: getent passwd username ...

Administration
Linux

Managed Host User Setup

System Administration

For hosts that will be managed by Ansible, or some other automated method, the host will need a user account with proper access. Follow these steps to setup the account and access. NOTE: This page assumes that SSH server is setup.And, that the firewall rules...

ansible
Administration
deployment
Linux

Cleaning up Ansible Temp Folders

HowTo Ansible

As Ansible playbooks run, some will fail to cleanup temp folders on the Ansible server. Since the temp folder for most Ansible jobs is configured as '/home/glwhite/Desktop', this will cause an accumulation of folders in that user's Desktop. The folders are n...

ansible
Administration
deployment
Linux

VS Project Conditional Constants

.NET

When developing cross-platform libraries, you will have the need to enable and disable different parts of your source code based on what statements or functions work on each platform. For example: Processes are queried differently in Windows than linux.And, c...

dotnet
programming
.net

SSRS Links

System Administration SSRS

How to Customize the SSRS Report Viewer: https://github.com/MagnusJohansson/CustomSSRSReportViewer  

SSRS Server Pages

System Administration SSRS

This is a bunch of rolling notes for SSRS. Web Portal URL The standard Web portal UI is here: https://hostname/Reports Use this link to browse, manage, and view reports with the standard web interface. Report Server URL The Report Server is available here...

SSRS SSL Certificates

System Administration SSRS

Here's some notes on how to add an SSL certificate to SSRS. Certificate Conversion When importing an SSL certificate (cer) with a separate private key (key), it needs to be in PFX format, for Windows to accept it. Follow this page to convert a key and cer p...

.NET Core In-Memory Cache

.NET

Here is a working method for using the In-Memory cache. For a thread-safe cache update, see the example at the bottom. Assimilate this into a working project: In-Memory Caching in ASP.NET Core - Code Maze Understanding & Implementing Caching in ASP.NET C...

.net
dotnet
programming