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
/* | |
* Copyright (c) 2018-2019, Arm Limited and affiliates. | |
* SPDX-License-Identifier: Apache-2.0 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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 python3 | |
# SPDX-License-Identifier: MIT | |
"""A helper script for opening profiler traces in speedscope.""" | |
import contextlib | |
import socket | |
import webbrowser | |
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer | |
DIRECTORY = ".profiles/" |
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
const webhookURL = "https://discord.com/api/webhooks/[...]"; | |
const groupName = "my-group"; | |
export default { | |
async email(message, env, ctx) { | |
let convert = new Response(message.raw); | |
let text = await convert.text(); | |
const boundary = message.headers.get("Content-Type"). | |
split("boundary=")[1].replaceAll(/"/g, ""); |
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
# syntax = btidor/syntax | |
FROM ubuntu:xenial | |
LABEL org.opencontainers.image.source=https://gist.github.com/btidor/7433029146cf0b8b043d6389682748fa | |
COPY *.list /etc/apt/sources.list.d/ | |
COPY *.gpg /etc/apt/keyrings/ | |
ADD --apt dnsutils linux-headers-generic software-properties-common wget | |
RUN add-apt-repository -y ppa:openafs/stable |