Skip to content

Instantly share code, notes, and snippets.

View ThinaticSystem's full-sized avatar
🈂️
以外の感情がない

しなちくシステム ThinaticSystem

🈂️
以外の感情がない
View GitHub Profile
@ThinaticSystem
ThinaticSystem / tagged-template-bakagel.ts
Last active August 10, 2025 04:07
タグ付きテンプレートばかげる
function ばかげる(
normals: Readonly<TemplateStringsArray>,
...embededs: readonly unknown[]
): string {
/*
* NOTE: テンプレートリテラルによる呼び出しと各パラメーターの対応
* - `normals[0]${embededs[0]}normals[1]`
* - `normals[0]` (embededs => [])
* - `${embededs[0]}` (normals[0] => "", normals[1] => "")
*/
@ThinaticSystem
ThinaticSystem / illegal.conf
Created July 21, 2025 02:28
未定義ホストへのリクエストを切断するNginx設定
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server;
listen [::]:443 default_server;
server_name _;
# Reject SSL handshake on port 443
ssl_reject_handshake on;
@ThinaticSystem
ThinaticSystem / migration.md
Last active July 20, 2025 05:12
ほにクラブDB移行手順 (2025/07/20)
@ThinaticSystem
ThinaticSystem / concurrent-processing.sh
Last active January 7, 2025 16:45
複数コマンドの並行実行 w/ 失敗時の実行中プロセス後片付け (Bash)
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
on_some_job_error() {
kill "$(jobs -pr)"
exit 1
}
@ThinaticSystem
ThinaticSystem / .dockerignore
Last active April 16, 2024 16:05
Monorepo with Devcontainer
// ${localWorkspaceFolder}/frontend/.dockerignore
node_modules
.next
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile",
// "target": "devcontainer"
@ThinaticSystem
ThinaticSystem / Main.kt
Created March 20, 2024 16:53
DynamoDBのバッチ実験
package com.thinaticsystem.mre
import aws.sdk.kotlin.runtime.auth.credentials.ProfileCredentialsProvider
import aws.sdk.kotlin.services.dynamodb.DynamoDbClient
import aws.sdk.kotlin.services.dynamodb.batchExecuteStatement
import aws.sdk.kotlin.services.dynamodb.batchWriteItem
import aws.sdk.kotlin.services.dynamodb.model.AttributeValue
import aws.sdk.kotlin.services.dynamodb.model.BatchStatementRequest
import aws.sdk.kotlin.services.dynamodb.model.WriteRequest
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
@ThinaticSystem
ThinaticSystem / idea.md
Last active July 31, 2023 20:33
Functonal
@Play
@Functonal
fun Player() {
  Song(
    bpm = 132,
    groove = Grooves.Latin1,
  )
}
@ThinaticSystem
ThinaticSystem / dlsite_play_dark.css
Created April 8, 2023 12:06
DLsite Playダークテーマ
:root {
--theme-c: #457;
--accent-c: #4a7bc0;
--fc1: #a7a7a7;
--fc2: #89a;
--fc-black: #383838;
--link-fc: #599;
--card-bg-c: #393942;
--card-bc-hover: #364358;
--border-c: #555;
@ThinaticSystem
ThinaticSystem / tos.mfm
Last active February 10, 2023 23:52
ほにクラブ利用規約
ほにクラブ利用規約(v2.0)
**めんせき**
1. 本サイトは雰囲気で稼働しており、しなちくシステムの技術力の無さや突然の元気の喪失などにより本サービスに登録されたあなたのユーザー情報の全て(投稿したノート・メディア、プロフィール情報等)が**唐突に吹き飛ぶ**リスクが常にあります。
ゆるしてね。
**サービスの提供停止条件**
むかついたら干します。
**これの効き目**