Skip to content

Instantly share code, notes, and snippets.

View jamesperrin's full-sized avatar
✝️
Having a Blessed Day

James Perrin jamesperrin

✝️
Having a Blessed Day
View GitHub Profile
::*********************************************************************************
::
:: Title: RunAs Smartcard User Script
::
:: Purpose: This script runs a selected program as a Smartcard User
::
:: Note: The Windows service "Secondary Logon" needs to running for script to work.
::
:: To run service:
::
##################################################################################
#
# Purpose: To registry proxy SSL certificate with Fortify Java.
# OS: Windows
# Terminal: PowerShell
#
# James Perrin, @jamesperrin | https://github.com/jamesperrin
# Licensed under CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
##################################################################################
@jamesperrin
jamesperrin / uuidv4.js
Last active November 10, 2025 20:38
Generates a RFC 4122 version 4 UUID using cryptographically secure random numbers.
/**
* @file uuidv4.js
* @description
* Generates an RFC 4122 version 4 UUID using cryptographically secure random numbers.
* Works in modern browsers and Node.js environments that support the global `crypto` object.
*
* @example
* import { uuidv4 } from './uuidv4.js';
* console.log(uuidv4()); // "e7b4a2c1-4f6e-4cbb-8a14-9e7bcd84f96b"
*/