Skip to content

Instantly share code, notes, and snippets.

@cawka
cawka / macOS_virtualbox.sh
Last active October 12, 2016 22:39 — forked from kevin-smets/macOS_virtualbox.sh
Convert macOS installer for use in VirtualBox
#!/bin/bash
# This will require about 30GB of space, still in experimental phase right now
hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
@cawka
cawka / NDNLPv2.md
Last active August 29, 2015 14:23 — forked from yoursunny/NDNLPv2.md

NDNLPv2

NDNLPv2 is a link protocol for Named Data Networking.

Goals

NDNLPv2 provides the following features:

  • fragmentation and reassembly: fragment a network layer packet to fit in link MTU
  • reliability: reduce packet loss