Skip to content

Instantly share code, notes, and snippets.

worker_processes 2;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream;
[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:
import boto3
import time
# Get the service resource.
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('access_log')
print(table.item_count)
starttime = time.time()
#!/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 &
@oranie
oranie / gist:765248d198552e1a3851
Created August 24, 2015 04:46
sstablemetadata result
[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
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))
}
// To run this test.
// $ go get github.com/garyburd/redigo/redis
// $ go test -bench=.
package main
import (
"fmt"
"log"
"math/rand"
@oranie
oranie / activity_result.xml
Created August 28, 2014 05:18
練習クソアプリ画面2
<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" >
@oranie
oranie / activity_main.xml
Created August 28, 2014 05:18
練習クソアプリ
<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" >
@oranie
oranie / ResultActivity.java
Created August 28, 2014 05:17
練習クソアプリ画面2
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;