Skip to content

Instantly share code, notes, and snippets.

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

Nicácio Arruda Nicacioneto

🏠
Working from home
View GitHub Profile
@huangqiheng
huangqiheng / build_mysql.sh
Last active December 13, 2024 16:13 — forked from Jamp/build_mysql.sh
Build and install MySQL 5.1 from source on Ubuntu 18.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active March 2, 2025 00:42
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
mkdir -p ~/.ssh
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs