Skip to content

Instantly share code, notes, and snippets.

@Ruchi12377
Ruchi12377 / git-commit.sh
Last active February 17, 2026 04:01
gemini-cliを使ってGit差分から日本語コミットメッセージを自動生成するBashスクリプト。
#!/bin/bash
# Git Commit Automation Script
# gemini-cliを使用してコミットメッセージを自動生成します
set -e
# 色の定義
RED='\033[0;31m'
GREEN='\033[0;32m'
import psycopg2
import os
# DB connection information (Supabase local environment)
conn = psycopg2.connect(
dbname="postgres",
user="postgres",
password="postgres",
host="127.0.0.1",
port="54322"
@Ruchi12377
Ruchi12377 / Samba.md
Last active March 9, 2025 12:01
Samba.md

Raspberry Pi Samba サーバー設定ガイド

システム更新

まずはシステムを最新の状態に更新します:

sudo apt update
sudo apt -y upgrade
sudo apt dist-upgrade -y
// Reference: https://github.com/ghost1face/base62
// but original source was C# so I converted it to TypeScript
// Reference: https://github.com/shanehughes3/uuid62
const characters =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
function toBase62(value: string): string {
const arr = new TextEncoder().encode(value);
@Ruchi12377
Ruchi12377 / functions.cs
Last active May 1, 2024 02:37
Functions.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Assertions;
namespace Ruchi.Ex
{
public static class Functions
@Ruchi12377
Ruchi12377 / JsonNode.cs
Created January 22, 2021 04:14 — forked from asus4/JsonNode.cs
Simple json accessibility for Unity.
/**
Copyright (c) 2017 Koki Ibukuro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: