Skip to content

Instantly share code, notes, and snippets.

View sourcejedi's full-sized avatar

Alan Jenkins sourcejedi

View GitHub Profile
@sourcejedi
sourcejedi / reply-1.md
Last active April 8, 2023 13:16
Reply to COVID discussion 2023-04-08

OK. I think everyone's expressed interest, so I haven't untagged them yet.

OTOH, I'm not going to pay for Twitter Blue (more characters).

Question here:


Conversation starters were:

@sourcejedi
sourcejedi / gist:2658a0412c6bfbb814824842d43a332e
Created November 7, 2020 15:26
Updates to Full list of local COVID alert levels by area - GOV.UK
Se https://web.archive.org/web/20201103094716/https://www.gov.uk/guidance/full-list-of-local-covid-alert-levels-by-area#full-history
The code to show the update list does not work in the Internet Archive, so I have extracted the list below.
Published 12 October 2020
Last updated 30 October 2020 + show all updates
30 October 2020
Updated to reflect that West Yorkshire will move to 'local COVID alert level: very high' from 2 November; and that the following areas will move to 'local COVID alert level: high' from 31 October: Amber Valley, Bolsover, Luton, Cannock Chase, Carlisle, Charnwood, Derby City, Derbyshire Dales, Dudley, East Riding of Yorkshire, East Staffordshire, all wards in High Peak, Kingston upon Hull, Lichfield, Newcastle-under-Lyme, North East Lincolnshire, North Lincolnshire, Oxford City, Peak District National Park, South Derbyshire, South Staffordshire, Stafford Borough, Staffordshire Moorlands, Tamworth, and Telford and Wrekin.
@sourcejedi
sourcejedi / transcript.md
Last active November 5, 2020 13:44
https://twitter.com/jamesannan/status/1324075832369963010 Seems like I'm giving a talk “at Lancaster Uni” about our COVID work tomorrow, 12:30 UK time (UT). It appears to be on zoom and therefore presumably open to all of my follower

Hi it's Michael here from Norwich

Hi everybody! If you have questions as we go, please do type in here. There will be time at the end for questions too. Thanks!

Not quite true.

Want to come in Chris?

@Paul happy to wait until the end.

@sourcejedi
sourcejedi / log-shutdown-delay.txt
Last active September 12, 2019 10:19
1m30s shutdown delay on Debian 10
-- Logs begin at Wed 2019-08-28 15:28:42 BST, end at Thu 2019-09-05 15:48:36 BST. --
Sep 03 11:34:55 drystone kernel: Linux version 4.19.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08)
Sep 03 11:34:55 drystone kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-5-amd64 root=UUID=f10753fb-0a2d-4288-971d-5f33682ab5c0 ro quiet
Sep 03 11:34:55 drystone kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Sep 03 11:34:55 drystone kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Sep 03 11:34:55 drystone kernel: x86/fpu: Enabled xstate features 0x3, context size is 576 bytes, using 'standard' format.
Sep 03 11:34:55 drystone kernel: BIOS-provided physical RAM map:
Sep 03 11:34:55 drystone kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Sep 03 11:34:55 drystone kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000008ffff] usable
Sep 03 11:34:55 drystone kernel: BIOS-e820:
First results are during `dd if=/dev/sda of=/dev/null bs=4M count=10k iflag=direct`
Second results are during `dd if=/dev/sda of=/dev/null bs=4M count=10k`
Results are from `atopsar -d 5`
12:48:41 disk busy read/s KB/read writ/s KB/writ avque avserv _dsk_
12:53:06 sda 26% 306.6 512.1 0.6 4.0 18.7 0.84 ms
12:53:11 sda 25% 310.4 511.9 0.2 4.0 18.8 0.82 ms
12:53:16 sda 25% 310.9 512.0 0.0 0.0 18.9 0.81 ms
@sourcejedi
sourcejedi / after-unbind.txt
Last active December 5, 2018 20:26
sysfs attributes of IBM trackpoint device, before and after unbinding the device driver
/sys/bus/serio/devices/serio2
├── bind_mode
├── description
├── drvctl
├── firmware_id
├── id
│   ├── extra
│   ├── id
│   ├── proto
│   └── type
@sourcejedi
sourcejedi / dmesg.txt
Created July 19, 2018 20:03
SheevaPlug kernel log messages - "Linux version 4.9.0-6-marvell" "Debian 4.9.88-1+deb9u1 (2018-05-07)"
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0-6-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.88-1+deb9u1 (2018-05-07)
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt:Machine model: Globalscale Technologies SheevaPlug
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0592b48, node_mem_map dfbf8000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
strace: Process 1 attached
epoll_pwait(4, [{EPOLLIN, {u32=3162728624, u64=94840335591600}}], 39, -1, NULL, 8) = 1
clock_gettime(CLOCK_BOOTTIME, {tv_sec=552, tv_nsec=540910081}) = 0
accept4(14, NULL, NULL, SOCK_CLOEXEC|SOCK_NONBLOCK) = 16
getsockopt(16, SOL_SOCKET, SO_PEERCRED, {pid=632, uid=0, gid=0}, [12]) = 0
getrandom("\xb3\xdc\xe5\x4f\x6f\x68\x05\xfa\xbf\x1a\x87\xb4\xa7\xc2\xf1\x93", 16, GRND_NONBLOCK) = 16
fcntl(16, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(16, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fstat(16, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
getsockopt(16, SOL_SOCKET, SO_RCVBUF, [212992], [4]) = 0
@sourcejedi
sourcejedi / gist:d481b9f191bdcb2916496d4efd875685
Created September 4, 2017 21:41
Jessie live installer does not install os-prober, despite being recommended by grub-common
Jan 9 12:24:12 main-menu[342]: INFO: Menu item 'grub-installer' selected
Jan 9 12:24:12 grub-installer: info: architecture: amd64/generic
Jan 9 12:24:12 /bin/in-target: warning: /target/etc/mtab won't be updated since it is a symlink.
Jan 9 12:24:12 in-target: Reading package lists...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Building dependency tree...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Reading state information...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Suggested packages:
[ 0.000000] Linux version 4.11.11-300.fc26.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Mon Jul 17 16:32:11 UTC 2017
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.11.11-300.fc26.x86_64 root=UUID=1ec6e495-7e31-426b-89cf-2703c59d2807 ro console=ttyS0 systemd.unit=emergency.target systemd.log_level=debug systemd.log_target=console LANG=en_GB.UTF-8
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009f