Skip to content

Instantly share code, notes, and snippets.

View peacengell's full-sized avatar

peacengell peacengell

View GitHub Profile
@danwagoner
danwagoner / ConvertTo-SSMDocument.ps1
Created January 17, 2019 18:02
[Convert PS Script to SSM Document] Automatically generates the document json from provided script and saves the document in the documents folder. #powershell #ssm #aws
# Automatically generates the document json from provided script and saves the document in the documents folder.
param (
[Parameter(Mandatory=$True)]
[string]$ScriptPath,
[Parameter(Mandatory=$True)]
[string]$Description
)
$Prefix = @"
@peacengell
peacengell / logrotate_setup.sh
Created December 20, 2018 05:07 — forked from carlessanagustin/logrotate_setup.sh
Logrotate setup - apply: wget -O - https://bit.ly/2PkCV8J | sudo bash -s <LOGS_FOLDER> <FILENAME>
#!/usr/bin/env bash
LOGS_FOLDER=$1
FILENAME=$2
DEST_FOLDER=/etc/logrotate.d
cat << EOF > $DEST_FOLDER/$FILENAME
$LOGS_FOLDER/*.log {
rotate 7
size 100M
@thieryl
thieryl / 001_ansible _deep_dive.md
Last active July 27, 2018 11:43
[Yesterday I learned...] Continous learning #general

Diving deeper into Ansible


Sharing ideas about how to resolve issues is one of the best things we can do in the IT and open source world, so I went looking for help by submitting issues in Ansible and asking questions in roles others created.

Reading the documentation (including the following topics) is the best way to get started learning Ansible.

Getting started

Best practices