Skip to content

Instantly share code, notes, and snippets.

View dmacvicar's full-sized avatar

Duncan Mac-Vicar P. dmacvicar

View GitHub Profile
@dmacvicar
dmacvicar / .envrc
Last active May 28, 2022 20:44
nix flakes environment
use_flake
@dmacvicar
dmacvicar / README.md
Created July 31, 2018 21:46
Salt core dump
Jul 31 21:33:39 linux systemd[1]: Started Session 28 of user root.
Jul 31 21:33:39 linux systemd-logind[5766]: New session 28 of user root.
Jul 31 21:33:41 linux kernel: python2.7[9318]: segfault at 50 ip 00007fe0938a7810 sp 00007fff5b72a6e0 error 4 in ld-2.22.so[7fe09389c000+21000]
Jul 31 21:33:41 linux systemd-coredump[9323]: Core Dumping has been disabled for process 9318 (python2.7).
Jul 31 21:33:41 linux systemd-coredump[9323]: Process 9318 (python2.7) of user 0 dumped core.
Jul 31 21:33:41 linux sshd[9285]: Received disconnect from 192.168.122.1 port 45436:11: disconnected by user
Jul 31 21:33:41 linux sshd[9285]: Disconnected from 192.168.122.1 port 45436
Jul 31 21:33:41 linux sshd[9285]: pam_unix(sshd:session): session closed for user root
Jul 31 21:33:41 linux systemd-logind[5766]: Removed session 28.
U-Boot 2016.05-rc3 (May 10 2016 - 07:43:53 +0000)

DRAM:  192 MiB
RPI Model B rev2 (0x4)
MMC:   bcm2835_sdhci: 0
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 1 Ethernet Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Scanning mmc 0:2...
Found U-Boot script /boot.scr
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
var configVolDettached = fmt.Sprintf(`
resource "libvirt_domain" "acceptance-test-domain" {
name = "terraform-test"
}`)

Keybase proof

I hereby claim:

  • I am dmacvicar on github.
  • I am dmacvicar (https://keybase.io/dmacvicar) on keybase.
  • I have a public key whose fingerprint is FFA0 4ED5 BB5A E6F1 5CDD 6ED9 F35B 9C19 76E9 10E3

To claim this, I am signing this object:

@dmacvicar
dmacvicar / rhnActionSaltJob.diff
Created July 21, 2015 08:05
Patches for Spacewalk / SaltStack
From 0f1a58af683b7fdfff1f7a71defa883a8ab5d9da Mon Sep 17 00:00:00 2001
From: Johannes Renner <jrenner@suse.de>
Date: Tue, 14 Jul 2015 13:14:30 +0200
Subject: [PATCH] Database changes to enable the tracking of salt jobs
- create table rhnActionSaltJob
- insert action type salt.job
---
schema/spacewalk/common/data/rhnActionType.sql | 1 +
.../spacewalk/common/tables/rhnActionSaltJob.sql | 41 ++++++++++++++++++++++

Keybase proof

I hereby claim:

  • I am dmacvicar on github.
  • I am dmacvicar (https://keybase.io/dmacvicar) on keybase.
  • I have a public key whose fingerprint is F076 F9E2 7CDD 4903 C46A 2F26 635A 1FBB 0820 3609

To claim this, I am signing this object:

@dmacvicar
dmacvicar / gist:9544563
Created March 14, 2014 09:19
TextAdept: Highlight trailing spaces
-- mark trailing spaces
function highlight_trailing_spaces()
local text = buffer:get_text()
-- TODO: only do it in the visible area, I haven't figured out yet
--local start_pos = buffer:position_from_line(buffer.first_visible_line)
--local end_pos = buffer.line_end_position[buffer.first_visible_line + buffer.lines_on_screen + 1]
--local text = buffer:text_range(start_pos, end_pos)