Skip to content

Instantly share code, notes, and snippets.

View wwalker's full-sized avatar

Wayne Walker wwalker

View GitHub Profile
@wwalker
wwalker / 0-description.md
Last active July 6, 2021 23:46
nouveau crashes

starting 2021-06-16 I started having near daily X lock ups on a nVidia 950 running 2 4K monitors under fedora 34. I have been running this same machine with up to date fedora for years without any problems.

on 2021-06-15 I ran a dnf update and rebooted. looking at what was updated that day, it looks like one of these triggered the problem:

  • kernel-5.12.10-300
  • glibc-2.33-16.fc34
  • llvm-libs-12.0.0-2.fc34.x86_64
  • mesa-*-21.1.2-1.fc34
@wwalker
wwalker / lsblk -f
Created July 1, 2021 20:51
luksClose fails with Device /dev/mapper/luks-4T-02 is still in use.
sdg crypto_LUKS 2 3debb5a2-de51-4045-a6bf-f6f67e6fed5e
└─luks-4T-02 ext4 1.0 0d89b9a5-7172-4eca-a0bf-4a1716382d2a
sdh crypto_LUKS 2 379ccd04-5b32-46e3-a1c7-d3ef4b39dd62
└─luks-4T-03 ext4 1.0 18d8e6a6-1ae2-4a90-8e88-61c3e3124f93
@wwalker
wwalker / terraform plan run
Created June 14, 2021 19:29
terraform is confused about: 'Objects have changed outside of Terraform'
$ terraform plan -var env=stage
aws_instance.prometheus: Refreshing state... [id=i-REDACTED]
aws_route53_record.prometheus: Refreshing state... [id=REDACTED_prometheus-server_A]
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the last "terraform apply":
Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include
@wwalker
wwalker / build log for cabal-dependency-licenses
Last active June 11, 2021 00:44
cabal-dependency-licenses build failing
@~/git/matterhorn ✘ ((50200.2.0-1321-g0be2a81d)) $ ./scripts/local-mkrelease.sh
Cloning into 'cabal-dependency-licenses'...
remote: Enumerating objects: 171, done.
remote: Total 171 (delta 0), reused 0 (delta 0), pack-reused 171
Receiving objects: 100% (171/171), 30.92 KiB | 15.46 MiB/s, done.
Resolving deltas: 100% (90/90), done.
/tmp/tmp.EQtq9zJeM5/cabal-dependency-licenses
Wrote tarball sdist to
/tmp/tmp.EQtq9zJeM5/cabal-dependency-licenses/dist-newstyle/sdist/cabal-dependency-licenses-0.2.0.1.1.tar.gz
Resolving dependencies...
@wwalker
wwalker / ec2.tf
Last active May 26, 2021 04:13
multiple aws providers - HOW?????
terraform {
required_version = ">= 0.13"
required_providers {
aws = {
source = "hashicorp/aws",
version = "~> 3.10"
}
}
}
### Resources
@wwalker
wwalker / FF_HTMLbookmarks_toCSV.js
Created May 23, 2021 00:47 — forked from keikoro/FF_HTMLbookmarks_toCSV.js
JavaScript bookmarklet for converting HTML-formatted Firefox bookmarks into a downloadable CSV file
javascript:(function(){
/* escape quotes and commas in contents to be comma-separated */
function wrapCsvContents(content) {
if (typeof(content) === 'string') {
if (content.replace(/ /g, '').match(/[\s,"]/)) {
return '"' + content.replace(/"/g, '""') + '"';
}
}
return content;
}
@wwalker
wwalker / 0 - actual run for me
Last active May 23, 2021 00:28
jq and bookmarks
This should work, but doesn't:
```
@ $ jq '.. |= .title? as $title | .children |= map(. + {"parent": $title})' e.json
jq: error (at e.json:26): Cannot iterate over null (null)
```
This works (almost)
```
@ $ jq '. |= .title? as $title | .children |= map(. + {"parent": $title})' e.json
{
@wwalker
wwalker / transcript
Created April 10, 2021 17:13
create an ssh key (2021-04-10)
@$ ssh-keygen -b 8192 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/wwalker/.ssh/id_rsa):
Created directory '/home/wwalker/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/wwalker/.ssh/id_rsa
Your public key has been saved in /home/wwalker/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:IeBcWkFMTRQ564eAFtrP7j0JTltnpWqishHbIkX06mI wwalker@serenity
@wwalker
wwalker / Card
Created April 9, 2021 01:39
Fedora Wayland on Macbook Pro 16" in VMware Fusion (fullscreen retina mode) - Resolution Crazy low
$ lspci | grep VGA
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
#!/bin/bash
for file in $BLKPATH/*;
do
echo $file
if [[ $file =~ $BLKPATH/blk[0-9][0-9][0-9][0-9][0-9].dat ]]; then
printf "got a match - %s\n"
BLKLST+="-$OPTION=$file "
fi
done