Skip to content

Instantly share code, notes, and snippets.

View ogawa0071's full-sized avatar

Futa Ogawa ogawa0071

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
</head>
<body style="display: flex; height: 100vh">
<div
style="
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.tailwindcss.com"></script>
<!-- https://github.com/esm-dev/esm.sh/releases/tag/v135 -->
<script type="module" src="https://esm.sh/run" defer></script>
<script type="text/babel">
# From: https://github.com/selkies-project/docker-nvidia-glx-desktop/blob/main/xgl.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: xgl
spec:
replicas: 1
selector:
matchLabels:
@ogawa0071
ogawa0071 / deploy.sh
Last active July 15, 2024 22:08
WordPress and MySQL with Fly.io (ALWAYS FREE) - Bitnami Version
fly apps create ogawa0071-mysql-bitnami
fly deploy --config mysql.toml
# fly apps destroy ogawa0071-mysql-bitnami -y
fly apps create ogawa0071-wordpress-bitnami
fly deploy --config wordpress.toml
# fly apps destroy ogawa0071-wordpress-bitnami -y
@ogawa0071
ogawa0071 / deploy.sh
Last active July 15, 2024 20:03
WordPress and MySQL with Fly.io (ALWAYS FREE)
fly apps create ogawa0071-mysql
fly deploy --config mysql.toml
# fly apps destroy ogawa0071-mysql -y
fly apps create ogawa0071-wordpress
fly deploy --config wordpress.toml
# fly apps destroy ogawa0071-wordpress -y
@ogawa0071
ogawa0071 / compose.yaml
Created May 3, 2022 06:55
Docker Compose - WordPress with PlanetScale
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
@ogawa0071
ogawa0071 / getOAuth2Client.ts
Created January 10, 2021 16:33
Google APIs Node.js oAuth2Client
import * as fs from "fs";
import * as readline from "readline";
import { google } from "googleapis";
const SCOPES = [
"https://www.googleapis.com/auth/youtube",
];
const TOKEN_PATH = "token.json";
@ogawa0071
ogawa0071 / index.ts
Last active March 11, 2021 22:16
List Games.
import * as admin from "firebase-admin";
admin.initializeApp({
projectId: "",
});
const db = admin.firestore();
(async () => {
const dataArray = (
const colorText = {
"#00b050": "green",
"#00b0f0": "aqua",
"#ff0000": "red",
"#cc0099": "purple",
"#996633": "olive",
"#ffff00": "yellow",
"#bfbfbf": "gray",
"#808080": "white",
"#203764": "navy",
import * as fs from "fs";
import csvParse from "csv-parse";
const textArray = [
"green",
"aqua",
"red",
"purple",
"olive",
"yellow",