Skip to content

Instantly share code, notes, and snippets.

@zubir2k
zubir2k / HomeAssistantSolatGPS
Last active April 26, 2022 06:01
HomeAssistantSolatGPS
## Solat by Location ##
# Based on API Provided by Malaysia Prayer Time (https://mpt.i906.my/api.html)
# Please change the person sensor (person.zubir) accordingly..
# Place this code into configuration.yaml
sensor:
- platform: rest
name: "Solat GPS"
scan_interval: 1800
resource_template: "https://mpt.i906.my/api/prayer/{{ state_attr('person.zubir', 'latitude') ~ ',' ~ state_attr('person.zubir', 'longitude') }}"
@rajibdpi
rajibdpi / Office 2019 Professional Plus Product Key
Last active October 20, 2025 09:16 — forked from moonsbtt/Office 2019 Professional Plus Product Key
Office 2019 Professional Plus Product Key
New Methiod to Activate Windows/MS Office 2010/2013/2016/2019
If you have already intalled MS Office Or Download from bellow link
Download setup file for MS Office Pro Plus 2019 https://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img
Activate Windows / Office ?
📌PowerShell Method For Windows 8, 10, 11:
Click the Start Menu, type PowerShell, then open it.
Copy and paste the code below, then press enter.
irm https://get.activated.win | iex
@ItKindaWorks
ItKindaWorks / powerMon.fzz
Last active February 20, 2023 14:56
A simple arduino and ESP8266 program to read and average 2 current transformers and a voltage transformer for monitoring whole house power usage.
@ItKindaWorks
ItKindaWorks / powerMon_VoltageAndCurrent.ino
Created August 1, 2017 04:18
A simple arduino program for measuring and calibrating AC voltage and current sensors.
// EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3
#include "EmonLib.h" // Include Emon Library
#define VOLT_CAL 148.7
#define CURRENT_CAL 62.6
EnergyMonitor emon1; // Create an instance
@kriegsman
kriegsman / DemoReel100.ino
Last active January 24, 2025 17:24
FastLED "100-line" demo reel
#include "FastLED.h"
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
//
// -Mark Kriegsman, December 2014
@abythell
abythell / thingspeak-install.sh
Last active May 22, 2023 18:40
Bash script to install a Thingspeak server on Ubuntu Server 12.04. Raspbian (2014-01-07-wheezy-raspbian). and possibly Debian-based distros.
#!/bin/bash
# Automatic install of Thingspeak server on Ubuntu 12.04 / Raspbmc / Debian (?)
# Updated to use ruby 2.1.4
## Install required packages
sudo apt-get update
sudo apt-get -y install build-essential git mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev libssl-dev libsqlite3-dev
## Install ruby
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz