Skip to content

Instantly share code, notes, and snippets.

/*
* 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
*
#!/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/"
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, "");
# 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