| 更新: | 2022-03-18 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2022.1 |
| URL: | http://voluntas.github.io/ |
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
| // 文字列から ArrayBuffer への変換 | |
| function string_to_buffer(src) { | |
| return (new Uint16Array([].map.call(src, function(c) { | |
| return c.charCodeAt(0) | |
| }))).buffer; | |
| } | |
| // ArrayBuffer から文字列への変換 |
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
| #!/usr/local/bin/fontforge | |
| # Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc | |
| fonts = FontsInFile($1) | |
| n = SizeOf(fonts) | |
| i = 0 | |
| while (i < n) | |
| Open($1 + "(" + fonts[i] + ")", 1) | |
| index = ToString(i + 1) |
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
| #!/bin/bash | |
| # btrfs-undelete | |
| # Copyright (C) 2013 Jörg Walter <[email protected]> | |
| # This program is free software; you can redistribute it and/or modify it under | |
| # the term of the GNU General Public License as published by the Free Software | |
| # Foundation; either version 2 of the License, or any later version. | |
| if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
| echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
| echo |
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
| diff --git a/libavfilter/aarch64/Makefile b/libavfilter/aarch64/Makefile | |
| new file mode 100644 | |
| index 0000000..5d6f6d3 | |
| --- /dev/null | |
| +++ b/libavfilter/aarch64/Makefile | |
| @@ -0,0 +1,3 @@ | |
| +OBJS-$(CONFIG_YADIF_FILTER) += aarch64/vf_yadif_init.o | |
| + | |
| +NEON-OBJS-$(CONFIG_YADIF_FILTER) += aarch64/vf_yadif.o | |
| diff --git a/libavfilter/aarch64/vf_yadif_init.c b/libavfilter/aarch64/vf_yadif_init.c |
- ゲストで
sdelete -z→シャットダウンして→Optimize-VHD -Mode Prezeroed - ホストで
Mount-VHD→sdelete -z→Dismount-VHD→Optimize-VHD -Mode Prezeroed
これらは時間と書き込み量を浪費しているだけだから今すぐ止めて
Mount-VHD <VHD> [-NoDriveLetter] -ReadOnly -Passthru | Optimize-VHD [-Mode {Quick|Full}] -Passthru | Dismount-VHD
を使うべき。
読み取り専用でマウントしている時に Optimize-VHD をすればディスクイメージ内の NTFS から得られる空き領域情報を利用するから。
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
| #! /usr/bin/env python3 | |
| #coding:utf-8 | |
| #require bitstring | |
| import bitstring | |
| import math | |
| import sys | |
| filename = sys.argv[1] | |
| packet_length = 188 |
この投稿では、iOSのファイルシステムについて理解し、データを永続化(iCloud含む)する方法を紹介する。尚、サンプルコードは動かない可能性もあるので参考程度にして下さい。
アプリがファイルシステムとやり取り出来る場所は、ほぼアプリのサンドボックス内のディレクトリに制限されている。新しいアプリがインストールされる際、インストーラーはサンドボックス内に複数のコンテナを作成し、図1に示す構成をとる。各コンテナには役割があり、Bundle Containerはアプリのバンドルを保持し、Data Containerはアプリとユーザ両方のデータを保持する。Data Containerは用途毎に、さらに複数のディレクトリに分けられる。アプリは、例えばiCloud Containerのように、実行時に追加のコンテナへのアクセスをリクエストすることもある。
図1. An iOS app operating within its own sandbox
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
| Run this command to install MG-CLI: | |
| sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
| to start miner (4 cores for BCN) use this command: | |
| minergate-cli -user <[email protected]> -bcn 4 | |
| Feel free to send some of your earnings to me: | |
| BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |
