Let's say you want to host domains first.com and second.com.
Create folders for their files:
| extension String { | |
| var lastPathComponent: String { | |
| get { | |
| return (self as NSString).lastPathComponent | |
| } | |
| } | |
| var pathExtension: String { | |
大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする
FeliCa自体の仕様については,Sony公式のドキュメントを参考に
| code="console.log('code='+JSON.stringify(code)+';eval(code)')";eval(code) |
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install [email protected] | |
| brew unlink [email protected] | |
| brew link postgresql |
2020/5/31追記:
自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。
このドキュメントを完成させるために、今後以下のような更新を予定しています。
2021/1/22追記:
| // simplevm.c: demonstrates Hypervisor.Framework usage in Apple Silicon | |
| // Based on the work by @zhuowei | |
| // @imbushuo - Nov 2020 | |
| // To build: | |
| // Prepare the entitlement with BOTH com.apple.security.hypervisor and com.apple.vm.networking WHEN SIP IS OFF | |
| // Prepare the entitlement com.apple.security.hypervisor and NO com.apple.vm.networking WHEN SIP IS ON | |
| // ^ Per @never_released, tested on 11.0.1, idk why | |
| // clang -o simplevm -O2 -framework Hypervisor -mmacosx-version-min=11.0 simplevm.c | |
| // codesign --entitlements simplevm.entitlements --force -s - simplevm |
| #!/bin/bash | |
| # From https://gist.github.com/ryancdotorg/84275935f0b82578d8c222e2e915fc78 | |
| # built binaries at https://ryanc-musl-bins.s3.amazonaws.com/SHA256SUMS.html | |
| set -eo pipefail | |
| set -x | |
| export BUILD_SCRIPT_DATE="$(date -r "$0" -Iseconds)" | |
| PV_VERSION=1.8.14 |
| const { base64url } = await import('https://cdn.skypack.dev/rfc4648'); | |
| /** | |
| * @param {JsonWebKey} key | |
| */ | |
| async function generateThumbprint(key) { | |
| // https://datatracker.ietf.org/doc/html/rfc7638 | |
| const { e, kty, n } = key; | |
| const json = JSON.stringify({ e, kty, n }); | |
| const encoder = new TextEncoder(); | |
| const digest = await crypto.subtle.digest('SHA-256', encoder.encode(json)); |