Skip to content

Instantly share code, notes, and snippets.

View ikidd's full-sized avatar

Ian Kidd ikidd

  • Alberta, Canada
View GitHub Profile
@ikidd
ikidd / Someinfo
Last active December 6, 2018 20:33
NixOS on ZFS: not mounting on reboot
[root@nixos:~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 4.80G 18.3G 96K /rpool
rpool/home 96K 18.3G 96K legacy
rpool/root 4.80G 18.3G 96K none
rpool/root/nixos 4.80G 18.3G 4.80G legacy
[root@nixos:~]# zpool status
pool: rpool
state: ONLINE
-- Logs begin at Fri 2018-09-14 08:04:07 MDT, end at Sun 2018-12-09 01:02:22 MST. --
Dec 09 00:54:31 desktop-arch kernel: microcode: microcode updated early to revision 0x11, date = 2018-05-08
Dec 09 00:54:31 desktop-arch kernel: Linux version 4.19.1-arch1-1-ARCH (builduser@heftig-16768) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Sun Nov 4 16:49:26 UTC 2018
Dec 09 00:54:31 desktop-arch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=f587481a-d9ae-4148-bc5f-13409d6ff8f0 rw quiet splash radeon.si_support=0 amdgpu.si_support=1
Dec 09 00:54:31 desktop-arch kernel: KERNEL supported cpus:
Dec 09 00:54:31 desktop-arch kernel: Intel GenuineIntel
Dec 09 00:54:31 desktop-arch kernel: AMD AuthenticAMD
Dec 09 00:54:31 desktop-arch kernel: Centaur CentaurHauls
Dec 09 00:54:31 desktop-arch kernel: x86/fpu: x87 FPU will use FXSAVE
Dec 09 00:54:31 desktop-arch kernel: BIOS-provided physical RAM map:
# GRUB boot loader configuration
GRUB_DEFAULT="saved"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.si_support=0 amdgpu.si_support=1"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER="false"
# use "reset=1" as default, since it should be safe for recent devices and
# solves all kind of problems.
options btusb reset=1
@ikidd
ikidd / journalctl
Created December 31, 2018 23:25
4.20 failed upgrade
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2018-09-27 23:58:15 MDT, end at Mon 2018-12-31 16:04:14 MST. --
Dec 31 15:55:34 laptop-arch kernel: Linux version 4.20.0-arch1-1-ARCH (builduser@heftig-29859) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Mon Dec 24 03:00:40 UTC 2018
Dec 31 15:55:34 laptop-arch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=3abfefbe-fc0f-4f50-99f2-cae2c48c5ee6 rw quiet
Dec 31 15:55:34 laptop-arch kernel: KERNEL supported cpus:
Dec 31 15:55:34 laptop-arch kernel: Intel GenuineIntel
Dec 31 15:55:34 laptop-arch kernel: AMD AuthenticAMD
Dec 31 15:55:34 laptop-arch kernel: Hygon HygonGenuine
Dec 31 15:55:34 laptop-arch kernel: Centaur CentaurHauls
Dec 31 15:55:34 laptop-arch kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
@ikidd
ikidd / journalctl -b
Last active January 1, 2019 01:21
4.20 upgrade: multi-user.target booted with lightDM
lspci -nn | grep 1022:15d3
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d3]
00:01.6 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d3]
00:01.7 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d3]
lspci -nn | grep 1002:15dd
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev c4)
file:///usr/share/messaging-app//Messages.qml:118:32: Unable to assign [undefined] to QString
file:///usr/share/messaging-app//Messages.qml:118:32: Unable to assign [undefined] to QString
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read property 'lastItem' of null
file:///usr/share/messaging-app//MessageDelegate.qml:48: TypeError: Cannot read
**Upgrade process**
DO NOT USE WEB-BASED UPGRADE!
- put into Maintenance Mode
`sudo -u http php /usr/share/nginx/nextcloud/occ maintenance:mode --on`
- stop and/or disable nginx, maybe reboot
`systemctl disable nginx.service`
- unmount nextcloud data folder:
`zfs unmount zstore1/nextcloud_data`
- rename /usr/share/nginx/nextcloud folder to nextcloud.old
`mv nextcloud nextcloud.old`
@ikidd
ikidd / source_select.xml
Last active January 18, 2021 06:39
Original style source select for Seren, pre-2.X
<window type="dialog">
<defaultcontrol>2</defaultcontrol>
<coordinates>
<left>0</left>
<top>0</top>
</coordinates>
<controls>
<!-- Background Texture -->
<control type="image">
<texture>$INFO[Window().Property(texture.white)]</texture>
@ikidd
ikidd / gist:c9da7a9851ebcee5b598d6a210d79cc5
Created February 20, 2021 05:20
NR flow for turning on a wifi plug if item waiting in CUPS queue
[{"id":"6ce5d159.126d78","type":"inject","z":"1c85885c.80412","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":60,"wires":[["6a9e0ede.6f203"]]},{"id":"f7a8e74b.708128","type":"html","z":"1c85885c.80412","name":"","property":"payload","outproperty":"payload","tag":".list > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1)","ret":"html","as":"single","x":320,"y":120,"wires":[["84fd8aa5.c726a"]]},{"id":"6a9e0ede.6f203","type":"http request","z":"1c85885c.80412","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.10.251.161:631/jobs?","tls":"","persist":false,"proxy":"","authType":"","x":340,"y":60,"wires":[["f7a8e74b.708128"]]},{"id":"84fd8aa5.c726a","type":"split","z":"1c85885c.80412","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":100,"y":200,"wires":[["71725e4e.ef59d"]]},{"id":"71725e4