Skip to content

Instantly share code, notes, and snippets.

@ChadDevOps
ChadDevOps / README.md
Created March 20, 2020 00:34
Ubuntu full disk encryption manual partitioning uefi with additional home partition

https://vitobotta.com/2018/01/11/ubuntu-full-disk-encryption-manual-partitioning-uefi/

Modified to use a seperate encrypted partition for /home

Run gparted, and do the following:

delete all the existing partitions on the target disk
create a new partition table of type parimary
create a fat32 partition of 256MB with name “EFI System Partition” and label “ESP”, then click “Apply” to actually create the partition

right-click on the partition you’ve just created, click “Manage flags” and check “esp”, then click “Apply again”

@ChadDevOps
ChadDevOps / README.md
Last active February 11, 2020 16:26
Update Open Distro triggers to use MS Teams message card json

Summary

This query will update the trigger message for monitor alerts in Kibana with Open Distro plugin installed.

This should also work with the AWS ElasticSearch service as it utilizes Open Distro.

A Microsoft Teams (MS Teams) generic message card template is included.

Query

@ChadDevOps
ChadDevOps / aws
Created February 9, 2020 00:46
Bash script using AWS Cli to check various systems for daily email
#!/bin/bash
# /etc/cron.daily/aws
# Check AWS SES Suppression List
OUTPUT="$(aws sesv2 list-suppressed-destinations --profile default)"
ISEMPTY=`echo "${OUTPUT}" | grep '".*SuppressedDestinationSummaries": \[\].*'`
[ -z "$ISEMPTY" ] && echo "${OUTPUT}" | mail -s "[AWS-DAILY] Daily Suppressed Destinations" info
@ChadDevOps
ChadDevOps / clamd.conf
Created February 8, 2020 04:30
clamonacc for Ubuntu 18.04
#/etc/clamav/clamd.conf
#Used with Virtualmin
#Tweak as needed
TCPSocket 3333
TCPAddr 127.0.0.1
User root
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false