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
source 'https://rubygems.org' | |
gem 'net-http' | |
gem 'base64' | |
gem 'addressable' | |
gem 'resolv', git: 'https://github.com/hanazuki/ruby-resolv', branch: 'svcb-dns' |
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
def sliced_buffer(start, ends) | |
buf = IO::Buffer.for("thisisteststring") | |
buf.slice(start, ends-start).get_string | |
end | |
loop do | |
10.times do |i| | |
sliced_buffer(i, 11) | |
end | |
end |
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 ruby:2.7 | |
WORKDIR /app | |
COPY Gemfile Gemfile.lock /app/ | |
RUN bundle install | |
COPY . . | |
CMD bundle exec ruby script.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
FROM ubuntu:22.04 | |
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y git build-essential pkg-config cmake | |
WORKDIR /root | |
RUN git clone --depth 1 --recursive https://github.com/nibanks/msh3 | |
RUN mkdir msh3/build | |
WORKDIR /root/msh3/build | |
RUN cmake -G 'Unix Makefiles' -DMSH3_TOOL=on .. | |
RUN cmake --build . | |
RUN cmake --install . | |
CMD /usr/local/lib/msh3app www.google.com |
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:22.04 | |
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y git build-essential pkg-config autoconf cmake libtool | |
WORKDIR /root | |
RUN git clone -b v0.1.0 --single-branch --recursive https://github.com/nibanks/msh3 | |
RUN mkdir msh3/build | |
WORKDIR /root/msh3/build | |
RUN cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo .. | |
RUN cmake --build . | |
RUN cmake --install . |
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/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c | |
index 28f5c1b..3e76bed 100644 | |
--- a/ext/openssl/ossl_cipher.c | |
+++ b/ext/openssl/ossl_cipher.c | |
@@ -8,6 +8,7 @@ | |
* (See the file 'LICENCE'.) | |
*/ | |
#include "ossl.h" | |
+#include <ruby/ractor.h> | |
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
# This software is released under the MIT License. | |
# Copyright 2021 Yusuke Nakamura | |
# Copyright 2021 Nao Yonashiro | |
# https://opensource.org/licenses/MIT | |
require "bundler/inline" | |
require "socket" | |
gemfile do | |
source "https://rubygems.org" |
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
# This software is released under the MIT License. | |
# https://opensource.org/licenses/MIT | |
require 'bundler/inline' | |
gemfile do | |
source "https://rubygems.org" | |
gem "bindata" | |
end |
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
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
# Activate the gem you are reporting the issue against. |
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/actioncable/test/subscription_adapter/redis_test.rb b/actioncable/test/subscription_adapter/redis_test.rb | |
index ac2d8ef724..ca91a19567 100644 | |
--- a/actioncable/test/subscription_adapter/redis_test.rb | |
+++ b/actioncable/test/subscription_adapter/redis_test.rb | |
@@ -25,7 +25,8 @@ class RedisAdapterTest::AlternateConfiguration < RedisAdapterTest | |
def cable_config | |
alt_cable_config = super.dup | |
alt_cable_config.delete(:url) | |
- alt_cable_config.merge(host: "127.0.0.1", port: 6379, db: 12) | |
+ #alt_cable_config.merge(host: "127.0.0.1", port: 6379, db: 12) |
NewerOlder