Skip to content

Instantly share code, notes, and snippets.

@reputet
reputet / ssh-key-formats.md
Created November 26, 2023 03:25
SSH key formats

Purpose

It is easy to get confused by multiple SSH keys formats. This handbook is to remind how any of the SSH key formats look like (what headers/footers are used) and how to run ssh-keygen command to get expected result.

All the following examples are relevant for RSA key type and the following OpenSSH version:

$ ssh -V
OpenSSH_8.8p1, OpenSSL 3.0.5 5 Jul 2022

Table of Contents

@reputet
reputet / idle.vbs
Created June 17, 2019 09:22
Press the `Num Lock` key twice every minute so as to prevent the screensaver to be activated
# https://superuser.com/a/836346
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (60000)
Loop
@reputet
reputet / colors
Created September 19, 2017 13:40 — forked from bohoomil/colors
show Xresources colours
#!/bin/sh
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Black Red Green Yellow Blue Magenta Cyan White
───────────────────────────────────────────────────────────────────────────────────────\e[0m"
for i in {0..7}; do echo -en "\e[$((30+$i))m █ ${colors[i]} \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m █ ${colors[i]} \e[0m"; done
@reputet
reputet / vagrant.log
Created August 21, 2017 17:01
vagrant-errors log
$ vagrant up --provider hyperv --debug
INFO global: Vagrant version: 1.9.7
INFO global: Ruby version: 2.3.4
INFO global: RubyGems version: 2.5.2
INFO global: VAGRANT_DETECTED_OS="cygwin"
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.7\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"