Skip to content

Instantly share code, notes, and snippets.

@JamesOBenson
JamesOBenson / Generating a secure SSH Key and commands.md
Last active October 16, 2026 16:12
SSH Generation and commands.

Generating Secure SSH Keys and Common SSH Commands (2026 Edition)

This guide reflects modern OpenSSH best practices and focuses on security, usability, and compatibility.


Finding Your Public Keys on GitHub

To view all public SSH keys associated with your GitHub account:

@xeoncross
xeoncross / http_accept_language.php
Last active February 7, 2025 13:05
Parse the HTTP except language header
<?php
function prefered_language($available_languages, $http_accept_language) {
$available_languages = array_flip($available_languages);
$langs = array();
preg_match_all('~([\w-]+)(?:[^,\d]+([\d.]+))?~', strtolower($http_accept_language), $matches, PREG_SET_ORDER);
foreach($matches as $match) {