Skip to content

Instantly share code, notes, and snippets.

View ygkn's full-sized avatar
A believing heart is your magic.

YAGITA Yugo ygkn

A believing heart is your magic.
View GitHub Profile
@qnighy
qnighy / README.md
Last active August 28, 2022 19:37
マイグレーションしないRDBMS

マイグレーションしないRDBMSが欲しい!

課題

PostgreSQLなどの既存のRDBMSはスキーマを持つ。スキーマがあることは良いことだが、このスキーマのライフサイクルはアプリケーションコードのライフサイクルと乖離しがちで、結果として以下のような問題が発生する。

  • 特に自動化をしない場合はマイグレーションをデプロイとは別に行う必要が発生する。これにより、
    • シンプルに作業が面倒。
    • 承認フローが追加で必要になる。または、デプロイはレビューの管理下に置かれているのにマイグレーション側が適切に管理されないなどのミスマッチが起きる。
  • マイグレーション忘れ、マイグレーションのリバート忘れのリスクがある。
@odashi
odashi / should_mute_on_twitter.txt
Last active December 26, 2022 13:02
should_mute.txt
あまり大きな声で言えないのですが
あまり知られてないのですが
ありえない
あんまり言いたくないけど
いい加減にしてほしい
いい歳してお恥ずかしいのですが
悪用厳禁なのですが
安心してください
言いたくない過去を言うと
言わせてください
@sheepla
sheepla / LinuxユーザーのためのWindowsカスタマイズガイド.md
Last active October 17, 2025 20:21
LinuxユーザーのためのWindowsカスタマイズガイド

LinuxユーザーのためのWindowsのおすすめツール・アプリケーション+個人的なカスタマイズガイド

これはなに?

普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。

ターミナル

@Comamoca
Comamoca / onimai.md
Last active November 27, 2023 01:04
flowchart TB
A[あり] --> B[なし] --> B
B --> A
A --> C[ついて] --> E[] --> C
C --> D[ない] --> F[あれ]
F --> G[どっち] --> G
G --> I[trans] --> I
I --> I
I --> I
@Hayao0819
Hayao0819 / destroy.sh
Last active June 22, 2023 17:35
シェル芸ロシアンルーレット
#!/bin/sh
# 参考
# https://qiita.com/_-_-_-_-_/items/214d537aae2c1488692c
get_random(){
od -v -An --width=1 -tu1 -N1 < /dev/urandom | \
awk "{ print \$1 % 10 }"
}
@sheepla
sheepla / かーごめかごめ.md
Last active August 3, 2025 04:46
かーごめかごめ.md

cargocargo

Cargoの中のtoml

いついつ出会う

nightly の版に

ビルドとテストが滑った

@mizchi
mizchi / singlefile-frontend.md
Created November 23, 2023 10:27
How to run a minimal front-end stack in Single-File for prototyping.

Original(japanese) https://zenn.dev/mizchi/articles/standalone-html-frontend

Mostly translated by deepl


How to run a minimal front-end stack in Single-File for prototyping.

Note: Do not use in production, tailwind is running in CDN mode and esm.sh builds scripts dynamically, so performance is not good.

@sheepla
sheepla / オフチョベットしたテフをマブガットしてリットにする.fsx
Last active February 17, 2024 13:49
オフチョベットしたテフをマブガットしてリットにする.fsx
let テフ = "テフ"
let アブシィト = "アブシィト"
let ミタッド = "ミタッド"
let オフチョベット = fun 食べ物 -> $"オフチョベットした{食べ物}"
let マブガット = fun 食べ物 -> $"{食べ物}をマブガットして"
let 発酵 = fun 食べ物 -> $"発酵した{食べ物}"
let 混ぜる = fun あれ これ -> $"{あれ}に{これ}を加えて混ぜたもの"
let 焼く = fun 器具 食べ物 -> $"あとは{食べ物}を{器具}で焼くだけよ"
@Hayao0819
Hayao0819 / jirou.ts
Created December 20, 2023 08:06
ラーメン二郎の型定義
export type MenuAmount = "マシ" | "多め" | "マシマシ" | "かなり多め" | "普通" | "少なめ" | "無し";
export type IsGarlicAdded =
| "全てマシ"
| "全て普通"
| "全て少なめ"
| {
ニンニク?: MenuAmount;
ヤサイ?: MenuAmount;
アブラ?: MenuAmount;
@buyoh
buyoh / 2022pronamaxmas.cpp
Created December 21, 2023 13:25
#クリスマスプロ生ちゃん もみの木をdispmanxだけで描画する https://twitter.com/shonen9th/status/1737826399497666618
// ## Build
// g++ --std=c++17 tree2.cpp -o tree2 -lbcm_host
//
// ## Remarks
// DRM VC4 V3D driver needs to be disabled.
// Open `/boot/config.txt` and commented out `dtoverlay=vc4-fkms-v3d`.
#include "bcm_host.h"
#include <cassert>