Skip to content

Instantly share code, notes, and snippets.

most-volatile-files () {
git log --pretty=format: --name-only | sed -e '/^$/d' | \
sort | uniq -c | sort -rg | head -n 100
}
root@hostanme-163: most-volatile-files
2645 sys/conf/files
1997 sys/conf/NOTES
1626 Makefile.inc1
1421 sys/i386/conf/NOTES
@lidl
lidl / gist:443e1f382c2fed726fb83dedb05f6f42
Created January 2, 2019 22:46
kyua failure on sparc64 - freebsd 12.0-release
root@spork:~ # gdb /usr/local/bin/kyua kyua.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `kyua test -k /usr/tests/Kyuafile'.
Program terminated with signal 11, Segmentation fault.
@lidl
lidl / gist:ce558e0881f74d46a00f5c8fa6ea68d2
Created December 13, 2018 16:04
Dell XPS 15 9550 dmesg.boot with FreeBSD 12.0-release kernel
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-RELEASE r341666 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
VT(efifb): resolution 800x600
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (2592.10-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x506e3 Family=0x6 Model=0x5e Stepping=3
@lidl
lidl / gist:db7f00516c739f7e909cc9506988998a
Created December 13, 2018 15:59
ACPI errors from 12.0-RELEASE on Dell XPS 15 model 9550
System bios has been updated to v1.9, which is the latest on the Dell website
Firmware Error (ACPI): Could not resolve [\134_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20181003/psargs-503)
ACPI Error: Method parse/execution failed \134_TZ.TZ00._TMP, AE_NOT_FOUND (20181003/psparse-677)
Firmware Error (ACPI): Could not resolve [\134_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20181003/psargs-503)
ACPI Error: Method parse/execution failed \134_TZ.TZ00._TMP, AE_NOT_FOUND (20181003/psparse-677)
Firmware Error (ACPI): Could not resolve [\134_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20181003/psargs-503)
ACPI Error: Method parse/execution failed \134_TZ.TZ01._TMP, AE_NOT_FOUND (20181003/psparse-677)
Firmware Error (ACPI): Could not resolve [\134_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20181003/psargs-503)
ACPI Error: Method parse/execution failed \134_TZ.TZ01._TMP, AE_NOT_FOUND (20181003/psparse-677)
@lidl
lidl / gist:c3f419ae41c31fa315c3d612360c35e4
Created November 10, 2018 17:58
debugging sparc64 hang during boot (fbsd-13-current @ 20181109)
Rebooting with command: boot /pci@1c,600000/scsi@2/disk@0,0:a
Boot device: /pci@1c,600000/scsi@2/disk@0,0:a File and args:
>> FreeBSD/sparc64 ZFS boot block
Boot path: /pci@1c,600000/scsi@2/disk@0,0:a
Consoles: Open Firmware console
|
FreeBSD/sparc64 bootstrap loader, Revision 1.0
(Wed Aug 22 15:16:15 EDT 2018 lidl@spork.pix.net)
bootpath="zfs:sys0/ROOT/default:"
@lidl
lidl / gist:a7b82125bced13bbc48582814913c6d0
Created November 9, 2018 14:34
FreeBSD 13-current on sparc64
SC Alert: Host System has Reset
Probing system devices
Probing memory
Probing I/O buses
screen not found.
keyboard not found.
Keyboard not present. Using ttya for input and output.
Probing system devices
Probing memory
Probing I/O buses
last pid: 1017; load averages: 0.21, 0.23, 0.18 up 0+01:17:16 22:37:57
11 processes: 11 sleeping
CPU: 0.0% user, 0.0% nice, 0.2% system, 0.0% interrupt, 99.8% idle
Mem: 11M Active, 12M Inact, 57M Wired, 17M Buf, 408M Free
Swap: 2000M Total, 2000M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAN
798 root 1 20 0 19M 19M select 1 0:02 0.03% ntpd
982 lidl 1 20 0 19M 4536K select 0 0:00 0.03% sshd
841 root 1 20 0 16M 4584K select 1 0:00 0.02% sendma
@lidl
lidl / gist:1bfc43c6472cbd1c19f13e526a2a2d9b
Created March 23, 2018 20:33
dumpet output on freebsd of ubuntu disk
root@hydra-287: ./dumpet -i /tmp/ubuntu-16.04.2-server-amd64.iso
Validation Entry:
Header Indicator: 0x01 (Validation Entry)
PlatformId: 0x00 (80x86)
ID: ""
Checksum: 0x55aa
Key bytes: 0x55aa
Boot Catalog Default Entry:
Entry is bootable
Boot Media emulation type: no emulation
@lidl
lidl / gist:ebfb03546c114f7a84b7aa754c482cc6
Created March 23, 2018 20:00
dumpet output from EFI bootable CDROM image
Validation Entry:
Header Indicator: 0x01 (Validation Entry)
PlatformId: 0x00 (80x86)
ID: ""
Checksum: 0x55aa
Key bytes: 0x55aa
Boot Catalog Default Entry:
Entry is bootable
Boot Media emulation type: no emulation
Media load segment: 0x07c0
@lidl
lidl / gist:b2969a8e3e65505fec6d58e875ff9d24
Created March 2, 2018 18:24
debugging dovecot on sparc64
(gdb) bt
#0 __getCurrentRuneLocale () at /usr/include/runetype.h:101
#1 0x000000004063ecd4 in __sbtolower (_c=86) at /usr/include/_ctype.h:154
#2 0x000000004063ec34 in str_lcase (str=0x41016dc0 "VERBOSE_PROCTITLE") at strfuncs.c:345
#3 0x000000004063edb8 in t_str_lcase (str=0x41016da8 "VERBOSE_PROCTITLE") at strfuncs.c:353
#4 0x0000000040512ed4 in settings_parse_environ (ctx=0x41063048) at settings-parser.c:1090
#5 0x0000000040508594 in master_service_settings_read (service=0x4102f000, input=0x7fdfffff758,
output_r=0x7fdfffff880, error_r=0x7fdfffff748) at master-service-settings.c:578
#6 0x0000000000129df0 in auth_settings_read ()
#7 0x000000000010dd2c in ?? ()