Skip to content

Instantly share code, notes, and snippets.

Avatar
😎

Rick Bowen rrrix

😎
View GitHub Profile
@rrrix
rrrix / synthetic.conf.5
Last active Sep 13, 2022
Man: synthetic.conf(5) - synthetic symbolic link and directory manifest
View synthetic.conf.5
SYNTHETIC.CONF(5) File Formats Manual SYNTHETIC.CONF(5)
NAME
synthetic.conf – synthetic symbolic link and directory manifest
DESCRIPTION
synthetic.conf describes virtual symbolic links and empty directories to be
created at the root mount point. Because the root mount point is read-only
as of macOS 10.15, physical files may not be created at this location. All
writeable paths must reside on the data volume, which is mounted at
View Enable-PSScriptBlockLogging.ps1
# Correctly formatted script content from:
# https://adamtheautomator.com/powershell-logging-2/#Enable_Script_Block_Logging_Using_Windows_Registry
function Enable-PSScriptBlockLogging
{
# Registry key
$basePath = 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging'
# Create the key if it does not exist
if(-not (Test-Path $basePath))
{
View gpg_howto.md

Quick n' Dirty GnuPG

Asymmetric Encryption for confidential, trusted data exchange over any transport

Prerequisite - install GnuPG if not installed

Check if GnuPG (gpg) is installed. In a Terminal:

# Check if gpg installed
$ which gpg [0]
@rrrix
rrrix / amazon-cloudwatch-agent_config.json
Last active May 6, 2019
Standard Cloudwatch Log Agent Configuration /opt/aws/amazon-cloudwatch-agent/bin/config.json
View amazon-cloudwatch-agent_config.json
{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"log_group_name": "amazon-cloudwatch-agent.log",
"log_stream_name": "{hostname}_{ip_address}_{instance_id}"
},