package main
import "fmt"
// Fletcher16 returns the checksum of the data using the Fletcher's
// checksum algorithm.
func Fletcher16(data []byte) uint16 {
GitHub GraphQL API (GitHub API v4) example to retrieve/get comments in Gist.
{
viewer {
gist(name: "78cc23f37e55e848905fc4224483763d") {
comments(last: 100) {
edges {
node {
author {
In this gist we provide 2 JSON files.
- joyo2010.json
joyo2010.json
is a parsed JSON file to facilitate the search for Japanese Jōyō kanji readings.- It is retrieved from github.com/cjkvi/cjkvi-tables which is based on the "List of jōyō kanji" from Wikipedia with some modifications. Such as missing "kyu-jitai" ("旧字体", old kanji) that corresponds to the joyo-kanji.
- Currntly, it only supports 2,136 characters of "常用漢字" (Jōyō kanji) defined by the Japanese Ministry of Education in 2010.
- [old_to_new_kanjis.json](https://gist.githubusercontent.com/KEINOS/fb660943484008b7f5297bb627e0e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Update and upgrade apt packages | |
hosts: rpi | |
user: pi | |
# Become sudoer | |
become: yes | |
tasks: | |
- name: apt update | |
apt: | |
# apt update | |
update_cache: yes |
キーワード | 概要 | 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 接続による操作の自動化ツール(ターミナル操作の自動化みたいなもの) | [Wikipedia][ansible_wiki] | VM、LXC、Docker 含む OS のセットアップ、定型処理など SSH 接続経由でできることであれば何でも自動化できる。利点は、接続先には何もインストールしなくてもいいこと。似たような環境構築系に [Terraform][terraform] がある。両者の違いは Ansibl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |