Skip to content

Instantly share code, notes, and snippets.

View KEINOS's full-sized avatar

KEINOS KEINOS

View GitHub Profile
@KEINOS
KEINOS / README.md
Last active June 25, 2024 02:36
Links to Windows 11 automated install (unattend.xml with official ISO)

Windows 11 キッティングの際の自動化に関するリンク

Reference links to Windows 11 automated install (unattend.xml with official ISO)

大きな流れとしては、"unattend.xml" を作成し、公式の Windows 11 ISO から作成したブータブル USB の中に設置する。

@KEINOS
KEINOS / README.md
Last active June 23, 2024 04:34
Simple docker-compose.yml example to scale up containers

Scaling Up Docker Containers and Load Balancing

Simple example to scaling up Docker containers (spawning multiple containers) and load balancing them using Nginx and Traefik.

Scaling up

To scale myapp service up to 3 containers, use --scale.

docker compose up --scale myapp=3 --detach
@KEINOS
KEINOS / README.md
Last active January 18, 2024 23:33
References for OKdo Nano C100 Developer Kit (a NVIDIA Jetson Nano Developer Kit B01 - The Jetson Nano Computing Module Compatible Board)
@KEINOS
KEINOS / README.md
Last active March 15, 2024 00:16
docker-compose.yml files for home lab
@KEINOS
KEINOS / README.md
Last active November 16, 2023 04:36

Running Ollama on Intel Mac (MBP Early 2015)

This is a memorandom of running Ollama on Intel MacBook Pro.

$ neofetch --stdout
keinos@KEINOS-no-MacBookPro.local 
-----------------------------
OS: macOS 12.7.1 21G920 x86_64 
Host: MacBookPro12,1 
@KEINOS
KEINOS / README.md
Last active December 13, 2023 00:25
[golang] "io.reader" read by characters

How to read by characters using io.Reader in Go

The below golang code will print the input rune by rune.

package main

import (
	"bufio"
	"fmt"
@KEINOS
KEINOS / README.md
Last active May 15, 2024 01:20
[macOS] Terminal app crashes right-away on start even in safe-mode

Question

I have a MacBookPro with Monterey (OSX 12.6.9) installed. When I start the terminal("Terminal.app" application), the application crashes right away. It even crashes in safe-mode boot of the OS. What can I do or check to solve this problem?

Answer

If Terminal.app is crashing immediately upon launch, it can be a frustrating issue to deal with.

@KEINOS
KEINOS / README.md
Created July 22, 2023 03:19
[INFO][JA] Spec info of PRITOM TronPad M10 (Android Tablet)

This is my memorandum to play-around with the Chinese Android tablet.


タブレット情報

  • メーカー名: PRITOM
  • ブランド名: TronPad
  • モデル名: M10
  • 型番: BTC1422020211227
@KEINOS
KEINOS / differential.md
Last active July 12, 2023 04:45
【今北産業】微分とは【TL; DR】

微分とは

  1. 微分とは、ある瞬間の「変化の速さ」を計算する方法。
  2. 速度や位置といった情報が、時間や他の変数に対してどのように変化しているかを表す方法。
  3. 微分を使うことで、ある瞬間の変化量を基に、次の瞬間の変化を計算(予測)することができる。

微分は、恐れずに一言で言うと「傾きの 1 種」です。

通常、2 つの点を比べて、その変化量を「傾き」と言います。その 2 点を限りなく近づけることで「ある瞬間の傾き」を出すことを「微分」と言います。

@KEINOS
KEINOS / example.go
Created July 3, 2023 10:37
[Golang] Example of float64 addition that doesn't sum up as expected. [IEEE 754]
package main
import "fmt"
// View it online: https://go.dev/play/p/GUuSXWcLUZ-
func main() {
// IEEE 754
a := 0.1
b := 0.2