Skip to content

Instantly share code, notes, and snippets.

@sysadmiral
sysadmiral / .editorconfig
Last active August 16, 2018 14:13
editorconfig
# http://EditorConfig.org
# Top-most EditorConfig file
root = true
[*]
charset = "utf-8"
end_of_line = lf
indent_style = space
indent_size = 2
@sysadmiral
sysadmiral / keybase.md
Created August 9, 2017 12:07
keybase.md

Keybase proof

I hereby claim:

  • I am sysadmiral on github.
  • I am sysadmiral (https://keybase.io/sysadmiral) on keybase.
  • I have a public key ASAuXvOdX5M1WeNUVoxrQcvi46Q-g0TJeW0JcPznBLQlmAo

To claim this, I am signing this object:

@sysadmiral
sysadmiral / elb.tf
Last active December 19, 2016 03:02
elb.tf
resource "aws_lb_ssl_negotiation_policy" "tls_policy" {
name = "${aws_elb.elb.name}-policy"
load_balancer = "${aws_elb.elb.id}"
lb_port = 443
attribute {
name = "Protocol-TLSv1"
value = "true"
}
TMPFILE="/tmp/seeinstalls.tmp"
function get_initial_installs {
zgrep '^Package:' /var/log/installer/initial-status.gz | awk '{ print $2}' > $TMPFILE
}
function diff_lists {
aptitude search -F %p '~i!~M' | awk '{ print $1}' | grep -v -F -f $TMPFILE
}
@sysadmiral
sysadmiral / github-bitbucket-comparison.md
Created May 12, 2016 10:10
A comparison of what it would cost you on github vs. bitbuckets plans

A note on bitbucket plans

Bitbucket only have 6 levels of plans for hosted bitbucket. These are what I have compared to Github pricing.

Comparison of monthly cost

No. of users Bitbucket price Github Price
Up to 5 users Free $25
@sysadmiral
sysadmiral / README.md
Created March 30, 2016 10:14
Obtaining Amazon SES SMTP Credentials by Converting AWS Credentials

If you have an IAM user that you set up using the IAM interface, you need to do the following two steps to enable the user to send email using the Amazon SES SMTP interface:

  • Derive the user's SMTP credentials from their AWS credentials using the algorithm provided in this section. A user's SMTP username is the same as their AWS Access Key ID, so you just need to generate the SMTP password.

  • Apply the following policy to the IAM user:

{
  "Version": "2012-10-17",
 "Statement": [
@sysadmiral
sysadmiral / mkmf.log
Created March 1, 2016 15:14
building rugged output...
find_executable: checking for gmake... -------------------- no
--------------------
find_executable: checking for make... -------------------- yes
--------------------
find_executable: checking for cmake... -------------------- yes
#!/usr/bin/env bash
# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence