This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
set -x | |
# create a temp dir in which to work | |
OLDDIR="$PWD" | |
mkdir /tmp/rds-ca && cd /tmp/rds-ca | |
# download the bundle | |
wget https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample; | |
import javax.management.MBeanServerConnection; | |
import javax.management.ObjectName; | |
import org.apache.log4j.Logger; | |
public class QueueSizeCounter { | |
private MBeanServerConnection mBeanServerConnection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_ebs_volume" "ssp_api_docker" { | |
count = "${aws_instance.ssp_api.count}" | |
availability_zone = "${element(split(",", lookup(var.availability_zones, var.region)), count.index)}" | |
size = "${var.ebs_volume_ssp_api_docker_size}" | |
type = "${var.ebs_volume_ssp_api_docker_type}" | |
encrypted = true | |
kms_key_id = "${var.ebs_volume_ssp_api_docker_kms_key_id}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
consul: | |
image: consul:latest | |
command: "agent -dev -client=0.0.0.0 -bind='{{ GetPrivateIP }}'" | |
ports: | |
- 8500:8500 | |
vault: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$content = file_get_contents(__DIR__ . '/composer.json'); | |
printf( | |
" \"hash\": \"%s\",\n \"content-hash\": \"%s\",\n", | |
md5($content), | |
getContentHash($content) | |
); |