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 / README.md
Created August 29, 2024 16:06
Externalizing the Trust Store for Hazelcast Enterprise Docker

Externalizing the Trust Store for Hazelcast Enterprise Docker

A workaround for the current lack of HashiCorp or other vault support.

Objective:

To externalize the Java trust store from the Hazelcast Docker container, allowing updates to the trust store without the need to rebuild the Docker image.

Steps to Implement:

  • Create an External Volume for the Trust Store:
  • When running the Hazelcast Docker container, you can mount an external directory from the host system as a volume. This directory will hold the trust store (e.g., cacerts).
@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"

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:

@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%;

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

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 / tmux.md
Created September 23, 2016 15:09 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@jimoconnell
jimoconnell / Mobile-test
Last active July 3, 2016 12:11
Mobile test
Apparently you *can* edit gists using working copy and textastic, but it's hardly intuitive
@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";
// Copied from:
// http://www.instructables.com/id/Interface-a-rotary-phone-dial-to-an-Arduino/?ALLSTEPS
// By Instructables user guidomax
int needToPrint = 0;
int count;
int in = 2;
int lastState = LOW;
int trueState = LOW;
long lastStateChangeTime = 0;
int cleared = 0;
@jimoconnell
jimoconnell / warnings
Created January 8, 2014 15:23
Fraud Warnings
Alabama "A person who knowingly and with intent to injure, defraud, or deceive an insurance company files a claim containing false, incomplete or misleading information may be prosecuted under this title.”
Arizona "Any person who knowingly presents a false or fraudulent claim for payment for a loss or benefit or knowingly presents false information in an application for insurance is guilty of a crime and may be subject to fines and confinement in prison.” "
Arkansas "Any person who knowingly presents a false or fraudulent claim for payment for a loss or benefit or knowingly presents false information in an application for insurance is guilty of a crime and may be subject to fines and confinement in prison”.
California "For your protection California law requires the following to appear on this form: Any person who knowingly presents false or fraudulent claim for the payment of a loss is guilty of a crime and may be subject to fines and confinement in state prison."