Skip to content

Instantly share code, notes, and snippets.

View bjcubsfan's full-sized avatar
👋

B. J. Potter bjcubsfan

👋
View GitHub Profile
@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
# 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
[ 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'
[ 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'
@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
@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 / 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 / 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 / job_opening.md
Last active April 12, 2016 21:54
This is the job opening we have at the FAA right now, it's the same as my job which is great!

Job title

Engineer/Programmer/Data Scientist

Job description

LS Technologies has an immediate job available to assist the Federal Aviation Administration (FAA). You will work in the Satellite Support team within the FAA’s National Enterprise Operations (NEO) Directorate. In this job, you will work with the FAA's Wide Area Augmentation System (WAAS). You will learn the workings of this complex system. This knowledge will allow you to be able to investigate anomalous conditions when they occur and develop tools to analyze data from the system.

You will work on a small independent team that has great freedom to choose the right tools and methods to complete any given task. The team constantly improves their knowledge by attending relevant conferences and training sessions. You can set your schedule to work 9 hour days and get Friday off every other week. Working more than 40 hours a week is almost never required.

@bjcubsfan
bjcubsfan / mirrorlist
Created May 8, 2015 19:35
mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector -c 'United States' --save /home/bpotter/mirrorlist --verbose --sort rate
# When: 2014-09-08 18:54:41 UTC
# From: https://www.archlinux.org/mirrors/status/json/
# Retrieved: 2014-09-08 18:52:34 UTC
# Last Check: 2014-09-08 18:16:19 UTC