Cory Knox

Everything you didn't know you didn't know about PSModuleDevelopment

Categories: Programming
Tags: PowerShell
Late in 2018, I had the distinct pleasure of spending a few hours with @FredWeinmann. We spent the time fixing up my PSCUCM Module (Available from the PowerShell Gallery and GitHub). During this session we went through a number of commands and setups utilizing his PSModuleDevelopment module and PSFramework. What will ensue is a multi-part series on Developing PowerShell Modules using PSFramework and PSModuleDevelopment. And so, without further ado, I present part 1:

A Foray into vscode-powershell

Categories: programming
This is a foray into getting started with the vscode-powershell extension. In particular noting some of the perhaps less obvious things I needed to do in order to get it to build on Ubuntu 18.04. First thing you’ll need to do of course is to fork the repository. There are two repositories that we want to fork to our github account: PowerShellEditorService and vscode-powershell. Once you’ve forked them (and perhaps made hours of work that Tiler and Rob keep harrassing you as not being good enough…) you need to clone them to your local machine.

Azure Functions FTW - Using Azure Functions to schedule GitHub Pages posts

Categories: automatings programming
If you’re reading this… And it’s after August 29th 2018 at 9 AM PDT… Then that means it worked. I mean I know it works because this isn’t the first post of it’s kind, but it’s the first I’m actually going to keep up. It all started when I was discussing having finally setup this blog on Twitter. Someone asked if I could schedule blog posts. At the time I didn’t know if it was possible, but a simple web search found the answer over here: Scheduling posts on Github pages with AWS lambda functions by: Evert Pot Of course, this is fine and dandy if you already have AWS.

So you want to make a VS Code extension

Categories: Programming
Tags: VS Code
So, you have this great idea for a VS Code extension? But perhaps you’re thinking “where do I start?” Well, fear not! for I have written this post to tell you the answer! Oh? Were you expecting me to have the answer? Well, you see the truth is I have no idea. I just took some code, put some other code in it, and it worked (well sorta). But for reals: Decide if you want to use TypeScript or JavaScript (I picked TypeScript because all the samples were in TypeScript).

Windows Print Services in a not-XP world

Categories: General Computering
Tags: windows
Recently I’ve had the “pleasure” of troubleshooting Windows print services… You see, we use a CUPS server and samba on Linux to host our printers. We then have a script look at the samba server and map to the CUPS printers using IPP printing. It would seem that on 64 bit Windows 7 (and probably newer, and maybe 32 bit, but we don’t use that one…) Occasionally printing to IPP will just randomly fail (all print jobs show up as error and can’t be resumed or anything).

Shutdown vs Restart in Windows 8+

Categories: General Computering
Tags: windows
Here’s a quick one I learned watching a recent episode of Defrag tools. Turns out, if you choose Shutdown from the Windows start menu, it doesn’t actually shutdown the system like it did in Windows 7 and earlier. When I first hooked up my Arduino, it wasn’t being recognized by my laptop. I then realized that my wired mouse wasn’t working either. Turns out, at some point, my USB host controller decided to fall over.