Skip to content

Instantly share code, notes, and snippets.

James Habben JamesHabben

Block or report user

Report or block JamesHabben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.