Skip to content

Instantly share code, notes, and snippets.

View KEINOS's full-sized avatar

KEINOS KEINOS

View GitHub Profile
@KEINOS
KEINOS / docker-compose.yml
Created December 8, 2022 09:22
[Ansible Semaphore] docker-compose.yml for Ansible over Semaphore
services:
semaphore:
restart: unless-stopped
ports:
- 3000:3000
image: semaphoreui/semaphore:latest
environment:
SEMAPHORE_DB_DIALECT: bolt
SEMAPHORE_ADMIN_PASSWORD: <your admin password>
SEMAPHORE_ADMIN_NAME: <your admin display name>
@KEINOS
KEINOS / playbook.yml
Last active December 8, 2022 10:13
Sample Playbook
- name: Update and upgrade apt packages
hosts: rpi
user: pi
# Become sudoer
become: yes
tasks:
- name: apt update
apt:
# apt update
update_cache: yes
@KEINOS
KEINOS / Playlist.md
Last active November 18, 2022 05:16
KEINOS - Youtube Playlist
@KEINOS
KEINOS / index.md
Last active June 4, 2024 00:26
List of key words to dig in.

GitHub Gist stars

Hot Keywords To Be Checked

キーワード 概要 Wiki 備考
[ABRoot][abroot] OS をイミュータブル OS 化するツール -- ルート・パーティションをカレントとアップデート用で 2 つ用意し [A/B テスト][abtest]方式でパーティションを切り替えるツール。カレントのルート・パーティションは書き込み禁止にし、各種変更は、もう片方のアップデート用に行うことで、アップデートの失敗でもフォールバックできるようにする。Go 言語で実装された単体バイナリで動作する。Vanilla OS などのイミュータブル OS で使われる。[OSTree][ostree] と似たコンセプトだが、OSTree は git などのように変更をコミットする方式であるのに対し、ABRoot はパーティションを切り替える。
[Albius][albius] Linux 系 OS インストール時のバックエンド -- [Vanilla OS][vanillaos] の、OS インストーラーのバックエンドとして Go 言語で書かれたアプリ。現在は汎用化されており、OS のインストールだけでなく、[SquashFS][squashfs] や [OCI][oci](コンテナイメージ)のインストールなどにも対応している。従来のシェルスクリプトによる実行でなく、JSON 形式でインストール・プロセスを記述できるのが特徴。主に CUI ベースのインストーラーとして使われるが、GNOME 用 GUI フロントエンドには、Python ベースの [Vanilla Installer][vanilla-installer] がある。
[Ansible][ansible] SSH 接続による操作の自動化ツール(ターミナル操作の自動化みたいなもの) [Wikip
@KEINOS
KEINOS / ipfs-cluster.service
Last active October 29, 2022 00:51
[IPFS] Simple "systemd" example to run IPFS and IPFS-Cluster as a service.
[Unit]
Description=IPFS-Cluster daemon
After=network.target ipfs
[Service]
User=myuser
WorkingDirectory=/home/myuser/
ExecStart=/usr/local/bin/ipfs-cluster-service daemon --bootstrap /ip4/<IP of your bootstrap>/tcp/9096/p2p/<NodeID>
Restart=on-failure
[Install]
WantedBy=multi-user.target
@KEINOS
KEINOS / README.md
Last active October 27, 2022 23:32
[IPFS] Installing IPFS (Kubo/go-ipfs) on Alpine Linux (not on Docker container)

Follow the steps in this document if you get "No such file or directory" or "not found" error by downloding from the pre-compiled official releses.

Install IPFS (Kubo) on Alpine Linux (NOT on Docker)

This document describes how to install and update IPFS (Kubo, fka go-ipfs) on Alpine Linux and not on Docker container image.

We have found that it is more stable to build from source and update with the gup command.

  • Tested on: Alpine 3.16
@KEINOS
KEINOS / how_to_create_a_cluster_secret.md
Created October 26, 2022 14:07
[IPFS] How to create a cluster secret.

How to create/generate a cluster secret of IPFS cluster

The cluster secret must be exactly 64 characters and contain only hexadecimal characters ([0-9a-f]). (from "cluster_config.go" | ipfs-cluster @ GitHub)

So, we just need to generate a 64 character in hex.

$ od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n'
@KEINOS
KEINOS / docker-compose.yml
Last active October 27, 2022 01:21
[IPFS] Example of Docker compose file for Kubo IPFS. Replace "</absolute/path/...>" to your local path.
version: "3.9"
services:
ipfs:
container_name: ipfs
image: ipfs/kubo:latest
volumes:
# Staging data
- </absolute/path/to/somewhere/>:/export
# IPFS data
- </absolute/path/to/somewhere_else/>:/data/ipfs
@KEINOS
KEINOS / first_thing_to_know_about_recursion.md
Created October 20, 2022 02:52
[Computer Science] The first thing to know about "recursion".
@KEINOS
KEINOS / how_to_append_to_previous_commit.md
Created October 20, 2022 02:44
[Git] How to add changes to the previous commit in 3 steps.
  1. git add . to tell git what you've done.
  2. Recite the following statement.

    My Git, I am sorry for my sins with all my heart. In choosing to do wrong and failing to do good, I have sinned against you whom I should love above all things. I firmly intend, with your help, to do penance, to sin no more, and to avoid whatever leads me to sin. Our Savior Jesus Christ suffered and died for us. In His name. My God have mercy.

  3. Then git commit --amend --no-edit your commitment.