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
// clang++ -std=c++17 -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR \ | |
// -DNO_CONCEPTS -O0 -gsplit-dwarf -Wall -Werror -Wno-unused-variable | |
// -Wno-unused-function -Wno-unused-lambda-capture -std=c++17 -U_FORTIFY_SOURCE | |
// -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr -std=gnu++17 \ | |
// main.cc -o main | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
#include <cstring> |
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
#include <iostream> | |
#include <sstream> | |
#include <seastar/core/app-template.hh> | |
#include <seastar/core/sharded.hh> | |
#include "kvstore.smf.fb.h" | |
namespace po = boost::program_options; | |
int main(int args, char **argv) | |
{ |
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
const std::string prefix(ZLOG_ENTRY_KEY_PREFIX); | |
std::string start_after; | |
while (true) { | |
std::set<std::string> keys; | |
ret = ioctx_->omap_get_keys(oid, start_after, 1, &keys); | |
if (ret < 0) { | |
return ret; | |
} |
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
Cycle in include-mapping: | |
"auth/cephx/CephxKeyServer.h" -> | |
"auth/cephx/CephxKeyServer.h" | |
/home/nwatkins/src/include-what-you-use/iwyu_include_picker.cc:843: Assertion failed: Cycle in include-mapping | |
Cycle in include-mapping: | |
<boost/preprocessor/iteration/detail/iter/reverse1.hpp> -> | |
<boost/preprocessor/iteration/detail/iter/forward1.hpp> -> | |
<boost/mpl/aux_/numeric_op.hpp> -> | |
<boost/mpl/aux_/numeric_op.hpp> | |
/home/nwatkins/src/include-what-you-use/iwyu_include_picker.cc:843: Assertion failed: Cycle in include-mapping |
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
nwatkins@location-sampler:~/ucsc-transit$ cat sample.py | |
import time | |
import datetime | |
import requests | |
from google.cloud import bigquery | |
bigquery_client = bigquery.Client() | |
dataset = bigquery_client.dataset('locations') | |
table = dataset.table('samples') | |
table.reload() | |
while True: |
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 sys | |
import time | |
import uuid | |
from google.cloud import bigquery | |
TABLE = "locations.samples" | |
QUERY = "SELECT {} FROM {} LIMIT {}" | |
# runtime params | |
limit = int(sys.argv[1]) |
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
FROM ubuntu:xenial | |
RUN apt-get update && apt-get install -y git | |
RUN git clone https://github.com/noahdesu/zlog.git /src | |
RUN cd /src && ./install-deps.sh | |
RUN cd /src && \ | |
git submodule update --init --recursive && \ | |
cmake . && \ | |
make -j4 && \ |
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
#!/usr/bin/env python | |
import sys | |
import time | |
import requests | |
def _get_forks(url): | |
req = requests.get(url) | |
json = req.json() | |
next_url = req.links.get('next', None) | |
if next_url: next_url = next_url['url'] |
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 | |
set -e | |
# settings | |
ceph_version=jewel | |
# context | |
host=`hostname` | |
shorthost=`hostname --short` |
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
// | |
// gcc -Wall -DGASNET_PAR -I/usr/include/ibv-conduit -pthread -o gasnet_test gasnet_test.c -lgasnet-ibv-par -libverbs | |
// | |
#include <gasnet.h> | |
#include <stdio.h> | |
#define GASNET_SAFE(fncall) do { \ | |
int _retval; \ | |
if ((_retval = fncall) != GASNET_OK) { \ | |
fprintf(stderr, "ERROR calling: %s\n" \ |
NewerOlder