Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
👋
Hi there!

Y.Yamamoto tuki0918

👋
Hi there!
View GitHub Profile
@tuki0918
tuki0918 / example.md
Created January 27, 2026 04:41
table schema test

id: 12345 version: "0.0.1" generated_at: "2026-01-27T10:00:00+09:00" source: "sample-data" status: "active"

items:

  • id: A001
@tuki0918
tuki0918 / reboot-router.sh
Last active April 25, 2025 11:27
ルータ FGN-R2 / 自動復帰 再起動スクリプト
#!/bin/bash
set -eu
# FGN-R2
# https://www.fg-products.com/downloads/fgn-r2_manual.pdf
# -------------------------------
# Router settings
# -------------------------------

Please respond to the following format based on the commit content.

In English, following the Conventional Commits specification.

<intention> <message>
  • intention: An emoji from the list.
  • message: A brief explanation of the change.
@tuki0918
tuki0918 / main.py
Created May 26, 2024 19:00
gradio x openai
import dotenv
import os
import openai
import gradio as gr
dotenv.load_dotenv()
openai.api_key = os.getenv("OPENAI_API_KEY")
model = "gpt-3.5-turbo"
# model = "gpt-4-turbo"
@tuki0918
tuki0918 / .env
Last active May 14, 2024 04:46
openai chat bot base
OPENAI_API_KEY="dummy"
@tuki0918
tuki0918 / x.md
Created March 2, 2017 08:42
google search

pdf text copy

װ༿ਤ͔

search

https://www.google.co.jp/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=%D7%B0%E0%BC%BF%E0%A8%A4%CD%94&*
@tuki0918
tuki0918 / d
Created July 19, 2016 15:16
test
FROM ruby:2-alpine
MAINTAINER tuki0918 <[email protected]>
RUN apk update
RUN apk add --update gcc make g++ openssh \
git \
&& rm -rf /var/cache/apk/*
ENV dir /root/capistrano
WORKDIR ${dir}
```
sudo update-locale LC_CTYPE=en_US.UTF-8
sudo apt-get install sendmail
php -r "mail('***[email protected]', 'test', date('Y-m-d H:i:s') . ' メール送信テスト');"
'address' => env('MAIL_FROM_ADDRESS', null),
'name' => env('MAIL_FROM_NAME', null)
FROM stilliard/pure-ftpd:hardened
ENV FTPUSER ftpuser
ENV FTPPASS ftppass
RUN printf "${FTPPASS}\n${FTPPASS}\n" | pure-pw useradd $FTPUSER -u ftpuser -d /home/ftpusers/$FTPUSER
RUN pure-pw mkdb