Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Last active September 24, 2023 22:55
Show Gist options
  • Save AlexDaniel/5c25e329cf6ac9470a25adc5695801de to your computer and use it in GitHub Desktop.
Save AlexDaniel/5c25e329cf6ac9470a25adc5695801de to your computer and use it in GitHub Desktop.

Steps to reproduce:

  1. Edit gist-script.p6 and insert your github token
  2. docker build -t gist-script .
  3. docker run gist-script raku gist-script.p6
  4. You'll see “here” in the output
  5. And then it'll be stuck indefinitely consuming 100% CPU.
FROM rakudo-star:2023.08
WORKDIR /srv
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install zstd lrzip libssl-dev build-essential
COPY META6.json /srv
RUN zef install --force --/test --deps-only .
COPY . /srv
use Pastebin::Gist;
my $p = Pastebin::Gist.new(
token => 'INSERT YOUR TOKEN HERE',
);
say "here";
my $paste-url1 = $p.paste("<foo>bar</foo>");
say "yep";
dd $paste-url1;
my $paste-url2 = $p.paste(
{
'file1.raku' => { content => "Paste content 1" },
'meow.css' => { content => "Paste content 2" },
},
:desc("Foo Bar"),
:public,
);
dd $paste-url2;
{
"perl" : "6.c",
"name" : "Whateverable",
"version" : "1.0.12",
"description" : "Different IRC bots that operate on a bunch of prebuilt Rakudo versions",
"authors" : [
"Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko@gmail.com>",
"Daniel Green <ddgreen@gmail.com>"
],
"license" : "AGPL-3.0-or-later",
"provides" : {
"Whateverable" : "lib/Whateverable.pm6",
"Whateverable::Bisection" : "lib/Whateverable/Bisection.pm6",
"Whateverable::Bits" : "lib/Whateverable/Bits.pm6",
"Whateverable::Builds" : "lib/Whateverable/Builds.pm6",
"Whateverable::Config" : "lib/Whateverable/Config.pm6",
"Whateverable::Configurable" : "lib/Whateverable/Configurable.pm6",
"Whateverable::Discordable" : "lib/Whateverable/Discordable.pm6",
"Whateverable::FootgunDB" : "lib/Whateverable/FootgunDB.pm6",
"Whateverable::Heartbeat" : "lib/Whateverable/Heartbeat.pm6",
"Whateverable::Messages" : "lib/Whateverable/Messages.pm6",
"Whateverable::Output" : "lib/Whateverable/Output.pm6",
"Whateverable::Processing" : "lib/Whateverable/Processing.pm6",
"Whateverable::Running" : "lib/Whateverable/Running.pm6",
"Whateverable::Uniprops" : "lib/Whateverable/Uniprops.pm6",
"Whateverable::Userlist" : "lib/Whateverable/Userlist.pm6"
},
"depends" : [
"App::GPTrixie",
"Config::INI",
"Cro",
"Cro::HTTP::Client",
"Digest",
"Digest::HMAC",
"Digest::SHA256::Native",
"File::Directory::Tree",
"File::Temp",
"HTTP::Server::Async",
"HTTP::UserAgent",
"IO::Socket::SSL",
"IRC::Client:ver<4.0.9>:auth<zef:lizmat>",
"IRC::TextColor",
"JSON::Fast",
"Number::Denominate",
"Pastebin::Gist",
"SVG::Plot",
"ake",
"Stats",
"Terminal::ANSIColor",
"Text::Diff::Sift4"
],
"resources" : [ ],
"source-url" : "https://github.com/Raku/whateverable.git"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment