Skip to content

Instantly share code, notes, and snippets.

View jessequinn's full-sized avatar
💭
fullstack senior developer

Jesse Quinn jessequinn

💭
fullstack senior developer
View GitHub Profile
@jessequinn
jessequinn / elk.sh
Last active April 19, 2025 09:45
Ubuntu - ELK Stack Installation Script
### Script originally based on https://gist.github.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3
#!/bin/bash
#ONE LINE
#sudo wget -Nnv 'https://gist.githubusercontent.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3/raw/f8c3b22b9d9c41093150b96c815776956b523d9d/elk.sh' && bash elk.sh && rm -f elk.sh
# Checking whether user has enough permission to run this script
sudo -n true
if [ $? -ne 0 ]
then
-- @module Mailer
-- requires 30log luarock install
local class = require '30log'
-- defaults with exchange server
local Mailer = class("Mailer",
{ server = "outlook.office365.com",
port = 993,
mailbox = "Inbox",
protocol = "tlsv1_2",