Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
🏠
Working from home

Y.Yamamoto tuki0918

🏠
Working from home
View GitHub Profile
@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
@tuki0918
tuki0918 / share.md
Last active April 23, 2016 09:35
Docker tips

ε€–ιƒ¨γƒγƒƒγƒˆγƒ―γƒΌγ‚―γ‹γ‚‰γ‚’γ‚―γ‚»γ‚Ή

use: https://ngrok.com/

> $ ngrok http 192.168.99.100:8080

ngrok by @inconshreveable                                                                                                                                               (Ctrl+C to quit)

Tunnel Status online