Skip to content

Instantly share code, notes, and snippets.

View bjcubsfan's full-sized avatar
👋

B. J. Potter bjcubsfan

👋
View GitHub Profile
@bjcubsfan
bjcubsfan / hard-drive-monitoring.md
Last active April 7, 2017 19:23
Configure a server to email on hard drive problems

Set up email for notices

I installed ssmtp and configured it:

/etc/ssmtp/ssmtp.conf
----
#
# /etc/ssmtp/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The person who gets all mail for userids < 1000
@bjcubsfan
bjcubsfan / vim-presentation.md
Last active December 13, 2017 14:11
Using Vim

Using Vim

These notes are available at http://bit.ly/bj-vim

Ian Langworth Article

I recently updated my vim configuration based on an article I read. Here are some of the best things I have learned from it:

Here is my repo with modifications to what was in the article

@bjcubsfan
bjcubsfan / etc-default-grub
Created August 20, 2019 19:23
Troubleshooting install Arch Linux with ZFS root
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
GRUB_CMDLINE_LINUX="dozfs real_root=ZFS=nand/sys/dirty/root/default zfs=nand/sys/dirty/root/default root=ZFS=nand/sys/dirty/root/default"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos nvme zfs zfscrypt zfsinfo"
@bjcubsfan
bjcubsfan / boot-grub-grub.cfg
Last active December 26, 2019 22:35
Information on my system for troubleshooting ZFS on root
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
[ 0.000000] Linux version 5.3.1-arch1-1-ARCH (builduser@heftig-3999379) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Sat Sep 21 11:33:49 UTC 2019
[ 0.000000] Command line: \\vmlinuz-linux root=PARTUUID=a158dd01-636f-4dcb-b6fc-118427be3bd8 rw add_efi_memmap initrd=\initramfs-linux-fallback.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] microcode: microcode updated early to revision 0x2000064, date = 2019-07-31
[ 0.000000] Linux version 5.3.1-arch1-1-ARCH (builduser@heftig-3999379) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Sat Sep 21 11:33:49 UTC 2019
[ 0.000000] Command line: initrd=\EFI\archiso\intel_ucode.img initrd=\EFI\archiso\amd_ucode.img initrd=\EFI\archiso\archiso.img archisobasedir=arch archisolabel=ARCH_201910
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=()
# BINARIES
# This setting includes any additional binaries a given user may
@bjcubsfan
bjcubsfan / arch.conf
Last active February 17, 2021 22:51
Working configuration for NVME
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options nvme_load=YES root=UUID=e535f1e1-13d7-45e2-b0c6-d9c3c186448c rw