Skip to content

Instantly share code, notes, and snippets.

# test_1.py
def test_w_number():
"""
Correctly Passes
Examples
--------
>>> 1. # doctest: +NUMBER
0.
"""
@MatthewFlamm
MatthewFlamm / Alarm system.md
Last active February 27, 2024 22:37
Esp32 home alarm system with home assistant and esphome

Alarm system using esp32 with esphome and home assistant

@MatthewFlamm
MatthewFlamm / restart_wlan.sh
Created August 16, 2019 11:05
Restart pi wlan
#!bin/bash
ping -c 1 192.168.0.1 > /dev/null 2>&1
if [ $? -ne 0 ]
then
date
ifconfig wlan0
sudo ip link set wlan0 down
sudo ip link set wlan0 up
ifconfig wlan0
fi