Skip to content

Instantly share code, notes, and snippets.

@jeff1evesque
jeff1evesque / aws_network_certification.txt
Created November 1, 2023 00:25
AWS Network Certification Material
48
- https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/software-site-to-site-vpn-1.html
- https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/appendix-a-high-level-ha-architecture-for-software-vpn-instances.html
- https://aws.amazon.com/blogs/networking-and-content-delivery/introducing-aws-client-vpn-to-securely-access-aws-and-on-premises-resources/
- https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
49
- https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html
- https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-records-examples.html
- https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
@jeff1evesque
jeff1evesque / codebuild.yaml
Created April 4, 2022 20:46
example of artifacts being shared between AWS CodeBuild projects
AWSTemplateFormatVersion: 2010-09-09
Description: >
complete example of artifacts being shared between AWS CodeBuild projects
and AWS CodePipeline stages.
Resources:
CodePipelineRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
###
### create_key.pp, create ssh key(s).
###
class sshkey::create_key {
$directory_path = '/etc/puppetlabs/puppetserver/ssh'
$ssh_keys = $::sshkey::params::ssh_keys
$ssh_keys.each |Integer $index, String $value| {
$ssh_key = basename($value, '.git')
$certs = [
"${directory_path}/${ssh_key}",
@jeff1evesque
jeff1evesque / Vagrantfile
Created January 15, 2019 03:41
Centos7x: guest additions workaround
# -*- mode: ruby -*-
# vi: set ft=ruby :
##
## variables
##
## Note: multiple vagrant plugins follow the following syntax:
##
## required_plugins = %w(plugin1 plugin2 plugin3)
##
#!/bin/bash
##
## variables
##
## @HOST_FQDN, this needs match the result of running the 'hostnamectl' command
## from the environment running the puppetserver / puppetmaster.
##
## @HOST_IP, address that corresponds to the puppetserver.
##
## login
docker login
## update base
docker build -f dockerfile/base.dockerfile -t jeff1evesque/ml-base:0.8 .
docker push jeff1evesque/ml-base:0.8
## update mongodb
docker build -f dockerfile/mongodb.dockerfile -t jeff1evesque/ml-mongodb:0.8 .
docker push jeff1evesque/ml-mongodb:0.8
@jeff1evesque
jeff1evesque / change_context.txt
Last active October 25, 2017 19:35
Selinux change context
## immediate changes
chcon -Rv --type=httpd_sys_content_t file-name
## persistent changes
semanage fcontext -a -t httpd_sys_script_exec_t 'docroot(/.*)?'
restorecon -RFv docroot/
@jeff1evesque
jeff1evesque / git-commit-comments
Last active October 12, 2023 10:31
Change git comment character from '#' to ';'
git config core.commentChar ';'
{
"name": "jeff1evesque/trusty64",
"description": "Ubuntu 14.04 LTS 64Bit",
"versions": [
{
"version": "1.0.0",
"providers": [
{
"name": "virtualbox",
"url": "https://atlas.hashicorp.com/jeff1evesque/boxes/trusty64/versions/1.0.0/providers/virtualbox.box",
@jeff1evesque
jeff1evesque / validate-puppet.sh
Last active August 1, 2016 00:59
Validate puppet variables via 'puppet apply'
vagrant@vagrant-ubuntu-trusty-64:~$ puppet apply -e 'notify { "something@%/ok.*": }'
Notice: Compiled catalog for vagrant-ubuntu-trusty-64.home in environment produc
tion in 0.03 seconds
Notice: something@%/ok.*
Notice: /Stage[main]/Main/Notify[something@%/ok.*]/message: defined 'message' as
'something@%/ok.*'
Notice: Applied catalog in 0.01 seconds