View bench_sync.py
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 | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# The OpenSearch Contributors require contributions made to | |
# this file be licensed under the Apache-2.0 license or a | |
# compatible open source license. | |
import asyncio | |
from threading import Thread |
View opensearch-awscurl.sh
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
awscurl "$ENDPOINT/vectors" \ | |
--request PUT \ | |
--service $SERVICE \ | |
--region $AWS_REGION \ | |
--header "Content-Type: application/json; charset=utf-8" \ | |
--data "\ | |
{ \ | |
\"settings\": { \ | |
\"index.knn\": \"true\" \ | |
}, \ |
View process-logstash-output.rb
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
require 'active_support' | |
if ARGV.length < 1 | |
puts "usage: process [file]" | |
exit | |
end | |
class Request | |
attr_reader :conn | |
attr_reader :verb |
View process-logstash-output.rb
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
require 'active_support' | |
if ARGV.length < 1 | |
puts "usage: process [file]" | |
exit | |
end | |
class Request | |
attr_reader :conn | |
attr_reader :verb |
View flaky-test-finder.rb
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
require 'json' | |
require 'net/http' | |
require 'optparse' | |
require 'set' | |
require 'uri' | |
require 'octokit' | |
options = {} | |
OptionParser.new do |opt| | |
opt.on('-s', '--start BUILD_NUMBER', 'Require start') { |o| options[:start] = o } |
View maintainers.txt
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/project -q maintainers missing | |
https://github.com/opensearch-project/dashboards-notebooks | |
https://github.com/opensearch-project/ux |
View gist:fc2a864713d664f33f6a6bdeac3f518f
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
I am attesting that this GitHub handle dblock is linked to the Tezos account tz1ivFsNqtfLTSDh7uzqJ6pArNRG13pkJt4a for tzprofiles | |
sig:edsigtshxfYo5JbUmy38XPrRPwJY98j3nd79WEkVdrhBLVPxMAGSsyR4ai41QTnbygucGMENiRw7axCrFFKk6Cy41zcydx1o9JE |
View gist:5f97961819d4c2162abdcd5e4712f2ff
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
/* | |
Create Element: | |
$Rainb.el('div',{'attribute':"value",style:{"color":"red"}},[ (childnodes) ]) | |
becomes: <div attribute="value" style="color: red;"></div> | |
Append Element | |
$Rainb.add(element,elementToAppend) | |
Get Element By Id | |
$Rainb.id(id); | |
Create TextNode | |
$Rainb.tn(text); |
View test.rb
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
require 'kramdown' | |
text = <<-MARKDOWN | |
# Example | |
The quick brown fox jumps over the lazy dog. | |
```ruby | |
# one |
View restart-bots.sh
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 | |
for D in `find . -type d -name "*bot"` | |
do | |
NAME=`basename $D` | |
echo Restarting $NAME ... | |
dokku ps:restart $NAME | |
done |
NewerOlder