Install vhs.
$ conda create -n textual-demo python=3.10 -y
$ conda activate textual-demo
$ pip install textual
$ vhs < demo.tape
Install vhs.
$ conda create -n textual-demo python=3.10 -y
$ conda activate textual-demo
$ pip install textual
$ vhs < demo.tape
#!/bin/bash | |
# | |
# A script to update your /etc/hosts file from minikube ingest records | |
# | |
# Installation | |
# ------------ | |
# curl -L https://gist.github.com/jacobtomlinson/4b835d807ebcea73c6c8f602613803d4/raw/minikube-update-hosts.sh > /usr/local/bin/minikube-update-hosts | |
# chmod +x /usr/local/bin/minikube-update-hosts | |
set -e |
#! /usr/bin/env python | |
''' | |
Module to remove empty folders recursively. Can be used as standalone script or be imported into existing script. | |
''' | |
import os, sys | |
def removeEmptyFolders(path, removeRoot=True): | |
'Function to remove empty folders' | |
if not os.path.isdir(path): |
# A script that gives a local Dask cluster something to do without stressing hardware. | |
# Useful for testing the dashboard. | |
import time | |
from dask_ctl import get_cluster | |
from dask.distributed import Client, wait | |
from dask import delayed | |
from opsdroid_homeassistant import HassSkill, match_sunrise, match_sunset | |
class SunriseSkill(HassSkill): | |
@match_sunset | |
async def lights_on_at_sunset(self, event): | |
await self.turn_on("light.outside") | |
@match_sunrise |
## Set the logging level | |
logging: | |
level: info | |
## Show welcome message | |
welcome-message: true | |
## Connector modules | |
connectors: | |
homeassistant: |