Skip to content

Instantly share code, notes, and snippets.

View smprather's full-sized avatar

Myles Prather smprather

View GitHub Profile
@smprather
smprather / BUILD.md
Created May 10, 2026 17:20
Compiling Python on EL8

Rebuilding portable Python 3.14.4 on EL8

Created by AI session used to complete the build on 5/10/2026.

This is intentionally EL8-specific. It documents the build that produced a portable ~/.local Python 3.14.4 install on an EL8-compatible system (AlmaLinux/RHEL/Rocky/Oracle Linux 8). The important constraints are:

  • install under ~/.local
  • do not hardcode the user name, user id, or /home/<user> in installed files
@smprather
smprather / vigenere_cipher.rb
Created November 14, 2020 18:08
Vigenere Cypher in Ruby, with Base64, more robust than most
#!/usr/bin/ruby
require 'base64'
class VigenereCipher
def initialize(key = nil)
puts "Enter key" if ! key
@key = key || gets.chomp
end
def encode(str)