Skip to content

Instantly share code, notes, and snippets.

View rrrix's full-sized avatar
reading man pages

Rick Bowen rrrix

reading man pages
  • Hire me!
  • El Dorado Hills, CA
  • 12:48 (UTC -07:00)
  • LinkedIn in/0xRB
View GitHub Profile
goos: darwin
goarch: arm64
BenchmarkStringType-10       27413637        42.87 ns/op      16 B/op       1 allocs/op
BenchmarkReflectTypeOf-10    205474878        5.824 ns/op      0 B/op       0 allocs/op
BenchmarkSwitchType-10       1000000000       0.8087 ns/op     0 B/op       0 allocs/op✨✨
rrrix / synthetic.conf.5
Last active September 13, 2022 00:44
Man: synthetic.conf(5) - synthetic symbolic link and directory manifest
synthetic.conf – synthetic symbolic link and directory manifest
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
# Correctly formatted script content from:
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))

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 / amazon-cloudwatch-agent_config.json
Last active May 6, 2019 23:42
Standard Cloudwatch Log Agent Configuration /opt/aws/amazon-cloudwatch-agent/bin/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}"