Skip to content

Instantly share code, notes, and snippets.

View ChrisWellsWood's full-sized avatar

Christopher W. Wood ChrisWellsWood

View GitHub Profile
@ChrisWellsWood
ChrisWellsWood / pop_os_20_04_freeze.md
Created April 22, 2023 15:52
How to fix random freezes on a laptop running Pop OS 22.04

How to fix random freezes on Pop OS 22.04

I've been experiencing random screen freezes on Pop OS, where the mouse pointer can still be moved onto another screen, but one of my monitors is totally unresponsive. I tried a whole range of things to fix this (disabling high DPI, turning off extensions etc), but none of this worked.

In order to fix this, I had to disable hybrid graphics. This is an option when you have both a dedicated GPU and a integrated GPU, generally you want to use the low power integrated GPU when you're using battery. However, something is breaking this on the current version of Gnome on Pop. To disable hybrid graphics:

  1. Click on the system tray

image

@ChrisWellsWood
ChrisWellsWood / midi_in.py
Created January 14, 2023 00:37
A simple example of using rtmidi to listen for MIDI messages from a device.
import time
import rtmidi
# initialise midi in class
midi_in = rtmidi.MidiIn()
# connect to a device
midi_in.open_port(3)
# get midi msgs
@ChrisWellsWood
ChrisWellsWood / Anti-parallel Optimisation.ipynb
Last active April 25, 2023 13:40
A quick overview of how to use a custom specification with an optimizer in ISAMBARD.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / bibtex.png
Created January 6, 2020 15:23 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@ChrisWellsWood
ChrisWellsWood / .vimrc
Created December 9, 2019 09:19
My Current .vimrc (09/12/19)
" Behaviour
set expandtab
set hidden
set path+=**
set shiftwidth=4
set spell
set spelllang=en_gb
set t_vb=
set tabstop=4
set visualbell
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / metaheuristics.ipynb
Created April 20, 2018 13:56
Parameter Optimisation with Metaheuristics in ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / grid-scanning.ipynb
Created April 20, 2018 13:54
Grid Scanning Parameters in ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / model-evaluation.ipynb
Created April 20, 2018 13:53
Evaluation of Models Produced by ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.