Skip to content

Instantly share code, notes, and snippets.

View datsuns's full-sized avatar
💭
drinkin(

Satoshi Bando datsuns

💭
drinkin(
View GitHub Profile
@datsuns
datsuns / gemini.go
Last active March 28, 2024 08:33
gemini api by golang
package main
import (
"context"
"fmt"
"log"
"os"
"time"
"github.com/google/generative-ai-go/genai"
@datsuns
datsuns / Dockerfile
Created August 9, 2024 09:08
V2H docker
FROM ubuntu:20.04
ARG input=/tmp
ARG user=user
ARG git_email="[email protected]"
ARG git_name="Your Name"
ENV HOME=/home/${user}
ENV WORK=${HOME}/ai_sdk_work
ENV YOCTO_WORK=${WORK}/src_setup/yocto
# workarround for gql issue
# add "httpx" on dependencies, add [tool.uv] section
[project]
name = "hello"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = ["dagger-io", "httpx>=0.27,<1"]
[build-system]
# 素の Ubuntu 22.04
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive \
TZ=Asia/Tokyo \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# 基本ツール & 日本語フォント