Skip to content

Instantly share code, notes, and snippets.

@glyn
glyn / README.md
Last active July 7, 2023 23:09
arch nouveau X crashes on resume

X crashes on resume

This gist captures debugging information about a crash that has been happening relatively recently on my arch system.

See my distro-hopping history for more context.

The symptoms are that X crashes on resume. If I issue startx again, then there seem to be issues using the USB mouse, so I suspect some USB mouse problem is responsible for the crash.

Diagnostics

@glyn
glyn / transcript.txt
Created December 21, 2022 12:22
ChatGPT attempting to prove Pythagoras's theorem
Glyn Normington
Prove pythagoras's theorem.
Pythagoras's theorem states that in a right triangle (a triangle with one 90 degree angle), the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides. This can be written as:
a^2 + b^2 = c^2
where a and b are the lengths of the other two sides of the triangle, and c is the length of the hypotenuse.
Here is a proof of this theorem using Euclidean geometry:
@glyn
glyn / history.md
Last active April 1, 2024 01:56
Distro hopping to avoid crashes with NVIDIA or AMD graphics

(The following overlooks my early use of Red Hat Linux, on a Thinkpad, around the turn of the century and my repeated use of Ubuntu in VMs since then.)

IMG_20240322_132047

The NVIDIA GK106GL [Quadro K4000] graphics card seems to cause crashes on various distros. Here's the checkered history of my desktop machine:

  • Ubuntu crash on suspend/resume.
  • Fedora 35 The nouveau driver occasionally crashes and locks up the desktop, requiring a power off.
  • Fedora 35 installed nvidia 470 driver.
  • Fedora 36 beta.
@glyn
glyn / topics.md
Last active June 18, 2022 12:50
Software degree topics

Here's a list of topics I think would benefit some CompSci or Software Engineering undergraduate degrees. Which of these are already covered really well by some universities? Comments welcome here or on this Mastodon thread.

  1. Version control
    • Theory
    • Branching and merging
    • Centralised and distributed VCS
    • Collaboration models
    • Commit logs
    • Debugging
  • git
@glyn
glyn / openpgp.md
Last active December 28, 2021 16:30
OpenPGP proof
@glyn
glyn / journal.md
Last active October 26, 2021 11:24
Debugging resume issue
@glyn
glyn / Live Streaming at CCWinch.md
Last active September 24, 2021 04:25
Live Streaming at CCWinch

Superseded by a book.

@glyn
glyn / union with duplication from array
Last active November 19, 2020 16:12
JSONPath comparisons for unions with duplication
echo '["a"]' | ./src/wrap_in_docker.sh ./src/one_off.sh '$[0,0]'
Sending build context to Docker daemon 75.26kB
Step 1/24 : FROM ubuntu:20.10
...
Step 24/24 : RUN apt-get install -y --no-install-recommends ruby
---> Using cache
---> 25adaf4f6bcb
Successfully built 25adaf4f6bcb
Successfully tagged json-path-comparison:latest
[1/4] (cd implementations/Bash_JSONPath.sh && npm install) && echo > implementations/Bash_JSONPath.sh/build/node_modules_installed
@glyn
glyn / lyarfgg.md
Created September 30, 2020 15:46
Learn You a Rust for Great Good!
@glyn
glyn / terminal.out
Created July 17, 2020 14:28
sheaf bundle contents
$ ./sheaf init --bundle-path scratch/example --bundle-name example
$ ./sheaf manifest add --bundle-path scratch/example -f scratch/deployment.yaml
Adding manifest from scratch/deployment.yaml
$ cat scratch/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-deployment
spec:
template: