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\" \ | |
}, \ |
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 |
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 |
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 |
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 } |
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 |
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
<html> | |
<head> | |
<title>Clickjacking Test</title> | |
</head> | |
<body> | |
<p>If you can see the website below, it's vulnerable to clickjacking.</p> | |
<iframe src="https://artsy.net/" width="500" height="500"></iframe> | |
</body> | |
</html> |
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 |
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
CarrierWave.configure do |config| | |
... | |
end | |
Mongoid::Document::ClassMethods.send(:include, DelayedImageProcessing) | |
module CarrierWave | |
# http://sleeplesscoding.blogspot.com/2011/09/recreate-single-version-of.html | |
# Note: is_processing_delayed should be set before calling recreate_version! if the version depends on 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
function( d ) { | |
// Create a copy of this date object | |
var target = new Date(d.valueOf()); | |
// ISO week date weeks start on monday | |
// so correct the day number | |
var dayNr = (d.getDay() + 6) % 7; | |
// Set the target to the thursday of this week so the |
NewerOlder