VPN Count Dashboard Example

Before all hell broke loose I built a dashboard for management to give a near real-time view of health, errors, etc. Once we got sent home to work and we popped most of the work force on VPN, I was tasked with adding a widget to show connected users. Of course this is an example […]

Python and Gtk code to reduce file size and resize images for web usage.

I needed a tool for my wife to resize images for her blog and I found one called Trimage. I wasn’t much fond of it so I wrote my own, it’s fast and stable for only a days worth of coding. To run the code directly you’ll need GObject and PIL, you might want Pillow […]

Fun with video in a Bootstrap 4 carousel.

I am working on a project at work and they were interested in a video playing up top. I decided it might be more fun if you have a series of videos. I already had Bootstrap 4.3.1 doing things on the page and I almost always have JQuery – you don’t really need JQuery but […]

Simple Python 3 threaded timer in Gtk3.

A quick and dirty timer example. If you need to execute after a period of time use Thread.Timer(). This example uses simple thread and event to start and stop a clock in a Gtk 3 window counting up time in a label. #!/usr/bin/python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk,Pango,GObject import threading import datetime […]

Python 3 ThreadPoolExecutor in Gtk 3

So I wanted to collect all the theme icons on my Linux machine so I wrote a little app. It is really fast using the ThreadPoolExecutor from futures. I’ve used this at work but never in a Gtk app. Here’s the result from the straight Python 3 code without a GUI. That’s a lot of […]

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 […]