Skip to content

Instantly share code, notes, and snippets.

@aoirint
aoirint / README.md
Created Sep 23, 2022 — forked from ZipFile/README.md
Pixiv OAuth Flow
View README.md

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

View timestamptz_sqlite3.sql
CREATE TABLE posts (
id INTEGER PRIMARY KEY,
content TEXT,
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now', 'utc')),
updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now', 'utc'))
);
CREATE TRIGGER trigger_posts_updated_at AFTER UPDATE ON posts
BEGIN
UPDATE posts SET updated_at = strftime('%Y-%m-%dT%H:%M:%fZ', 'now', 'utc') WHERE rowid == NEW.rowid;
@aoirint
aoirint / Dockerfile
Created Sep 9, 2022
Python General User Dockerfile (Debian)
View Dockerfile
FROM python:3.9
ARG DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV PATH=/home/user/.local/bin:${PATH}
RUN apt-get update && \
apt-get install -y \
gosu && \
apt-get clean && \
View a.txt
$ ffmpeg -h
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx
View a.md

製品版VOICEVOX Core 0.13.0の使い方(Windows x64 CPU・Python向け)

VOICEVOX Coreのリポジトリをクローンして、0.13.0に切り替える。

git clone https://github.com/VOICEVOX/voicevox_core.git
cd voicevox_core
View ReplaceTag.dic
2 N ず) (Voice 10019)
2 N ずN) (Voice 10019)
2 N ずA) (Voice 10020)
2 N ずT) (Voice 10021)
2 N ずS) (Voice 10022)
2 N ずW) (Voice 10023)
2 N め) (Voice 10003)
2 N めN) (Voice 10003)
2 N めA) (Voice 10002)
2 N めT) (Voice 10018)
View dumphttppostreq.py
# fastapi==0.78.0
from fastapi import FastAPI, Request
app = FastAPI()
@app.post('/')
async def index(request: Request):
print(request.headers)
print((await request.body()).decode('utf-8'))
@aoirint
aoirint / mpd.conf
Created Jun 29, 2022
default mpd config
View mpd.conf
# An example configuration file for MPD.
# Read the user manual for documentation: http://www.musicpd.org/doc/user/
# or /usr/share/doc/mpd/html/user.html
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
View keybase.md

Keybase proof

I hereby claim:

  • I am aoirint on github.
  • I am aoirint (https://keybase.io/aoirint) on keybase.
  • I have a public key ASAcDoqkLV_9Va6rZAtvFFjRIu2hYQEmvA6bXHQb3RBKHQo

To claim this, I am signing this object:

View jmapy_example.py
from aoirint_jmapy import JmaApi, Telops
from datetime import datetime
import re
jma = JmaApi()
forecast = jma.forecast(area_id='130000')
forecast_weather_time_defines = forecast[0].timeSeries[0].timeDefines