| ファイルシステム | データ源 | ファイルを読むとき返ってくる値 | ファイルに書くとき起きること |
|---|---|---|---|
ext4 |
バイナリデータ |
バイナリデータの適当な場所からデータを拾ってきて返す |
バイナリデータの適当な場所にデータを書く、ジャーナルを書く、場合によっては領域確保のため管理領域に変更を加える |
sshfs |
SSH でログインできるリモートユーザ |
ssh 経由でデータを読んだとき読まれる値 |
ssh 経由でデータを書き込む |
This file contains hidden or 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
| extern crate env_logger; | |
| extern crate fbxcel; | |
| use std::fs::File; | |
| use std::io::BufReader; | |
| use std::path::Path; | |
| #[test] | |
| fn test_binary_parser() { |
This file contains hidden or 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
| # Desktop. | |
| # | |
| # Basic settings (common) | |
| # | |
| # See https://wiki.gentoo.org/wiki/Kernel/Configuration . | |
| # Modules. | |
| ## config FIRMWARE_IN_KERNEL | |
| ## bool "Include in-kernel firmware blobs in kernel binary" | |
| FIRMWARE_IN_KERNEL=y | |
| ## menuconfig MODULES |
This file contains hidden or 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
| au BufRead,BufNewFile known_hosts,ssh_known_hosts set filetype=ssh_known_hosts |
This file contains hidden or 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
| //! IRI types. | |
| // This implementation is based on `str`, `String`, `std::str` and `std::path` | |
| // on rust-1.19.0 . | |
| // See: | |
| // | |
| // * https://github.com/rust-lang/rust/blob/1.19.0/src/libcore/str/mod.rs | |
| // * https://github.com/rust-lang/rust/blob/1.19.0/src/libcollections/string.rs | |
| // * https://github.com/rust-lang/rust/blob/1.19.0/src/libstd/path.rs | |
| use std::borrow::{Borrow, ToOwned, Cow}; |
This file contains hidden or 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
| version: "2.1" | |
| services: | |
| nginx-proxy: | |
| restart: always | |
| # nginx:latest uses debian. | |
| #image: nginx:latest | |
| # alpine version uses newer openssl and supports ALPN (i.e. it supports http/2 better) (2017-01-19). | |
| image: nginx:alpine | |
| ports: |
雑なメモ。 そのうちフォーマットしてブログにまとめる予定。
内容は 2017-10-14 およびそれ以前の情報に基く。
過去のこのファイルの内容にはいくらかのミスや古くなった内容などがあるため、内容を更新しつつブログに書き直した。 Rust での never type とセミコロン、型推論のルール変遷 - 何とは言わない天然水飲みたさ を参照されたい。
This file contains hidden or 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
| $ rustc +nightly --version | |
| rustc 1.24.0-nightly (edbd7d232 2017-12-20) | |
| $ diff ~/.cargo/bin/{rustfmt,rustdoc} | |
| $ rustup run nightly rust-gdb rustfmt | |
| GNU gdb (Gentoo 8.0.1 vanilla) 8.0.1 | |
| Copyright (C) 2017 Free Software Foundation, Inc. | |
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
| This is free software: you are free to change and redistribute it. | |
| There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
| and "show warranty" for details. |
This file contains hidden or 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
| //! Lazily loadable file type and related stuff. | |
| // This code is dual licensed under MIT/Apache-2. | |
| // lazy-init = "^0.2" | |
| extern crate lazy_init; | |
| use std::borrow::Borrow; | |
| use std::cmp; | |
| use std::fmt; |