Skip to content

Instantly share code, notes, and snippets.

@npwolf
npwolf / run_list.sh
Last active Sep 16, 2020
Reformat btrfs
View run_list.sh
# Recreate cowdata
systemctl stop docker
umount -f /fastdata
umount -f /cowdata
# Above umount needs to succeed
# verify cowdata and fastdata are unmounted
df -h
View strata_rpms.txt
PyYAML-3.10-11.el7.x86_64
acl-2.2.51-15.el7.x86_64
audit-libs-2.8.5-4.el7.x86_64
audit-libs-python-2.8.5-4.el7.x86_64
basesystem-10.0-7.el7.centos.noarch
bash-4.2.46-34.el7.x86_64
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7_8.1.x86_64
bzip2-libs-1.0.6-13.el7.x86_64
ca-certificates-2019.2.32-76.el7_7.noarch
View led_controller.erl
%%% led_controller is a module to toggle LEDs wired to gpio pins on the raspberry pi
-module(led_controller).
-behavior(gen_server).
-export([start_link/1]).
% standard gen_server
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
% Public Interface
-export([on/1, off/1, blink/2]).
% Don't call these directly
-export([blink_cast/2]).