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 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 September 27, 2023 03:24
[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
@KEINOS
KEINOS / README.md
Created June 25, 2023 01:49
[Golang] Generics example function for string and slice of strings as an argument.

Generic Go Function: Handling Strictly Different Argument Types

Simple example of a Go function that uses generics and takes a string or slice of strings as arguments.

foo("Hello, world")
foo([]string{"Hello, world", "こんにちは、世界"})
@KEINOS
KEINOS / setup-alpine-ja.sh
Last active June 12, 2023 07:11
[Alpine Linux] デスクトップ構築 日本語環境化スクリプト(xfce4, ibus, anthy)
#!/bin/sh
USER_NAME_LOGIN="keinos"
USER_NAME_FULL="KEINOS"
USER_SSH_KEY_URL="https://github.com/KEINOS.keys"
# ---------------------------------------------------------------
# Set repository mirror to the closest
# ---------------------------------------------------------------
# Detect and add fastest mirror and enable the community repo