Skip to content

Instantly share code, notes, and snippets.

View jmcker's full-sized avatar

Jack McKernan jmcker

View GitHub Profile
@jmcker
jmcker / README.md
Last active November 15, 2023 11:46
Visual Basic Scripts for displaying extended network adapter and OS build info via WMI. Compatible with SysInternal's BGInfo.

BGInfo Scripts

Local Script Usage

You can also modify and test run the scripts locally using:

cscript .\network-info.vbs
@jmcker
jmcker / bypass.ps1
Last active July 26, 2020 02:09
Temporarily bypass Windows Defender for improved WSL Python performance
# Getting terrible performance with Python in WSL?
#
# Putting a temporary exception in Windows Defender before running
# your load may speed things up
#
# I put this in a PS script so that I don't:
# - forget to put the exception in every time
# - forget to remove the exception when I'm finished
# - resort to disabling "Real-time protection" for a bit cuz I'm lazy
#

Keybase proof

I hereby claim:

  • I am jmcker on github.
  • I am jmcker (https://keybase.io/jmcker) on keybase.
  • I have a public key whose fingerprint is D0FD 98A7 9ED6 6C43 432F 1F43 FA8C 0116 7D9A 8CE6

To claim this, I am signing this object:

@jmcker
jmcker / tasks.js
Created January 30, 2022 00:51
Log Google Tasks delimited by a newline so that they can be pasted into Google Keep.
const todoClassName = 'sxojMb fbELB';
const completedClassName = 'RFmU6c';
const todo = [];
const completed = [];
for (const e of document.getElementsByClassName(todoClassName)) {
if (!e.title) continue; // Skip Details sections
todo.push(e.innerText);
}