Skip to content

Instantly share code, notes, and snippets.

View unixorn's full-sized avatar
💭
90% Snark by weight

Joe Block unixorn

💭
90% Snark by weight
View GitHub Profile
@unixorn
unixorn / security-group-cleanup.py
Created October 6, 2017 01:21 — forked from TomRyan-321/security-group-cleanup.py
Security Group Cleanup using boto3 with RDS check fixed
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name

Speaker Rider

by Tatiana Mac

Before I'll agree to a speaking event, I try to do as much research I can around the event to ensure it aligns with my ethos. I want to share this in case it's helpful to any other speakers.

👐 Speaking comes with immense privilege. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most marginalised and suppressed communities.

😫 I wish I didn't have to, but this is long because I provide a lot of explanations for those of you who never had to consider these things. And I will be honest, most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

1️⃣ All of these are based on my own ethos. I don't wish to or attempt to speak on behalf of all conference speake

@unixorn
unixorn / template-sensor.yml
Created November 11, 2022 14:08
Home Assistant Template Example
garage_in_use:
friendly_name: "garage_in_use"
value_template: >-
{% if is_state('binary_sensor.garage_internal_motion01_occupancy', 'off') and is_state('cover.garagedoor','closed') %}
off
{% elif is_state('binary_sensor.garage_internal_motion01_occupancy', 'on') or is_state('cover.garagedoor','open') %}
on
{% else %}
{{ states('sensor.garage_in_use') }}
{% endif %}
@unixorn
unixorn / docker-compose-zigbee.yaml
Created November 26, 2022 02:23
zigbee2mqtt & zwavejs2mqtt docker-compose.yaml
version: '3.3'
services:
zigbee2mqtt:
container_name: zigbee2mqtt
restart: unless-stopped
#image: koenkk/zigbee2mqtt:1.25.2
image: koenkk/zigbee2mqtt:latest
volumes:
- /data/zigbee2mqtt/data:/app/data