Skip to content

Instantly share code, notes, and snippets.


Mark Burke markdavidburke

View GitHub Profile
ShvaykaD /
Created May 4, 2020
Upgrading PostgreSQL service from 9.x or 10.x to 11 version on CentOS 7
kasuken / profiles.json
Created Jun 23, 2019
Windows Terminal settings and files
View profiles.json
"globals" :
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
Ray33 / gist:ba189a729d81babc99d7cef0fb6fbcd8
Last active Jul 22, 2022 — forked from SamCyanide/gist:780afff4c3e1a9e105264c2a476e037c
Amazon Elastic Network Adapter (ENA) on CentOS 7
View gist:ba189a729d81babc99d7cef0fb6fbcd8
sudo su
yum --enablerepo=extras install epel-release
yum -y install patch dkms kernel-devel perl
yum update
#Required for kernel num 5:
yum --enablerepo=elrepo-kernel -y install kernel-ml-devel
DRN88 /
Last active Dec 18, 2021
Send aws sns sms messages with bash. Zabbix
# 1, Create AWS IAM user with a policy allowing only AWS SNS Publish command
# 2, Install awscli with 'yum -y install awscli' on zabbix server
# 3, Add /bin/bash shell for zabbix user: usermod -s /bin/bash zabbix
# 4, Deploy this script to: /etc/zabbix/
# 5, Edit this script and define the required variables
# 6, Run the script manually to test
# 7, Use the script in Zabbix. Create a new Media Type -> Script
# Use zabbix documentation for the script parameter setup
Nyr /
Last active Dec 18, 2021
Simple script for adding users in bulk to an openvpn-install setup
# Fast way for adding lots of users to an openvpn-install setup
# See the main openvpn-install project here:
# openvpn-useradd-bulk is NOT supported or maintained and could become obsolete or broken in the future
# Created to satisfy the requirements here:
if readlink /proc/$$/exe | grep -qs "dash"; then
echo "This script needs to be run with bash, not sh"
exit 1
jabez007 /
Created Feb 12, 2018
A simple Bash script for install Snort and Barnyard on Cent OS 7 from source
# Set the internal field separator
# Install pre-reqs
yum install libtool autoconf git
eldondevcg /
Last active Nov 18, 2020
Cross account bucket access for IAM roles


This is a little tricky, because it requires several different moving parts, specifically,

  • the lambda task that you want to execute the copy must have IAM access to the bucket in the other account. This is not something that was obvious to me to begin with, although my use case was more complicated.
  • the bucket policy on the destination account must be set to permit your lambda function to write to that bucket. For my special use cases, I have to upload a new bucket policy daily to the receiving buckets. Alternatively, the destination accounts could probably give your a cross-account IAM role to upload the bucket policy yourself.
  • You will likely want to write your objects with the bucket-owner-full-control acl, otherwise, the bucket owner may not be able to download them.
freewayz /
Created Oct 6, 2016
Download files and folder from amazon s3 using boto and pytho local system
#!/usr/bin/env python
import boto
import sys, os
from boto.s3.key import Key
from boto.exception import S3ResponseError
DOWNLOAD_LOCATION_PATH = os.path.expanduser("~") + "/s3-backup/"
if not os.path.exists(DOWNLOAD_LOCATION_PATH):
tmaiaroto / Dockerfile
Last active Jun 30, 2022
WordPress on Amazon ECS
View Dockerfile
FROM alpine:3.3
MAINTAINER Tom Maiaroto <>
# Install packages
RUN apk --update --repository add \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
php7 \
abrahamrhoffman /
Last active Mar 11, 2022
CentOS 7 Kickstart File & How to build an (auto install) ISO

CentOS 7 Kickstart File - HOWTO Build ISO

There is so much documentation online from RedHat and CentOS about this topic - it's sad that I am writing this. But the real state of documentation on this topic (CentOS 7 + KS + ISO = Bootable DVD) is almost non-existent.

I found this:

Which I greatly appreciate and +1, but the documentation is half-baked and there are numerous errors.

Finally... FINALLY! After four days of banging my head, I got this to work. Hopefully someone else will be able to do this in a few hours, instead of blowing their weekend like me. :(