Skip to content

Instantly share code, notes, and snippets.

@DigitalEssence
DigitalEssence / Powershell - Replace space in filename with hyphen
Created April 29, 2020 16:02
Powershell - Replace space in filename with hyphen
dir | rename-item -NewName {$_.name -replace " ","-"}
@ptrstpp950
ptrstpp950 / preRequestScript.js
Last active April 18, 2024 21:10
Calculate TOTP in Postman
//Article about TOTP on my blog https://stapp.space/generate-totp-in-postman/
/**
* @preserve A JavaScript implementation of the SHA family of hashes, as
* defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding
* HMAC implementation as defined in FIPS PUB 198a
*
* Copyright Brian Turek 2008-2017
* Distributed under the BSD License
* See http://caligatio.github.com/jsSHA/ for more information