Skip to content

Instantly share code, notes, and snippets.

View tom-on-the-internet's full-sized avatar
🌐
On the Internet

Tom tom-on-the-internet

🌐
On the Internet
View GitHub Profile
@montanaflynn
montanaflynn / poker.go
Last active June 2, 2024 03:17
Generate a deck of cards, shuffle it and then deal them out in Golang
package main
import (
"fmt"
"math/rand"
"os"
"time"
)
// Card holds the card suits and types in the deck
@ThomasBush
ThomasBush / youtube-video-commands
Last active February 11, 2024 03:21
Ubuntu 20.04 Focal Fossa Rails server setup
# Generate Random Passwords
curl 'https://www.random.org/passwords/?num=2&len=24&format=plain&rnd=new'
# Create deploy user
sudo adduser deploy
sudo adduser deploy sudo
su deploy
cd ../deploy/
# Generate ssh keys