Skip to content

Instantly share code, notes, and snippets.

@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