Skip to content

Instantly share code, notes, and snippets.

View pavinjosdev's full-sized avatar
🏠
Working from home

Pavin Joseph pavinjosdev

🏠
Working from home
View GitHub Profile
@pavinjosdev
pavinjosdev / yubikey_auth_suse.md
Last active July 12, 2024 21:25
Setup Yubikey passwordless authentication in OpenSuse Tumbleweed or Slowroll

Install packages

sudo zypper install yubikey-manager pam_u2f

Insert Yubikey and test

ykman info
ykman fido info
@pavinjosdev
pavinjosdev / yubikey_auth_lmde.md
Last active February 9, 2024 16:21
Setup Yubikey passwordless authentication on LMDE 5 (Linux Mint Debian Edition)

Install packages

apt install yubikey-manager libpam-u2f

Insert Yubikey and test

ykman info
ykman fido info
@pavinjosdev
pavinjosdev / validate_cidr.php
Last active February 23, 2023 15:19 — forked from mdjekic/validate_cidr.php
PHP function for validating CIDR notation format (ipv4, ipv6)
<?php
/**
* Validates the format of a CIDR notation string
*
* @param string $cidr
* @return bool
*/
function validateCidr($cidr)
{