Skip to content

Instantly share code, notes, and snippets.

@quagly
quagly / simh_compile.sh
Last active January 11, 2024 11:34
compile a few simh simulators
#!/usr/bin/env bash
#
# The nice cmake parallel compile system that simh offers fails
# on console only linux systems that do not have X11 / SDL / MESA graphical libraries
# as some sims require them. Perhaps there is some configuration for this.
# For now I am just compiling the couple of sims that I use single threaded.
# If this gets slow and/or annoying then look at cmake again.
set -euf -o pipefail
declare -rx GIT_DIR="${HOME}/repos/simh/.git"
@quagly
quagly / backup_files.sh
Created January 11, 2024 13:28
copy a couple of files to mount point dir
#!/usr/bin/env bash
# backup a couple of files into time machine backups
# main purpose it to make it easier to reinstall gentoo with similar setup
# run under mwest crontab
set -euf -o pipefail
# I don't want to leave /mnt/share mounted as it prevents hibernation of UTM
# So mount it if it is not mounted, and unmount it at the end if it wasn't mounted
declare IS_MOUNTED
@quagly
quagly / pyenv-virtualenv-usage.md
Last active January 26, 2024 00:38
pyenv-virtualenv-usage

examples of using pyenv-virtualenv to manage python enviornments

references

create new virtual environment and auto-vivify in project

Check python version

The current python version will be the version used in your new virtual enviornment

@quagly
quagly / build.log
Created April 20, 2025 11:06
chimera-linux simh configure and build log
[ 33%] Built target slirp
-- Clean working directory, no uncommitted changes.
[ 33%] Built target update_sim_commit
[ 33%] Building C object CMakeFiles/simhz64_video_aio.dir/scp.c.o
/home/mwest/repos/simh/scp.c:13226:61: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
13226 | fprintf (st, " Match Buffer Size: %" SIZE_T_FMT "d\n", exp->buf_size);
| ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
| %zu
/home/mwest/repos/simh/scp.c:13227:64: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
13227 | fprintf (st, " Buffer Insert Offset: %" SIZE_T_FMT "d\n", exp->buf_ins);