Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -exo pipefail
# Prep
apt-get clean
apt-get update -y
apt-get upgrade -y
# Install Python3 and PIP
### Preseed for Ubuntu 18.04
### Unattended Installation
d-i auto-install/enable boolean true
d-i debconf/priority select critical
### Localization
# Preseeding only locale sets language, country and locale.
@cavemandaveman
cavemandaveman / nifi-rbac-certs.md
Created April 2, 2019 19:21
NiFi RBAC using certificates

NiFi RBAC using certificates

Using certificates for authentication and authorization with NiFi is not recommended, but carried over from legacy NiFi and still supported. These instructions require openssl and Java's keytool.

  1. Create a cert and key for user1.
openssl req -x509 -newkey rsa:2048 -keyout user1-key.pem -out user1-cert.pem -days 3650 -subj "/CN=user1" -nodes
@cavemandaveman
cavemandaveman / ansible.cfg
Created March 5, 2019 19:13
Handy config options for Ansible
[defaults]
timeout = 30
hash_behaviour = merge
[ssh_connection]
pipelining = True
@cavemandaveman
cavemandaveman / alsa.patch
Last active June 17, 2018 16:52
Alsa patch for Raspberry Pi to support up to 24 bit/192 kHz audio
index 71b1289..27181f0 100644
--- a/sound/arm/bcm2835-pcm.c
+++ b/sound/arm/bcm2835-pcm.c
@@ -23,10 +23,10 @@
static struct snd_pcm_hardware snd_bcm2835_playback_hw = {
.info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
- .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
- .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
@cavemandaveman
cavemandaveman / ks.cfg
Last active October 16, 2022 14:21
Kickstart file for a minimal CentOS 7
# version=RHEL7
#
# To be used with CentOS 7 Minimal ISO
# Syntax: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-kickstart-syntax
#
# Use remote url installation media with text installer
install
url --url="http://mirror.centos.org/centos/7/os/x86_64/"
text