java -version
wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.rpm"
sudo rpm -i jdk-8u11-linux-x64.rpm
| #!/bin/sh | |
| # | |
| # chkconfig: 35 99 99 | |
| # description: Node.js /home/nodejs/sample/app.js | |
| # | |
| . /etc/rc.d/init.d/functions | |
| USER="nodejs" |
| #!/usr/bin/env python | |
| # An exponential backoff around Boto3 DynamoDB, whose own backoff eventually | |
| # fails on long multipage scans. We'd like to use this as a wrapper somehow, | |
| # see: https://gist.github.com/numberoverzero/cec21b8ca715401c5662 | |
| from time import sleep | |
| import boto3 | |
| from boto3.dynamodb.conditions import Attr |
java -version
wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.rpm"
sudo rpm -i jdk-8u11-linux-x64.rpm
| console.log('Loading event'); | |
| var AWS = require('aws-sdk'); | |
| var dynamodb = new AWS.DynamoDB(); | |
| exports.handler = function(event, context) { | |
| console.log("Request received:\n", JSON.stringify(event)); | |
| console.log("Context received:\n", JSON.stringify(context)); | |
| var tableName = "OurBlogDemo"; | |
| var datetime = new Date().getTime().toString(); |
| """ | |
| Example code for sending emails using boto's SES module. Its main purpose is to | |
| show how easy it is to build multipart text/html emails. | |
| Unfortunately, at this time Amazon's SES doesn't seem to allow you to add | |
| attachments to messages, but if it does in the future it would probably look | |
| like the code that I've commented out below the exception. | |
| The SES module of the Boto package isn't quite finalized yet, but I currently | |
| have this code running using Harry Marr's implementation which is available at: |
| /* | |
| requires libgit2 | |
| */ | |
| package main | |
| import ( |
| #!/bin/bash | |
| set -o errexit | |
| echo "Removing exited docker containers..." | |
| docker ps -a -f status=exited -q | grep -vE "$(docker ps -a --filter='name=-data' -q | tr \"\n\" \|)" | xargs -r docker rm -v | |
| echo "Removing untagged images..." | |
| docker images --no-trunc | grep "<none>" | awk '{print $3}' | xargs -r docker rmi |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| type Foo struct { | |
| FirstName string `tag_name:"tag 1"` | |
| LastName string `tag_name:"tag 2"` |
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |
| package timestamp | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo/bson" | |
| "strconv" | |
| "time" | |
| ) | |
| type Timestamp time.Time |