This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --- COLORS ------------------------------------------------------------------- | |
RESET='\033[0m' | |
BOLD='\033[1m' | |
GREEN='\033[1;32m' | |
BLUE='\033[1;34m' | |
YELLOW='\033[1;33m' | |
RED='\033[1;31m' | |
CYAN='\033[1;36m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import logging | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | |
logger = logging.getLogger(__name__) | |
file_handler = logging.FileHandler('filehawk.log') | |
file_handler.setLevel(logging.INFO) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Euler, Vector | |
import math | |
import bmesh | |
def set_origin_to_bottom_center(obj): | |
""" | |
Sets the origin of the given object to its bottom center. | |
Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sounddevice as sd | |
import numpy as np | |
import pynput.keyboard | |
import time | |
import whisper | |
import tempfile | |
import os | |
from scipy.io.wavfile import write | |
# Load Whisper Model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "https://unpkg.com/[email protected]/wired-card.js?module"; | |
import "https://unpkg.com/[email protected]/wired-toggle.js?module"; | |
import { LitElement, html, css } from "https://unpkg.com/[email protected]/lit-element.js?module"; | |
class TripsCard extends LitElement { | |
static get properties() { | |
return { | |
person: { type: String }, | |
homeZone: { type: String }, | |
hours: { type: Number }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StateDurationCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const cardTitle = this.config.title || 'State Duration Totals'; | |
this.innerHTML = ` | |
<ha-card> | |
<div class="card-header"> | |
<div class="name" style="cursor: pointer;">${cardTitle}</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleLogCard extends HTMLElement { | |
set hass(hass) { | |
this._hass = hass; | |
if (!this.content) { | |
const title = this.config.title || 'Sensor Log'; | |
this.innerHTML = ` | |
<ha-card header="${title}"> | |
<div class="card-content"></div> | |
</ha-card> | |
`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pwd | |
import grp | |
import hashlib | |
from collections import defaultdict | |
# Trusted users | |
TRUSTED_USERS = ['root'] | |
# Base system directories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#render html file with table of Image, Dates in rows, from the espcam_history folder with filenames lik livingroom-2024-04-23_20-36.jpg | |
import os | |
import sys | |
import datetime | |
import re | |
import subprocess | |
import argparse | |
import jinja2 | |
import logging |
NewerOlder