Skip to content

Instantly share code, notes, and snippets.

@BrianAker
BrianAker / esp_sniffer.yaml
Created September 2, 2023 04:48
Sniff all blue traffic via esp home and insert it into MQTT.
esphome:
name: esp-sniffer
friendly_name: esp-sniffer
includes: std_includes.h
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
esphome:
name: esp32-c3
friendly_name: esp32-c3
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
@BrianAker
BrianAker / grifcat.c
Created January 9, 2023 22:15 — forked from baol/grifcat.c
Commandline tool for the Griffin Powermate based on libusb (not using the kernel driver)
/****************************************************************************
*
* $RCSfile: grifcat.c,v $
*
* grifcat - Griffin Powermate cat
* Original Author: Caskey Dickson <caskey@technocage.com> 2005-07-09
* Copyright 2005 TechnoCage, Inc. All Rights Reserved
* $Id: grifcat.c,v 1.5 2005/08/31 20:04:48 caskey Exp $
*
* This program is free software; you can redistribute it and/or
#!/bin/sh
FILENAME="`hostname -s`-`cut -d' ' -f1 /etc/version`-`date +%Y%m%d`.db"
#echo $FILENAME
cp /data/freenas-v1.db /mnt/data/truenas/$FILENAME
echo "Backup $FILENAME created"
# the auth token that Truenas generates is just too damn short
sed -ie 's/auth.generate_token",\[300/auth.generate_token",\[129600/g' /usr/share/truenas/webui/*js
@BrianAker
BrianAker / .gitignore
Created July 14, 2022 04:28
Global gitignore
# Add to git:
# git config --global core.excludesfile ~/.gitignore
# VIM: Temperory files
*~
# VIM: Swap-files
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
esphome:
name: esp-camera
esp32:
board: esp32cam
framework:
type: arduino
# Enable logging
logger:
@BrianAker
BrianAker / create_gtld_ca.sh
Last active September 18, 2022 05:48
This script produces a CA with a restraint that it can only create certificates under a specific domain.
#!/bin/bash
# This script produces a CA with a restraint that it can only create certificates under a specific domain.
# The last 5 lines install the CA where mkcert will make use of it as the root CA ( OSX specific at the moment )
gTLD="${gTLD:-localhost}"
declare -x HOST_COMMON_NAME
#export exampleIP=192.0.2.2
force=false
diff --git a/configure.ac b/configure.ac
index b25fb2389..cd8b39ca3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1763,28 +1763,24 @@ then
fi
-# set sha3 default
-SHA3_DEFAULT=no
diff --git a/Makefile.am b/Makefile.am
index 617e45c46..d946faae7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -237,6 +237,24 @@ test: check
tests/unit.log: testsuite/testsuite.log
scripts/unit.log: testsuite/testsuite.log
+$(srcdir)/configure: configure.ac aclocal.m4
+ cd '$(srcdir)' && $(AUTOCONF)