Skip to content

Instantly share code, notes, and snippets.

View cnf's full-sized avatar

Frank Rosquin cnf

View GitHub Profile
@cnf
cnf / dmx.cpp
Created May 5, 2023 18:09
esp dmx try
#include <Arduino.h>
#include <M5Unified.h>
#include <M5UnitLCD.h>
#include <esp_dmx.h>
// I tried Various combinations of transmit and enable pins here
int receivePin = GPIO_NUM_26;
int transmitPin = GPIO_NUM_36;
int enablePin = GPIO_NUM_0;
@cnf
cnf / alarm_triggers.yaml
Created June 29, 2022 19:42
Alarm Triggers
blueprint:
name: Alarm Triggers
description: Trigger the alarm
domain: automation
input:
sensor:
name: Sensors
description: Select the Sensors you want to trigger on.
selector:
entity:
@cnf
cnf / injector_configuration.yml
Created October 29, 2017 11:45
Ansible Tower Credential Type for vmware.py
env:
VMWARE_HOST: '{{hostname}}'
VMWARE_PASSWORD: '{{password}}'
VMWARE_SERVER: '{{hostname}}'
VMWARE_SSLCHECK: '{{ "True" if checkssl else "False" }}'
VMWARE_USER: '{{username}}'
VMWARE_USERNAME: '{{username}}'
VMWARE_VALIDATE_CERTS: '{{ "True" if checkssl else "False" }}'
@cnf
cnf / functions.sh
Created October 8, 2016 16:18
OpenStack Keystone setup scripts
#!/bin/sh
testexit() {
if [ ! $? -eq 0 ]; then
echo "something went wrong, exiting"
exit 1
fi
}
echoerr() {
#!/bin/sh
# Frank Rosquin <frank.rosquin@gmail.com>
MAC=$1
echo "Calculating ipv6 for $MAC"
LEAD=`echo $MAC|awk -F':' '{ print $1}'`
FIXED=`echo $MAC|awk -F':' '{ print tolower($2":"$3":"$4":"$5":"$6)}'`
# TODO: TOGGLE this
@cnf
cnf / Dockerfile
Created May 26, 2015 18:47
VyOS Docker Build
FROM debian:squeeze
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y wget \
&& wget -O - http://packages.vyos.net/vyos-pubkey.gpg | apt-key add - \
&& echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/bp.list \
&& apt-get update \
&& apt-get -t squeeze-backports install -y squashfs-tools \

Keybase proof

I hereby claim:

  • I am cnf on github.
  • I am cnf (https://keybase.io/cnf) on keybase.
  • I have a public key whose fingerprint is 2BF3 DEDC C538 A25F 11B8 93B1 B212 68FB BD8D 25C3

To claim this, I am signing this object:

@cnf
cnf / lnm.md
Last active August 29, 2015 14:05
Logging & Metrics

Logging

  • cAdvisor - Container Advisor, stats for docker host / containers, Influxdb output
  • docker syslog - Multiple Docker containers logging to a single syslog

Dispatchers

@cnf
cnf / Notes.md
Last active March 10, 2018 01:59
Warframe Notes & Instructions