In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
#!/bin/sh | |
PUBLIC_IP=$(curl ifconfig.io) | |
# export INSTALL_RKE2_VERSION="v1.20.5+rke2r1" | |
curl -sfL https://get.rke2.io | sh - | |
provider_id="$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone)/$(curl -s http://169.254.169.254/latest/meta-data/instance-id)" |
''' | |
@author Bommarito Consulting, LLC; http://bommaritollc.com/ | |
@date 20131029 | |
This script monitors and logs to CSV the status of all tunnels for all VPNs for a single EC2 region. | |
''' | |
# Imports | |
import boto | |
import boto.ec2 | |
import boto.vpc |
#!/bin/bash | |
module=$1 | |
for resource in `terraform show -module-depth=1 | grep module.${module} | tr -d ':' | sed -e 's/module.${module}.//'`; do | |
terraform taint -module ${module} ${resource} | |
done |
var AWS = require('aws-sdk'); | |
var url = require('url'); | |
var https = require('https'); | |
var hookUrl, kmsEncyptedHookUrl, slackChannel; | |
kmsEncyptedHookUrl = 'abcd1234'; // Enter the base-64 encoded, encrypted key (CiphertextBlob) | |
slackChannel = 'example_channel'; // Enter the Slack channel to send a message to | |
var postMessage = function(message, callback) { |
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos | |
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423 | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
# (if you're backing up a user's repos instead, this should be your GitHub username) | |
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) |
curl -i -u "my_user_name:my_password" -X PUT -d '' 'https://api.github.com/repos/my_gh_userid/my_repo/collaborators/my_collaborator_id' |
HOWTO: Use the Postfix Chef Cookbook to have your EC2 server relay all mail through AWS SES. | |
node.default['postfix']['mailtype'] = "master" | |
node.override['postfix']['main']['relayhost'] = "[email-smtp.us-west-2.amazonaws.com]:25" | |
node.default['postfix']['main']['smtp_sasl_auth_enable'] = "yes" | |
node.default['postfix']['main']['smtp_sasl_password_maps'] = "hash:/etc/postfix/sasl_passwd" | |
node.default['postfix']['main']['smtp_sasl_security_options'] = "noanonymous" | |
node.default['postfix']['main']['smtpd_use_tls'] = "yes" | |
node.default['postfix']['main']['mynetworks'] = "42.42.42.0/24, 127.0.0.1/32" | |
node.default['postfix']['main']['mydomain'] = "solongandthanksforallthefi.sh" |
This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.
You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.
$ docker --version
Docker version 1.12.0, build 8eab29e
You also need Docker machine installed.
Graphite does two things:
What Graphite does not do is collect data for you, however there are some tools out there that know