Skip to content

Instantly share code, notes, and snippets.

@vatsalyagoel
vatsalyagoel / cascaydia-cove-nerd-font.css
Last active April 20, 2023 14:37
Blink Sh Cascaydia Font
@font-face {
font-family: "CascaydiaCove Nerd Font Mono";
font-style: normal;
font-weight: lighter;
src: url('https://github.com/ryanoasis/nerd-fonts/blob/51c1aa5904c0d8e59384813c3eafbdb9c69e4c01/patched-fonts/CascadiaCode/Light/complete/Caskaydia%20Cove%20Nerd%20Font%20Complete%20Mono%20Light.otf') format('opentype');
}
@font-face {
font-family: "CascaydiaCove Nerd Font Mono";
font-style: normal;
font-weight: normal;
@vatsalyagoel
vatsalyagoel / PwnedPasswords.ps1
Last active October 30, 2018 11:56
Powershell code to check if your password has been in a breach using Troy Hunt's Pwned Passwords. It only sends the first 5 characters of the SHA1 hash in the API request thus you don't have to worry about exposing a password you are currently using over the network
function Sha1Hash($textToHash) {
$hasher = New-Object System.Security.Cryptography.SHA1CryptoServiceProvider
$toHash = [System.Text.Encoding]::UTF8.GetBytes($textToHash)
$hashByteArray = $hasher.ComputeHash($toHash)
foreach ($byte in $hashByteArray) {
$res += $byte.ToString("x2")
}
return $res;
}

Keybase proof

I hereby claim:

  • I am vatsalyagoel on github.
  • I am vatsalyagoel (https://keybase.io/vatsalyagoel) on keybase.
  • I have a public key whose fingerprint is AF6E 5685 B8FD A38F 4F6B 0B6D F369 EB6E 65DE 655C

To claim this, I am signing this object: