Skip to content

Instantly share code, notes, and snippets.

View emaxerrno's full-sized avatar
💭
I may be slow to respond.

Alexander Gallego emaxerrno

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/env python2
import argparse
import subprocess
import logging
import distutils.util
from shutil import copyfile
fmt_string = 'certs %(levelname)s:%(asctime)s line:%(lineno)d] %(message)s'
logging.basicConfig(format=fmt_string)
smf_gen(
CPP
TARGET_NAME wal_gened
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIRECTORY}/filesystem
SOURCES wal.fbs
)
add_library (rpfs STATIC
${PROJECT_SOURCE_DIR}/src/filesystem/wal_writer_node.cc
${PROJECT_SOURCE_DIR}/src/filesystem/wal_writer.cc
@emaxerrno
emaxerrno / demo_service.fbs
Last active October 14, 2017 01:13
demo.cc
namespace smf_gen.demo;
table Request {
name: string;
}
table Response {
name: string;
}
rpc_service SmfStorage {
Get(Request):Response;
@emaxerrno
emaxerrno / benchmark-commands.txt
Created October 4, 2017 00:50 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@emaxerrno
emaxerrno / mesos_isolators.md
Created July 28, 2017 12:37 — forked from chetan/mesos_isolators.md
Description of available Apache Mesos isolators
@emaxerrno
emaxerrno / main.yml
Created July 16, 2017 23:37
fedora.poop
---
-
set_fact:
key_shortcuts:
-
binding: "'<Super>9'"
command: "'xdotool search --desktop 0 --class Emacs windowactivate'"
gnome_key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0"
name: "'emacs'"
@emaxerrno
emaxerrno / main.yml
Created July 16, 2017 14:58
pmu_ansible.yml
---
- name: Adding Intel CPU PMU tools
git:
repo='https://github.com/andikleen/pmu-tools'
accept_hostkey=yes
clone=yes
dest="{{user_bin_dir}}/pmu_tools"
update=yes
recursive=yes
// Copyright (c) 2016 Alexander Gallego. All rights reserved.
//
#include "chain_replication/chain_replication_service.h"
#include <utility>
#include "chain_replication/chain_replication_utils.h"
#include "filesystem/wal_requests.h"
#include "hashing/hashing_utils.h"
#include "seastar_io/priority_manager.h"
// Generated by the smf_gen.
// Any local changes WILL BE LOST.
// source: /home/agallego/workspace/smf/src/flatbuffers/demo_service
#pragma once
#ifndef SMF_DEMO_SERVICE_INCLUDED
#define SMF_DEMO_SERVICE_INCLUDED
// hack: to use seastar's string type
#include <core/sstring.hh>
@emaxerrno
emaxerrno / re2testbasic.cpp
Created November 28, 2016 05:44 — forked from chezou/re2testbasic.cpp
Sample code of re2 basic regexp functions.
#include <iostream>
#include <string>
#include <re2/re2.h>
#include <vector>
using namespace std;
void test_fullmatch(){
string s,t;
string str("あぶらかたぶら");