Skip to content

Instantly share code, notes, and snippets.

View tchamberlin's full-sized avatar
🪁

Thomas Chamberlin tchamberlin

🪁
View GitHub Profile
@tchamberlin
tchamberlin / how_to_manage_python_on_fedora.md
Last active February 6, 2024 15:39
How to manage Python and related tooling on Fedora 39

How to manage Python via pyenv and pipx on Fedora 39

You want to:

  • not break system Python
  • use multiple, modern versions of Python simultaneously
  • easily install applications (e.g. black, ruff, pylint) in isolated environments
  • keep applications up to date
  • easily upgrade Python

This guide covers two tools to help with the above:

@tchamberlin
tchamberlin / python_feature_release_history.md
Last active January 26, 2023 18:36
History of major Python features
@tchamberlin
tchamberlin / songs_for_every_state.md
Created May 5, 2021 15:15
Spotify playlists for every state

🎶 Songs for Every State 🇺🇸

A song is considered "about" a state if the state name occurs in both the song name and the lyrics. Within each playlist, songs are sorted by popularity (i.e. most popular songs are first). All playlists are automatically generated; I have not filtered or checked the results.

Ranked by Total Number of Songs

  1. Georgia (176 tracks, 17.61 per million people)
  2. Mississippi (172 tracks, 57.50 per million people)
  3. California (168 tracks, 4.38 per million people)
  4. Tennessee (165 tracks, 25.40 per million people)
@tchamberlin
tchamberlin / quantum_card_tiers.md
Last active September 28, 2023 00:57
Quantum Advance Card Tiers
@tchamberlin
tchamberlin / opencv_odroid_ubuntu_18.04.md
Last active February 6, 2020 05:10
Install OpenCV on ODROID N2

Install Python3.8 and OpenCV on ODROID N2 Ubuntu 18.04

Ubuntu 18.04

This guide uses the "minimal" (headless) Ubuntu installation.

ODROID provides images for Ubuntu 18.04 here

This guide is using build 20190806

@tchamberlin
tchamberlin / rdesk.sh
Last active August 22, 2019 18:02
Convenience function for using RDP transparently across RHEL versions
#!/bin/bash
# Returns current screen size in format 'XxY'. Assumes all monitors are same resolution, if >1
function getres() {
xrandr --current | grep '\*' | uniq | awk '{print $1}'
}
# Returns the RHEL major version of the current host (e.g. '6' or '7')
function get_rhel_version() {
lsb_release -i -r | grep Release | awk '{print $2}' | awk -F . '{print $1}'