Skip to content

Instantly share code, notes, and snippets.

View cbullers's full-sized avatar
🤖
Focusing

Chris Bullers cbullers

🤖
Focusing
View GitHub Profile
@cbullers
cbullers / work_alert.py
Created May 26, 2023 21:44
HomeAssistant/AppDaemon script to notify when leaving work
# Alert when leaving from work and give a rough estimate
# of when arriving at zone.home using the Waze API
import appdaemon.plugins.hass.hassapi as hass
import WazeRouteCalculator
import math
import datetime
class WorkAlert(hass.Hass):
do_the_thing(){
echo "re-routing DNS servers to our secure server"
for i in {1..4}
do
sleep 1
printf "."
done
find ~
echo ""
echo "using SHA256 unencryptor to locate the first part of the key"
from Tkinter import *
import time
class Application(Frame):
def runProgressLoopLabel(self, label, frmPct, toPct, delayInSeconds):
for i in range(frmPct, toPct+1):
label.after(int(delayInSeconds*1000), lambda: label.config(text=(str(i)+"%")))
root.update()
time.sleep(delayInSeconds)
text
skipx
install
url --url http://mirror.raystedman.net/centos/6/os/x86_64/
repo --name=updates --baseurl=http://mirror.raystedman.net/centos/6/updates/x86_64/
lang en_US.UTF-8
keyboard us
rootpw s0m3password
firewall --disable
authconfig --enableshadow --passalgo=sha512