Skip to content

Instantly share code, notes, and snippets.

View calvinhp's full-sized avatar

Calvin Hendryx-Parker calvinhp

View GitHub Profile
@pacohope
pacohope / FreeBSD-11-ec2-cloudwatch.md
Last active November 24, 2023 00:04
FreeBSD 11 on AWS EC2, with CloudWatch Logs and EC2 Metrics

Introduction

This is how you would create a livable FreeBSD instance on EC2 by hand. The smart thing to do is to automate most of these actions. But I do it this way so you can see and understand all the different techniques. I want to create FreeBSD instances in EC2 and I want some of the management benefits that come from native AWS technologies like CloudWatch. It can be done, but it takes a bit of extra work because FreeBSD isn't Linux, and AWS doesn't directly support FreeBSD.

Prepping in AWS land

Before we go far, we will want some things setup in AWS IAM and VPC. I assume you have already created a VPC, decided what network numbers you're going to use, created a subnet and so on. If you haven't done those basic things, you need to go do them. I also assume you've created an ssh key and uploaded it to your AWS account.

@aphor
aphor / debug.out
Last active May 29, 2019 21:08
salt orchestration rolling example
$ sudo salt-run --log-level=debug state.orchestrate orch.roll
[DEBUG ] Reading configuration from /opt/local/etc/salt/master
[DEBUG ] Including configuration from '/opt/local/etc/salt/master.d/roots.conf'
[DEBUG ] Reading configuration from /opt/local/etc/salt/master.d/roots.conf
[DEBUG ] Including configuration from '/opt/local/etc/salt/master.d/security.conf'
[DEBUG ] Reading configuration from /opt/local/etc/salt/master.d/security.conf
[DEBUG ] Using cached minion ID from /opt/local/etc/salt/minion_id: salt-master.local
[DEBUG ] Missing configuration file: /Users/aphor/.saltrc
[DEBUG ] Configuration file path: /opt/local/etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.

Deckset Theme Customization Beta

Download Beta Build (builds expire after 28 days)

Here is an example snippet of the theme configuration commands (place these at the top of your Markdown file):

theme: Work
text: Gill Sans, #F5E5C0, text-scale(0.75), line-height(1.4)
header: Gill Sans UltraBold, text-scale(1.2), line-height(0.9)
@reachlin
reachlin / prometheus.yml
Created April 19, 2017 07:06
sample prometheus configuration explained
// For all the confusing Prometheus configuration and
// regular expressions,
// explained in examples.
// Remember, there are default values for each item if it's missing.
// regex is (.*),
// replacement is $1,
// separator is ;
// ,and action is replace
@dlangille
dlangille / 1 - The FileSet
Last active February 28, 2021 23:45
Each jail is in its own fileset. Snapshot each fileset, back it up. Destroy the filesets.
# the filesets will be different on each jail, thus, we'll always be doing a full unless
# we define this for each jail server
#
FileSet {
Name = "zuul jail snapshots"
Include {
Options {
signature = MD5
Exclude = yes
}