Skip to content

Instantly share code, notes, and snippets.

View marcenuc's full-sized avatar

Marcello Nuccio marcenuc

  • Tailor Diffusion s.r.l.
  • Italia
View GitHub Profile
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active April 21, 2026 15:17
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@peterwwillis
peterwwillis / default-ssh-keygen-check.sh
Last active March 29, 2026 01:49
This gist will track the websites that suggest unnecessarily-insecure default ssh-keygen arguments, in an attempt to have their authors update their arguments to safer defaults.
#!/usr/bin/env bash
declare -A LIST_OF_GUIDES
LIST_OF_GUIDES=(
["https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html"]="Atlassian"
["https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/"]="GitHub"
["https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2"]="DigitalOcean"
["https://www.ssh.com/ssh/keygen/"]="[email protected]"
["https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key"]="Git SCM"
["https://www.vultr.com/docs/how-do-i-generate-ssh-keys"]="Vultr"
@thoop
thoop / nginx.conf
Last active March 19, 2026 17:43
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;