Skip to content

Instantly share code, notes, and snippets.

View jimkring's full-sized avatar
💭
CI/CD

Jim Kring jimkring

💭
CI/CD
View GitHub Profile
@jimkring
jimkring / image.py
Last active May 2, 2024 00:16
fastui raw html component example
import io
import base64
from typing import Union
from PIL import Image # requires `pillow` package
from fastui.components import Iframe
def iframe_from_html_raw(
raw_html: str,
@wwerner
wwerner / Dockerfile
Last active December 22, 2023 10:48
Enable heroku ps:exec in docker containers
FROM openjdk:8-jdk-alpine
VOLUME /tmp
# see https://devcenter.heroku.com/articles/exec#enabling-docker-support
RUN apk add --no-cache curl bash openssh python
ADD src/main/docker/heroku-exec.sh /app/.profile.d/heroku-exec.sh
RUN chmod a+x /app/.profile.d/heroku-exec.sh
ADD src/main/docker/sh-wrapper.sh /bin/sh-wrapper.sh
RUN chmod a+x /bin/sh-wrapper.sh