Coding

Login to WordPress from Python

October 27, 2019 ,

I've been trying to learn some Python and have been tinkering with the requests module. Here is how I am able to log into a webpage, such as WordPress. import requests url = "https://techish.net/wp-login.php" redirect_to = "https://techish.net/wp-admin/" with requests.Session() as session: post = session.post(url, data={ 'log': Read more →
Coding

Forgotten Scripts

January 13, 2017

Came across a script I wrote some time ago. Sitting there in my user directory was patch.cmd. As I find my scripts, I'm putting them in Git for historical purposes... and for a good laugh.

What in the actual fuck are you, patch.cmd? --Rich

One thing I learned;  document the damn things.  I had no idea what this was, but I knew it was mine because Read more →

Coding Uncategorized

Get All Virtual Machine Guest OS in Powershell

April 19, 2016

Continuing with learning some Powershell, I cooked this up which will connect to the vCenter server and get all the VM's and list the name, operating system and power state.

foreach ($vm in get-vm) {
$os=get-vmguest -vm $vm.name | where-object {$_.osfullname -ne $null} | select osfullname;
write-host ($vm.name.tostring() + "," + $os.osfullname + Read more →

Coding

JavaScript Operating System

March 7, 2009

I knew it had to exist (laughing out loud), and I just found it.  A JavaScript operating system.  Anyone who knows me knows that I joke around about “creating a new operating system coded in JavaScript”… well, here it is:  JS/UIX JS/UIX is an UN*X-like OS for standard web-browsers, written entirely in JavaScript (no plug-ins Read more →