This app does not send the author/developer any data from your usage.
The app does not collect any information about your usage beyond what is provided by Apple.
import machine, neopixel, time | |
from machine import Pin, ADC | |
np = neopixel.NeoPixel(Pin(2), 200) | |
adcpin = machine.ADC(26) | |
while True: | |
num_of_leds = None | |
for i in range(len(np)): | |
onvalue = 0 |
import os | |
import win32com.client as win32 | |
olApp = win32.Dispatch('Outlook.Application') | |
olNS = olApp.GetNameSpace('MAPI') # NameSpaces need for attchm | |
mailItem = olApp.CreateItem(0) | |
mailItem.Subject = 'Dummy Email2' | |
mailItem.BodyFormat = 1 | |
mailItem.Body = "Hello World" |
#! /bin/env bash | |
number_contestants=$1 | |
# convert to hexadecimal | |
number_contestants=$(echo "ibase=10 ; obase=16 ; $number_contestants" | bc) | |
# take image | |
ffmpeg -f v4l2 -i /dev/video0 -frames:v 1 -y foo.png | |
# md5sum it and extract the value |
This gist is provided as an addition to my youtube video | |
https://www.youtube.com/watch?v=dKvetujHjYQ&t=737s | |
## Useful links | |
https://wiki.archlinux.org/title/Install_Arch_Linux_from_existing_Linux#Using_a_chroot_environment | |
https://archlinuxarm.org/platforms/armv8/generic | |
https://www.reddit.com/r/archlinux/comments/6kwt61/systemd_doesnt_create_machineid_during/ | |
https://arm.endeavouros.com/endeavouros-arm-install/ | |
## Get into chroot |
This is a gist containing several files needed to get Masonite automatically deploying to your servers via GitHub pushes (or releases)
NOTE: This script will have a downtime of a few seconds between deployments. If your application requires no downtime you can see this GIST here for a bit more complex GIST for getting to zero downtime deployments through the use of uWSGI, unix sockets and managed config files
GOAL: Send a push notification after the (vibrations from the) dryer cycle has completely stopped. | |
USING: | |
* Inexpensive hardware (see below) | |
* ESPhome (http://esphome.io) for chip firmware | |
* Home Assistant (http://hass.io) for sensor state machine and push notification. | |
--- | |
SHOPPING LIST: |
Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
Download the latest ugw3
package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb
.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
Do you want to try out this experimental (!) new lovelace UI stuff in Home Assistant but don't want to migrate your entire configuration? This script is here to help! It reads in your Home Assistant configuration (specifically the group:
section) and creates a matching ui-lovelace.yaml
file in your Home Assistant configuration folder (of course backing up any previous file at that path).
To use this script, you first need to have python and home assistant installed where you plan to run this script. Do so using virtual environments and the pip3 install -U homeassistant
command. Then copy below file to lovelace_migrate.py
(any location should work) and run:
python3 lovelace_migrate.py -c <PATH_TO_HASS_CONFIG_DIR>