Skip to content

Instantly share code, notes, and snippets.

@pishangujeniya
pishangujeniya / README.md
Last active May 1, 2025 12:12
Windows Logon History Checker

Windows Logon History Powershell script

  • Start > Windows Powershell Run as Administrator > cd to file directory
  • Set-ExecutionPolicy -ExecutionPolicy Unrestricted
  • Press A
  • ./windows-logon-history.ps1

Note

  • Currently code to check from Active Directory user domain login is commented.
@Zyndoras
Zyndoras / rotate.js
Last active March 24, 2025 07:53
Rotate base64 image (Javascript)
function rotate(srcBase64, degrees, callback) {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const image = new Image();
image.onload = function () {
canvas.width = degrees % 180 === 0 ? image.width : image.height;
canvas.height = degrees % 180 === 0 ? image.height : image.width;
ctx.translate(canvas.width / 2, canvas.height / 2);