Skip to content

Instantly share code, notes, and snippets.

View dch's full-sized avatar
🛋️

Dave Cottlehuber dch

🛋️
View GitHub Profile
@dch
dch / minimal.yml
Last active September 25, 2018 15:18
minimal single-file ansible playbook for FreeBSD
---
# a minimal FreeBSD oriented ansible playbook
# you can run this as follows:
# ansible-playbook quick.yml -i localhost, -v
# note the trailing , necessary to skip needing an inventory file
- hosts: localhost
connection: local
become: yes
vars:
ansible_python_interpreter: /usr/local/bin/python2.7
databases/couchdb2: new port via PR#218844
Summary: JSON document database with HTTP API & scalable multi-master sync
A number of people provided signficant assistance while developing this
port. Thank-you for your perseverance and assistance.
PR: 218844
Submitted by: dch
Reported by:
@dch
dch / hexpm.mk
Created September 21, 2018 06:27
# $FreeBSD$
#
# Fetch packages from https://hex.pm/packages/ for Elixir and Erlang/OTP
#
# Feature: hexpm
# Usage: USES=hexpm
# Valid ARGS: does not require args
#
# MAINTAINER= [email protected]
#
@dch
dch / ibrowse.diff
Last active September 19, 2018 08:32
git diff --patience CouchDB-4.0.1...v4.4.1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a48c26e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+_build
+ebin
+*.beam
+*.sw*
@dch
dch / gist:8c58268f700309ecc90d0c9a6cab8f26
Created September 19, 2018 08:31
git diff --patience CouchDB-4.0.1...v4.4.1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a48c26e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+_build
+ebin
+*.beam
+*.sw*
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@dch
dch / 2.1.2.fail.log
Created July 9, 2018 23:26
2.1.2 hates me
dch@i09 /t/c/apache-couchdb-2.1.2> ./configure -c --skip-deps --disable-docs --disable-fauxton
==> configuring couchdb in rel/couchdb.config
You have configured Apache CouchDB, time to relax. Relax.
dch@i09 /t/c/apache-couchdb-2.1.2> gmake; and gmake check
==> config (compile)
Compiled src/config_sup.erl
Compiled src/config_listener_mon.erl
Compiled src/config_writer.erl
Compiled src/config_util.erl
@dch
dch / ddb.conf
Last active June 26, 2018 07:51
wintermute config files & dmesg @ r335576+8a125fa67c5d
# ansible_managed
hostname="wintermute.skunkwerks.at"
# kernel
kld_list="linux64 fuse nvidia-modeset ipmi smb ichsmb dtraceall cc_htcp filemon cuse"
update_motd=YES
# daemons
zfs_enable="YES"
syslogd_flags="-ss"
@dch
dch / set_jail_hostname.md
Created June 23, 2018 10:32
pushing jail hostname into jails

I tried the following jail.conf and everything works perfectly.

exec.start = "/bin/sh /etc/rc";
exec.poststart = "jail -m name=$name host.hostname=$name.`hostname`";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
db {
#!/bin/sh -e
# ansible managed
/bin/freebsd-version -ku
export PAGER="/bin/cat -bu"
cd /etc
test -d .git || git init .
git add -A
git commit --allow-empty -am `freebsd-version -ku | sort -r |head -1`-update
zfs snapshot -r zroot@`date -u +%Y%m%d-%H%M`:`freebsd-version -ku | sort -r |head -1`-update
beadm create `freebsd-version -ku | sort -r |head -1`-update