Restful Server In PowerShell

I know I have been focused on PowerShell but I have down time and wanted to play since our shop seems to love it so much. I think I am going to do some other posts, maybe Node or something, because PowerShell is boring. I am building a dashboard so I was playing with PowerShell […]

Classes in PowerShell

I’ve noticed that a lot of admins learning PowerShell tend to use global variables and pass things around to functions, if they use functions at all. Sometimes all you need are classes to make things cleaner and easier to manage. Classes can be intimidating to newer developers or folks who only write occasionally for admin […]

Coin flip in PowerShell, GUI version.

Need to make a decision, like to bet, maybe you just like silly apps? Whatever the reason you’re reading this I hope it helps someone to learn some simple GUI tricks in PowerShell. I didn’t spend a lot of time on this. I already wrote one in C# years ago and had some downtime so […]

Get moon phase in Vala and PowerShell.

I’m working on a project in Vala that requires the moon phase. I’ve done this before in Python myself but wanted to look around for better. I found a nice Python script that just works so I decided to use it in Vala. Again, I’m learning PowerShell so why not convert to that as well? […]

First App Example In Nim

First impression of Nim was, wow! I’m a big Python guy so the syntax made me feel at home. I installed initially with apt and found it to be a tad old. Still, things worked great until I installed a few packages. None would import no matter what I did. I got close but they […]

Video Poker in PowerShell

In between real work, and to learn a bit about PowerShell since I don’t use it often, I created a video poker game. It’s rough and I don’t have time to make it pretty or add a GUI, but maybe it will inspire someone else? I also know very little about poker… I took a […]

How is finding duplicate files with PowerShell using SHA256? Fucking fast.

I just had to do it. I do this because why the hell not? We all have litter. I guess people will be interested in math, data, and AI. How boring… Maybe not boring at work but definitely boring at home. Maybe I’ll get motivated to do some TensorFlow slop. After I finish my GTK […]

Nim recursive duplicate file search.

I was wanting to spend some time with Nim programming language since it looks very similar to two of my favorite languages, Python being one. I am very impressed with it so far but I don’t really have anything to write at the moment and the kid keeps bugging me to paint his traffic light […]

Create, insert, and Query SQLite with PowerShell.

So I have C# code that grabs the print records from the Windows event logs on the print servers in order to create reports and easy searches from my web environment. I dump this data into a SQLite database, because I am a control freak and the place where I work is also a control […]

Collect user logons from Windows 10 with Python 3.

This is basically how I collect physical user logons along with reboots, etc. I dump this shit into a database and deliver via a web-page so folks can do dated searches by workstation or user ID. Works beautifully. You will need the Win32api libraries. I am running this on a Win 2019 server from Python3.7, […]