Skip to content

Instantly share code, notes, and snippets.

View jimoconnell's full-sized avatar
🎯
Focusing

Jim O'Connell jimoconnell

🎯
Focusing
View GitHub Profile
@jimoconnell
jimoconnell / init.lua
Last active February 12, 2017 21:05
Code by HoracioBouzas, formatted for use with ESPlorer
--http://www.instructables.com/id/ESP8266-based-web-configurable-wifi-general-purpos-1/
--Code by HoracioBouzas, formatted for use with ESPlorer by jimoconnell
print("WIFI control");
-- put module in AP mode
wifi.setmode(wifi.SOFTAP);
print("ESP8266 mode is: " .. wifi.getmode());
cfg={};
-- Set the SSID of the module in AP mode and access password
cfg.ssid="ESP8266";
cfg.pwd="passwordpassword";
@jimoconnell
jimoconnell / default.j2
Created October 17, 2019 15:08 — forked from perfecto25/default.j2
Python function to send email using a Jinja HTML template
<style type="text/css">
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTa-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
.body {
width: 90%;

Keybase proof

I hereby claim:

  • I am jimoconnell on github.
  • I am jimoconnell (https://keybase.io/jimoconnell) on keybase.
  • I have a public key ASAtBUxG7taIRHgiSSz2N-usYxHFy9fp41In4l3_GHZ4vAo

To claim this, I am signing this object:

#################################################################################

This document is Deprecated and will no longer be updated!

#################################################################################

Make Your Google Home Speak

This document outlines how to have your Google Home or other Google Cast device speak a string, using IFTTT, CURL, MQTT, or Python.

Like a well-behaved child, your Google Home speaks only when spoken to.

@jimoconnell
jimoconnell / install_webmin.bash
Created January 11, 2024 14:57
install_webmin.bash
sudo apt update
curl -fsSL https://download.webmin.com/jcameron-key.asc | sudo gpg --dearmor -o /usr/share/keyrings/webmin.gpg
echo 'deb [signed-by=/usr/share/keyrings/webmin.gpg] http://download.webmin.com/download/repository sarge contrib' | tee >> /etc/apt/sources.list
sudo apt update
sudo apt install webmin -y
echo "From https://www.digitalocean.com/community/tutorials/how-to-install-webmin-on-ubuntu-22-04"