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
-- @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",
@jessequinn
jessequinn / elk.sh
Last active September 4, 2023 17:02
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
@jessequinn
jessequinn / packages.sh
Last active April 9, 2020 16:41
Python 3.8, PHP 7.4, Yarn, NodeJS 10 Ubuntu 18.04
#!/bin/bash
# PHP 7.4
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install zip unzip
sudo apt install php7.4 php7.4-common php7.4-opcache php7.4-cli php7.4-gd php7.4-curl php7.4-mysql php7.4-xml php7.4-zip
php -v
@jessequinn
jessequinn / openssl_commands.md
Created May 10, 2022 21:48 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@jessequinn
jessequinn / docker-load-and-push.sh
Created May 23, 2022 18:57 — forked from stefanvangastel/docker-load-and-push.sh
Bash scripts to pull, (optional) retag, save, load and push Docker images. Created to provide easy means to download an image, retag it to use a private registry and then save it to an external disk. In a offline or on-premise environment you can use the load and push script to load images and push them to a private registry.
#!/bin/bash
#### Functions ###
display_usage() {
echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!"
echo -e "\nUsage:\n$0 <saved_image> [--push]\n"
echo -e " <saved_image>\t\t\tThe image file to load and push"
echo -e " [--push]\t\t\tPush to registry"
echo -e "\nExample: $0 /mydir/ubuntu.tar --push "
}
@jessequinn
jessequinn / README.md
Created May 23, 2022 18:57 — forked from rluvaton/README.md
Bash scripts to pull, (optional) retag, save, load and push Docker images. Created to provide easy means to download an image, retag it to use a private registry and then save it to an external disk. In a offline or on-premise environment you can use the load and push script to load images and push them to a private registry.

Docker images tar utils

docker-load-and-push

Install globaly

sudo curl -o /usr/local/bin/docker-load-and-push https://gist.githubusercontent.com/rluvaton/ef6415c79c35c5b11c535040e79ab43b/raw/19cb82651a10d5256f512331b484dee8a19a8058/docker-load-and-push.sh && sudo chmod +x /usr/local/bin/docker-load-and-push
@jessequinn
jessequinn / dnsmasq OS X.md
Created August 24, 2022 22:06 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@jessequinn
jessequinn / Vault.md
Created September 10, 2022 20:16
How to setup a Vault server (step by step)

Vault server setup

Personal guide for installing and setting up a Vault server.

  • Install and update required dependencies.
#!/bin/bash

sudo apt-get -y update
version: '3.5'
services:
vault-compose:
image: vault:0.9.6
build:
context: ./vault
ports:
- 8200:8200
@jessequinn
jessequinn / brew-dnsmasq.md
Created November 22, 2022 10:38 — forked from davebarnwell/brew-dnsmasq.md
install dnsmasq with brew

Install dnsmasq and configure for *.dev.local domains

$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf

Reload configuration and clear cache

# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/

$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist