Skip to content

Instantly share code, notes, and snippets.

View Rjerk's full-sized avatar
🐼
Flourishing

Rjerk Rjerk

🐼
Flourishing
View GitHub Profile
@Rjerk
Rjerk / tablestats
Created May 27, 2023 15:35
nodetool tablestats
Total number of tables: 102
----------------
Keyspace : alternator_obj_0
Read Count: 26
Read Latency: 0.0021153846153846153 ms
Write Count: 0
Write Latency: NaN ms
Pending Flushes: 0
Table: obj_0
SSTable count: 423
This file has been truncated, but you can view the full file.
{
"client" : {
"cluster_file" : {
"path" : "/etc/foundationdb/fdb.cluster",
"up_to_date" : true
},
"coordinators" : {
"coordinators" : [
{
"address" : "10.181.159.74:5500",
#include <iostream>
#include <aws/core/Aws.h>
#include <aws/core/utils/Outcome.h>
#include <aws/dynamodb/DynamoDBClient.h>
#include <aws/dynamodb/model/AttributeDefinition.h>
#include <aws/dynamodb/model/KeySchemaElement.h>
#include <aws/dynamodb/model/ProvisionedThroughput.h>
#include <aws/dynamodb/model/ScalarAttributeType.h>
void UpdateItemOutcomeReceived(const Aws::DynamoDB::DynamoDBClient* sender,
const Aws::DynamoDB::Model::UpdateItemRequest& request,
const Aws::DynamoDB::Model::UpdateItemOutcome& outcome,
const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context)
{
AWS_UNREFERENCED_PARAM(sender);
AWS_UNREFERENCED_PARAM(request);
AWS_UNREFERENCED_PARAM(context);
if (!outcome.IsSuccess()) {
@Rjerk
Rjerk / app.java
Created July 9, 2019 06:54
s3 java sample
package org.mycompany.app;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileOutputStream;
import java.io.ByteArrayInputStream;
@Rjerk
Rjerk / LC_CTYPE.txt
Created April 23, 2019 05:48 — forked from ibrahimlawal/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@Rjerk
Rjerk / ip-route
Created March 11, 2019 07:14
ip route
ip route delete default via 192.168.2.1 dev ens5f0
ip route add default via 192.168.2.15 dev ens5f0