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
[host (x86_64)] | |
$ sudo apt install qemu-system-arm | |
$ wget https://github.com/xrmx/bootchart/releases/download/0.14.8/bootchart2-0.14.8.tar.bz2 | |
$ tar xf bootchart2-0.14.8.tar.bz2 | |
$ cd bootchart2-0.14.8 | |
$ make |
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
#define next_task(p) \ | |
list_entry_rcu((p)->tasks.next, struct task_struct, tasks) | |
#define for_each_process(p) \ | |
for (p = &init_task ; (p = next_task(p)) != &init_task ; ) |
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
$ TMP=`tempfile`; echo hoge > $TMP; echo fuga >> $TMP; cat $TMP; rm $TMP |
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
$ sudo apt install gcc-5-aarch64-linux-gnu qemu-user-static |
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
$ curl -O https://buildroot.org/downloads/buildroot-2017.02.9.tar.bz2 | |
$ tar xf buildroot-2017.02.9.tar.bz2 | |
$ cd buildroot-2017.02.9 | |
$ make qemu_aarch64_virt_defconfig | |
$ unset LD_LIBRARY_PATH | |
$ make BR2_JLEVEL=`getconf _NPROCESSORS_ONLN` | |
$ cd .. |
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
# 空イメージファイルの作成 | |
$ truncate -s 1GiB empty.img | |
# イメージファイルの結合 | |
$ cat not_enough.img empty.img > enough.img | |
# 空きループバックデバイスの確認 | |
$ losetup -f | |
/dev/loop0 |
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
$ sudo apt install gcc-5-aarch64-linux-gnu | |
$ sudo apt install kpartx |
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
json.array!(@users) do |user| | |
json.kind t("enums.user.kind.#{user.kind}") | |
end |
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
belongs_to :buyer, class_name: 'User', :foreign_key => 'buyer_id' | |
belongs_to :seller, class_name: 'User', :foreign_key => 'seller_id' |
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
if (HTMLレンダリング前に実行が必要?) | |
→head tag without defer or async | |
else if (HTMLレンダリング後に実行が必要?) | |
if (他のJavaScriptとの依存関係はある?) | |
→body tagの最後 | |
else | |
→head tag with defer | |
else | |
if (他のJavaScriptとの依存関係はある?) | |
→body tagの最後 |
NewerOlder