Skip to content

Instantly share code, notes, and snippets.

View hmms's full-sized avatar

Murli Shenoy hmms

View GitHub Profile
@hmms
hmms / ikea_stryrbar_homekit.yaml
Created February 24, 2025 07:47
ikea_stryrbar_homekit.yaml
blueprint:
name: IKEA STYRBAR Remote Control
description: Control devices with IKEA STYRBAR remote using ZHA
domain: automation
input:
remote:
name: STYRBAR Remote
description: Select your STYRBAR remote device
selector:
device:
@hmms
hmms / fidelity_csv_portfolio_piechart.py
Last active November 16, 2024 05:34
fidelity_csv_portfolio_piechart.py
import pandas as pd
import numpy as np
import plotly.express as px
# to use
# 1. update input_file
# 2. update output file
# NOTE: only works for csv downloaded from Fidelity
# to download log into fidelity -> Accounts & Trade --
# -> Positions -> click on download (it's next to print icon)
@hmms
hmms / visaslots_info_email_notify.py
Last active February 12, 2023 00:32
A small python script that enables automated extraction of a table from visaslots.info and sends it over email and Telegram
import requests
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
import time
import requests
import pandas as pd
from bs4 import BeautifulSoup
import smtplib
@hmms
hmms / Capsense-LED-thing.c
Last active August 22, 2017 03:41
firmware for ATtiny85 capacitive touch activated LED thing, with optimizations for extremely low power consumption
/*
* Capsense-LED-thing.c
*
* Created: 9/30/2016 10:25:57 PM
* Author : firmware for Cap Sense LED thing
* basic flow of the program is as follows
* wait for Pin change interrupt on PB2 -> wake up the MCU -> PWM cycle LEDs on PB3 and PB0 go back to sleep and wait for pin change interrupt
* interesting link: https://thewanderingengineer.com/2014/08/11/pin-change-interrupts-on-attiny85/
* Firmware for project at: http://murli-shenoy.com/?p=606
*/
@hmms
hmms / FileArchiver.py
Last active August 17, 2017 21:01
Python 3 script to move files and folders from desktop(and other directories) for archiving. Automates organization of the data that you work on by time, tested on Win 10 Pro. Script can be triggered to run autonomously through Windows Task Scheduler
#File Archiver
#Murli Shenoy - August 2017
#License - please keep this header intact, reuse/modify the code as you wish
import shutil
import datetime as dt
import time
import ctypes, sys, os, traceback, types