Effective total cost: $3–5/mo
Decide on an EC2 instance type:
- At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
- t4g.micro is lowest.
| #!/usr/bin/env python | |
| import imaplib | |
| import os | |
| import logging | |
| import optparse | |
| # LABEL = 'support' | |
| # QUERY = 'before:2015-06-01 -label:to-delete' | |
| # DEST = 'to-delete' | |
| LABEL = 'to-delete' |
| javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push,%20.wiki-actions,%20%23last-edit,%20.actions,%20.header,.site-footer,.repository-sidebar,.file-navigation,.gh-header-meta,.gh-header-actions,#wiki-rightbar,#wiki-footer,.commit-tease').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D);%20$('link').removeAttr('media');%7D); var removeMe = document.getElementsByClassName("file-header")[0]; removeMe.parentNode.removeChild(r |
| FROM codeship/ruby | |
| MAINTAINER Dave Mox <dave.e.mox@gmail.com> | |
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
| git \ | |
| vim | |
| COPY Makefile /src/ |
| import cdk = require('@aws-cdk/cdk'); | |
| import ec2 = require('@aws-cdk/aws-ec2'); | |
| import elastic = require('@aws-cdk/aws-elasticache'); | |
| import rds = require ('@aws-cdk/aws-rds'); | |
| import es = require("@aws-cdk/aws-elasticsearch"); | |
| import ecs = require('@aws-cdk/aws-ecs'); | |
| import s3 = require("@aws-cdk/aws-s3"); | |
| import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2'); | |
| import route53 = require('@aws-cdk/aws-route53'); | |
| import certificateManager = require("@aws-cdk/aws-certificatemanager"); |
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf-8 | |
| # | |
| # USAGE: | |
| # Back up your tmux old config, run the script and redirect stdout to your conf | |
| # file. Example: | |
| # | |
| # $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
| # $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
| # |
There are several guides describing how to migrate a plain RDS instance to an Aurora cluster using read replica. But none of them describes how the new Aurora cluster can afterwards be maintained further with CloudFormation.
This guide describes a migration path I've used on production services. A few manual steps and a short downtime - or at least read-only mode - are required, but the final cluster will then be part of an already existing CloudFormation stack.
With or without CloudFormation, the high-level steps are the following
| package main | |
| import "fmt" | |
| type AnEnum interface { | |
| IAmAnEnum() | |
| } | |
| type Text struct { | |
| text string |
| #!/bin/bash | |
| # Usage: tracing::init [endpoint; default localhost:4317] | |
| function tracing::init() { | |
| export OTEL_EXPORTER_OTLP_ENDPOINT="${1:-${OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}}" | |
| } | |
| # Usage: tracing::auto::init [endpoint; default localhost:4317] | |
| function tracing::auto::init() { | |
| tracing::init |
| # The MIT License (MIT) | |
| # Copyright 2023 Eduardo Leggiero | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |