Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bradleythughes on github.
  • I am bradleythughes (https://keybase.io/bradleythughes) on keybase.
  • I have a public key whose fingerprint is 9580 065C 49C1 ED72 1F6D 56BA B12E 03CA 55A3 1C15

To claim this, I am signing this object:

@bradleythughes
bradleythughes / core.txt.0
Last active November 9, 2018 19:12
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
@bradleythughes
bradleythughes / process-turnserver-metrics.awk
Created April 26, 2018 10:59
process-turnserver-metrics.awk
#
# awk(1) script to process the turnserver's session information into interesting CloudWatch metrics. The
# output is written to stdout as JSON in the format expected by the AWS CLI.
#
# This script generates metric data for the InstanceId and AutoScalingGroupName dimensions. These values need
# to be set when calling the script:
#
# awk -v InstanceId=$instance_id -v AutoScalingGroupName=$asg_name \
# -f process-turnserver-metrics.awk input.txt > output.json
#
@bradleythughes
bradleythughes / ami.tf
Last active January 25, 2018 20:26
terraform aws_ami data source
data "aws_ami" "freebsd" {
provider = "aws.${var.aws_region}"
filter {
name = "name"
values = ["FreeBSD 11.1-RELEASE-amd64"]
}
filter {
name = "architecture"
values = ["x86_64"]
}
@bradleythughes
bradleythughes / turnserver.conf.awk
Last active April 28, 2022 19:38
Example configuration for coturn on AWS
/^external-ip=/ {
print "external-ip=" PUBLIC "/" PRIVATE
next
}
/^static-auth-secret=/ {
print "static-auth-secret=" SECRET
next
}
{ print }
$ cat /usr/local/etc/afp.conf
[Global]
mimic model = Xserve
uam list = uams_dhx2.so uams_guest.so
[Homes]
basedir regex = /usr/home
[NAS preset]
valid users = @nas
$ sudo smartctl -i /dev/ada0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 10.1-RELEASE-p6 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST2000DM001-1CH164
Serial Number: XXXXXXXX
LU WWN Device Id: 5 000c50 06d57a67b
Firmware Version: CC27
$ zpool get all
NAME PROPERTY VALUE SOURCE
Z size 10.9T -
Z capacity 26% -
Z altroot - default
Z health ONLINE -
Z guid 2098603998235043015 default
Z version - default
Z bootfs Z/FreeBSD-10 local
Z delegation on default