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
worker_processes 2; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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
[Builder: fluentd-ui] I | Build fluentd-ui: 52.9431s | |
The following shell command exited with status 1: | |
$ BUNDLE_GEMFILE=Gemfile.production /opt/td-agent/embedded/bin/rake build | |
Output: | |
(nothing) | |
Error: |
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
import boto3 | |
import time | |
# Get the service resource. | |
dynamodb = boto3.resource('dynamodb') | |
table = dynamodb.Table('access_log') | |
print(table.item_count) | |
starttime = time.time() |
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/bash | |
cd /home/ec2-user/as_app | |
git clone https://github.com/conmame/as_demo_app.git | |
cd as_demo_app | |
npm install | |
node bin/www & |
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
[ec2-user@ip-172-31-21-237 tools]$ sstablemetadata /var/lib/cassandra/data/OpsCenter/rollups60-a4bcce003b4411e5b6f94d9babac77ac/la-1-big-Data.db | |
SSTable: /var/lib/cassandra/data/OpsCenter/rollups60-a4bcce003b4411e5b6f94d9babac77ac/la-1-big | |
Partitioner: org.apache.cassandra.dht.Murmur3Partitioner | |
Bloom Filter FP chance: 0.010000 | |
Minimum timestamp: 1438763524378000 | |
Maximum timestamp: 1439295851510001 | |
SSTable max local deletion time: 1439900651 | |
Compression ratio: -1.0 | |
Estimated droppable tombstones: 0.897405094748573 | |
SSTable Level: 0 |
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
if (task.getIAMRoles == 1){ | |
val client: AmazonDynamoDBClient = new AmazonDynamoDBClient( | |
new ClientConfiguration().withMaxConnections(10)) | |
.withRegion(Regions.fromName(task.getRegion)) | |
} else { | |
val client: AmazonDynamoDBClient = new AmazonDynamoDBClient( | |
credentialsProvider, | |
new ClientConfiguration().withMaxConnections(10)) | |
.withRegion(Regions.fromName(task.getRegion)) | |
} |
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
// To run this test. | |
// $ go get github.com/garyburd/redigo/redis | |
// $ go test -bench=. | |
package main | |
import ( | |
"fmt" | |
"log" | |
"math/rand" |
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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:onClick="onClick" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.example.androidday2thema.ResultActivity" > |
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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.example.androidday2thema.MainActivity" > |
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.example.androidday2thema; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
import android.widget.TextView; |