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
diff --git a/contrib/golang/common/dso/dso.cc b/contrib/golang/common/dso/dso.cc | |
index ee8b0abda4..8cfb641c91 100644 | |
--- a/contrib/golang/common/dso/dso.cc | |
+++ b/contrib/golang/common/dso/dso.cc | |
@@ -93,9 +93,9 @@ GoUint64 HttpFilterDsoImpl::envoyGoFilterOnHttpData(httpRequest* p0, GoUint64 p1 | |
return envoy_go_filter_on_http_data_(p0, p1, p2, p3); | |
} | |
-void HttpFilterDsoImpl::envoyGoFilterOnHttpLog(httpRequest* p0, int p1) { | |
+void HttpFilterDsoImpl::envoyGoFilterOnHttpLog(httpRequest* p0, int p1, GoUint64 p2, GoUint64 p3) { |
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
type: application/x-stuff | |
filename: This is ***fun*** | |
type: application/x-stuff | |
filename: a |
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
export * from "@solo-io/proxy-runtime/proxy"; // this exports the required functions for the proxy to interact with us. | |
import { | |
RootContext, Context, registerRootContext, log, | |
LogLevelValues, FilterHeadersStatusValues, | |
FilterTrailersStatusValues, GrpcStatusValues, | |
send_local_response | |
} from "@solo-io/proxy-runtime"; | |
class FaultInjection extends RootContext { |
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
use log::*; | |
use rand::Rng; | |
use serde::{Deserialize, Serialize}; | |
use proxy_wasm::traits::*; | |
use proxy_wasm::types::*; | |
#[no_mangle] | |
pub fn _start() { | |
proxy_wasm::set_log_level(LogLevel::Info); | |
proxy_wasm::set_root_context(|_| -> Box<dyn RootContext> { |
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
./kafka-run-class.sh kafka.tools.MirrorMaker \ | |
--consumer.config ../config/source.consumer.configure \ | |
--producer.config ../config/target.producer.configure \ | |
--num.streams 4 \ | |
--new.consumer \ | |
--whitelist=xxx |
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
-- drop all table in a database | |
select string_agg('drop table "' || tablename || '" cascade', ';') from pg_tables where schemaname = 'public'; | |
-- copy the ouput and execute it | |
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 bash | |
# luarocks install $1 scm-0 doesn't work, but you could run this instead: | |
wget https://luarocks.org/$1-scm-0.rockspec && sudo luarocks build $1-scm-0.rockspec |
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 ruby | |
# encoding: UTF-8 | |
require 'set' | |
# usage: $SCRIPT <dir_of_git_extras> | |
Dir.chdir ARGV[0] | |
puts <<EOS | |
The git-extras $version ($release-name) is released now! | |
Here's a list of all the changes made in this release; the full changelog can be found in [History.md](https://github.com/tj/git-extras/blob/master/History.md): |
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
------------------------------------------------------------------------------- | |
--- Testing Murmur2A (MurmurHash2A for x86, 32-bit) | |
[[[ Sanity Tests ]]] | |
Verification value 0x7FBD4396 : Passed! | |
Running sanity check 1..........PASS | |
Running sanity check 2..........PASS | |
[[[ Speed Tests ]]] |
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 | |
# coding: utf-8 | |
""" | |
Run this quick-and-dirty script to list dependencies used in git-extras/bin. | |
With -t option, print result with markdown table syntax. | |
With -v option, grep usage to filter out false positive result. | |
""" | |
from collections import defaultdict | |
import os | |
import re |
NewerOlder