Skip to content

Instantly share code, notes, and snippets.

@stevenringo
stevenringo / reinvent-2017-youtube.md
Created December 3, 2017 23:01
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

@pahud
pahud / check_spot_price_now.md
Created August 10, 2016 08:10
check current spot price with aws-cli
$ aws --region=ap-northeast-2 ec2 describe-spot-price-history --instance-types c4.large --start-time=$(date +%s) --product-descriptions="Linux/UNIX" --query 'SpotPriceHistory[*].{az:AvailabilityZone, price:SpotPrice}'
[
    {
        "price": "0.024900", 
        "az": "ap-northeast-2a"
    }, 
 {
@tache
tache / README-SSL-Certificates.md
Last active June 15, 2017 16:38
LetsEncrypt and AWS

#Using LetsEncrypt SSL certificates on AWS

This is a document for managing the LetsEncrypt certificates on AWS for Cloudfront and Opsworks.

##Setup

The following are instructions for using LetsEncrypt under Mac OS. It is for a single token for a single server.

It is an active project, so make sure you do a pull every so often.

@aparnachaudhary
aparnachaudhary / HornetQJournalRecovery.asciidoc
Last active December 31, 2015 18:49
HornetQ Journal Check

Export Journal

JBOSS_HOME=/Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final

java -cp hornetq-core-2.2.13.Final.jar org.hornetq.core.journal.impl.ExportJournal $JBOSS_HOME/standalone/data/messagingjournal hornetq-data hq 10485760 /tmp/export.dmp

Print Journal

@divanvisagie
divanvisagie / LED_Server.js
Last active May 1, 2020 08:03
Web server controlled LED on Arduino using johnny-five and the dev version of NARF( https://github.com/divanvisagie/NARF/tree/Dev ) , Five minute hack. LED is placed on pin 13.Once you get LED_Server running, the client at index.html can control the LED on your Arduino , you will have to change the GET urls in index.html if you are using it on a…
var five = require( 'johnny-five' ),
board,
narf = require( 'narf' );
board = new five.Board();
/*
Executes a command and fires event when done that
will return the command output
*/
@somic
somic / gist:123889
Created June 4, 2009 22:16
Prints out how many seconds ago this EC2 instance was started
#!/bin/bash
#
# Prints out how many seconds ago this EC2 instance was started
#
# It uses Last-Modified header returned by EC2 metadata web service, which as far
# as I know is not documented, and hence I assume there is no guarantee
# that Last-Modified will be always set correctly.
#
# Use at your own risk.
#