xkln.net


Multithreading In Python - Running A Specific Number Of Threads

October 17, 2019

One of the great things about Python is how easy it makes creating a pool of threads and assigning them tasks. While PowerShell has functionality, it is cumbersome to specify how many jobs it should run at a time in parallel. A practical example would be if we’re looping through…

Running PowerShell On AWS Lambda

October 07, 2019

Having previously written a few Amazon Echo Skills I knew AWS Lambda could run JavaScript and Python, but I recently found out it can also run PowerShell. Requirements PowerShell Core The first requirement is that only PowerShell Core 6 and later are supported. One advantage of…

Creating Network Diagrams with JavaScript

October 02, 2019

I had a bit of spare time and wanted to mess around with Cisco’s NeXt UI Toolkit, a JavaScript library which, amongst other things, provides functionality for generating network topology diagrams. Once we download and extract the library from the Cisco site, we’ll have 4 folders…

PowerShell Script To Generate New Blog Post For Gatsby

October 02, 2019

What previously ran on Hugo is now running on GatsbyJS. For no other reason than that I’ve found myself increasingly using GatsbyJS for both work and personal projects, so it made sense to move this site to a platform I was using elsewhere. To provide some background on the file…

Modifying RANCID To Work With IOS XE

September 15, 2019

I recently needed to add a few Cisco IOS XE routers into a fairly old RANCID 2.3.8 install. I found out rather quickly this wasn’t going to work. Older versions of RANCID force use of the 3des-cbc cipher, while the newer IOS XE versions don’t support this. This cipher mismatch…

Powershell Calculated Properties As Variables

September 08, 2019

Most of us would be familar with the normal syntax of calculated properties when used to change or add properties when piping an object through . In short, a calculated property is a hashtable containing the name of the property to return, and an expression in the form of a…

Identifying The Source of Downloaded Files

August 11, 2019

A little known feature of NTFS is something called Alternate Data Streams, or ADS. Originally introduced for compatibility with Apple’s HFS, it allows for storage of metadata for files residing on the filesystem. A simple example is some of the content in the Summary tab when…