Skip to content

Instantly share code, notes, and snippets.

@aminnj
aminnj / charwidths.js
Created June 9, 2021 02:34
arial character widths
var d1 = document.createElement("div");
d1.id = "test3";
d1.innerHTML = "test";
d1.style = "width: fit-content; padding: 0px; margin: 0px; font-family: Arial, sans-serif;";
document.documentElement.appendChild(d1);
var d2 = document.createElement("div");
d2.id = "test3";
document.documentElement.appendChild(d2);
@JustinMcNamara74
JustinMcNamara74 / UserPermissions.sql
Last active January 30, 2025 15:46
#MSSQL List all user permissions/roles for all users
/*
********************************************************************************************************************************
Credits: @Jeremy
Posted: http://stackoverflow.com/questions/7048839/sql-server-query-to-find-all-permissions-access-for-all-users-in-a-database
********************************************************************************************************************************
Security Audit Report
1) List all access provisioned to a sql user or windows user/group directly
2) List all access provisioned to a sql user or windows user/group through a database or application role
3) List all access provisioned to the public role