Skip to content

Instantly share code, notes, and snippets.

View lordcirth's full-sized avatar
🏠
Working from home

Nathan Fish lordcirth

🏠
Working from home
  • University of Waterloo, CSCF
View GitHub Profile
stat("/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", {st_mode=S_IFREG|0644, st_size=50998, ...}) = 0
stat("/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", {st_mode=S_IFREG|0644, st_size=50998, ...}) = 0
openat(AT_FDCWD, "/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=50998, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=50998, ...}) = 0
read(4, "\"\"\"\nbase execnet gateway code se"..., 8192) = 8192
read(4, " # we are concurrent with trig"..., 4096) = 4096
read(4, "file.fileno(), os.O_BINARY)\n "..., 4096) = 4096
read(4, "e, handler.__name__.upper(), i)\n"..., 4096) = 4096
read(4, " # state transition \"open"..., 4096) = 4096
@lordcirth
lordcirth / KSP.log snippet
Last active December 21, 2020 20:24
KSP 1.10 error
[EXC 15:07:57.379] NullReferenceException: Object reference not set to an instance of an object
SoftMasking.SoftMask.UpdateMaskParameters () (at <948fceea813942b7ac6b6d1b2dc2d0a3>:0)
SoftMasking.SoftMask.OnWillRenderCanvases () (at <948fceea813942b7ac6b6d1b2dc2d0a3>:0)
UnityEngine.Canvas.SendWillRenderCanvases () (at <36b92316d2a94d5c8eacf43c039a4ca6>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
@lordcirth
lordcirth / gist:017947e2d66bb79d419b140f72e56e5e
Created April 7, 2020 17:29
[root@etcd:~/nixpkgs]# nix-build -A ipfs
../go/pkg/mod/github.com/libp2p/go-libp2p-core@v0.5.1/crypto/ed25519.go:5:2: unknown import path "crypto/ed25519": cannot find module providing package crypto/ed25519
../go/pkg/mod/github.com/whyrusleeping/mdns@v0.0.0-20190826153040-b9b60ed33aa9/client.go:10:2: unknown import path "github.com/miekg/dns": cannot find module providing package github.com/miekg/dns
@version: 3.13
# DO NOT EDIT THIS FILE BY HAND - YOUR CHANGES WILL BE OVERWRITTEN
# Managed by Salt
# https://syslog-ng.com/documents/html/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-guide-admin/html/configure-clients.html
# Except: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788170#10
options {
@lordcirth
lordcirth / haproxy_init.sls
Last active February 4, 2020 17:17
certbot onchanges_in problem
include:
- certbot
certbot_haproxy_hook:
file.managed:
- name: '/etc/letsencrypt/renewal-hooks/deploy/haproxy.hook'
- source: 'salt://{{ tpldir }}/haproxy.hook.jinja'
- template: jinja
- makedirs: True
- mode: 0755
@lordcirth
lordcirth / build_instructions.sh
Last active November 21, 2019 15:58
NixOS image build
# Everything is as non-root user
# Install Nix:
# https://nixos.org/nix/
# (Alternatively a NixOS VM using https://nixos.org/nixos/download.html )
sudo apt install libvirt-bin
# Requires new login shell
sudo usermod -a -G kvm $USER
@lordcirth
lordcirth / error
Created November 17, 2019 22:14
building NixOS image
[bob@nixos:~]$ nix-build laptop.nix -A config.system.build.laptop --show-trace
error: while evaluating anonymous function at /home/bob/nixpkgs/nixos/lib/make-disk-image.nix:1:1, called from /home/bob/laptop.nix:5:32:
value is a function while a set was expected
@lordcirth
lordcirth / Usage
Last active September 20, 2019 14:52
gnuplot script for OSD utilization
ceph osd df class hdd -f json | jq '.nodes[].utilization' > ~/util
gnuplot util.plot < util
feh histogram.png
@lordcirth
lordcirth / sls
Created July 26, 2019 20:11
onlyif
#Auth settings
postgres_pg_hba:
file.managed:
# TODO pillar
- name: '/etc/postgresql/12/test3/pg_hba.conf'
- source: 'salt://{{ tpldir }}/pg_hba.conf.jinja'
- mode: 0640
- onlyif:
- 'stat /etc/postgresql/12/test3/'
- template: jinja
@lordcirth
lordcirth / jinja_density
Created July 22, 2019 17:53
Salt jinja script
#!/bin/bash
DIR=$1
DIR=${DIR:=.}
grep -crIHT '{[{%]' --exclude-dir ".git" $DIR | sort -n -t: -k2