Skip to content

Instantly share code, notes, and snippets.

View diff-pnp-devices.ps1
"Written by James Habben (@JamesHabben)"
"Last Updated: 2016-10-18"
"Start with device not inserted. Remove it now if it is in already."
read-host "press enter to continue"
$devices1 = Get-WmiObject Win32_PNPEntity
" Total devices before: {0}" -f $devices1.count
JamesHabben /
Created Aug 19, 2015
Use this python script to find possible valid credit card numbers based on partial known numbers
#Written by: @JamesHabben
from luhn import *
cardNumber = '4???123412341234'
var_digits = {}
for i, c in enumerate(cardNumber):
if c == '?':
var_digits[i] = 0

Keybase proof

I hereby claim:

  • I am jameshabben on github.
  • I am jameshabben ( on keybase.
  • I have a public key whose fingerprint is E9D3 D3BE ED4F 64C8 0010 7DDF A592 6462 7C55 1D82

To claim this, I am signing this object:

You can’t perform that action at this time.