Skip to content

Instantly share code, notes, and snippets.

View dmgolubovsky's full-sized avatar

Dmitry Golubovsky dmgolubovsky

View GitHub Profile
/*
* This file is part of the Harvey operating system. It is subject to the
* license terms of the GNU GPL v2 in LICENSE.gpl found in the top-level
* directory of this distribution and at http://www.gnu.org/licenses/gpl-2.0.txt
*
* No part of Harvey operating system, including this file, may be copied,
* modified, propagated, or distributed except according to the terms
* contained in the LICENSE.gpl file.
*/
0.0.0: brg 06.00.00 8086/29c0 0
0.1.0: vid 03.00.00 1b36/0100 10 0:f4000000 67108864 1:f8000000 67108864 2:fc090000 8192 3:0000c241 32
0.10.0: virtio-disk 01.00.00 1af4/1001 11 0:0000c1c1 64 1:fc098000 4096
0.2.0: net 02.00.00 10ec/8139 11 0:0000c001 256 1:fc092000 256
0.3.0: virtio-net 02.00.00 1af4/1000 11 0:0000c261 32 1:fc093000 4096
0.31.0: brg 06.01.00 8086/2918 0
0.31.2: disk 01.06.01 8086/2922 10 4:0000c2e1 32 5:fc099000 4096
0.31.3: smb 0c.05.00 8086/2930 10 4:0000b101 64
0.4.0: virtio-9p 00.02.00 1af4/1009 10 0:0000c101 64 1:fc094000 4096
0.5.0: virtio-console 07.80.00 1af4/1003 10 0:0000c281 32 1:fc095000 4096
/usr/bin/kvm -s -cpu host -smp 4 -m 2048 -enable-kvm -serial stdio --machine q35,accel=kvm -net nic,model=rtl8139 -net user,hostfwd=tcp::5555-:1522 -net dump,file=/tmp/vm0.pcap -vga qxl -display sdl -no-frame -append "service=terminal nobootprompt=tcp fs=10.0.2.2 auth=127.0.0.1 nvram=/boot/nvram nvrlen=512 nvroff=0 user=harvey mouseport=ps2 vgasize=1920x1080x24 monitor=vesa" -fsdev local,path=/tmp,id=fstmp,security_model=none -device virtio-9p-pci,fsdev=fstmp,mount_tag=hosttmp -drive file=/home/golubovsky/.local/share/gnome-boxes/images/fedora-unknown,if=virtio -device virtio-serial-pci -device virtio-scsi-pci -drive file=/home/golubovsky/Downloads/ubuntu-16.04-desktop-amd64.iso,id=xyz,if=none -device virtio-blk-pci,drive=xyz -device virtio-rng-pci -net nic,model=virtio -balloon virtio -redir tcp:9999::9 -redir tcp:17010::17010 -redir tcp:17013::17013 -kernel /home/golubovsky/src/harvey/sys/src/9/amd64/harvey.32bit
Harvey
mmuinit: vmstart 0xfffffffff0000000 vmunused 0xfffffffff05e8000 vmunmapped 0xfffffffff0
/usr/bin/kvm -s -cpu host -smp 4 -m 2048 -enable-kvm -serial stdio --machine pc,accel=kvm -net nic,model=rtl8139 -net user,hostfwd=tcp::5555-:1522 -net dump,file=/tmp/vm0.pcap -vga qxl -display sdl -no-frame -append "service=terminal nobootprompt=tcp fs=10.0.2.2 auth=127.0.0.1 nvram=/boot/nvram nvrlen=512 nvroff=0 user=harvey mouseport=ps2 vgasize=1920x1080x24 monitor=vesa" -fsdev local,path=/tmp,id=fstmp,security_model=none -device virtio-9p-pci,fsdev=fstmp,mount_tag=hosttmp -drive file=/home/golubovsky/.local/share/gnome-boxes/images/fedora-unknown,if=virtio -device virtio-serial-pci -device virtio-scsi-pci -drive file=/home/golubovsky/Downloads/ubuntu-16.04-desktop-amd64.iso,id=xyz,if=none -device virtio-blk-pci,drive=xyz -device virtio-rng-pci -net nic,model=virtio -balloon virtio -redir tcp:9999::9 -redir tcp:17010::17010 -redir tcp:17013::17013 -kernel /home/golubovsky/src/harvey/sys/src/9/amd64/harvey.32bit
Harvey
mmuinit: vmstart 0xfffffffff0000000 vmunused 0xfffffffff05e8000 vmunmapped 0xfffffffff08
/usr/bin/kvm -s -cpu host -smp 4 -m 2048 -enable-kvm -serial stdio --machine pc,accel=kvm -net nic,model=rtl8139 -net user,hostfwd=tcp::5555-:1522 -net dump,file=/tmp/vm0.pcap -vga qxl -display sdl -no-frame -append "service=terminal nobootprompt=tcp fs=10.0.2.2 auth=127.0.0.1 nvram=/boot/nvram nvrlen=512 nvroff=0 user=harvey mouseport=ps2 vgasize=1920x1080x24 monitor=vesa" -fsdev local,path=/tmp,id=fstmp,security_model=none -device virtio-9p-pci,fsdev=fstmp,mount_tag=hosttmp -drive file=/home/golubovsky/.local/share/gnome-boxes/images/fedora-unknown,if=virtio -device virtio-serial-pci -device virtio-scsi-pci -drive file=/home/golubovsky/Downloads/ubuntu-16.04-desktop-amd64.iso,id=xyz,if=none -device virtio-blk-pci,drive=xyz -device virtio-rng-pci -net nic,model=virtio -balloon virtio -redir tcp:9999::9 -redir tcp:17010::17010 -redir tcp:17013::17013 -kernel /home/golubovsky/src/harvey/sys/src/9/amd64/harvey.32bit
Harvey
mmuinit: vmstart 0xfffffffff0000000 vmunused 0xfffffffff05e8000 vmunmapped 0xfffffffff08
#! /bin/sh
# Run Harvey in terminal mode
trap : 2
export HARVEY=$HOME/src/harvey
export KVM=/usr/bin/kvm
$HARVEY/util/ufs -root=$HARVEY &
@dmgolubovsky
dmgolubovsky / wkhs.cabal
Created November 1, 2015 21:16
A minimal example of attaching a DOM event handler written in Haskell using Webkit
-- Initial wkhs.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: wkhs
version: 0.1.0.0
-- synopsis:
-- description:
license: PublicDomain
license-file: LICENSE
author: Dmitry Golubovsky
@dmgolubovsky
dmgolubovsky / make.log
Created September 12, 2015 16:03
litehtml compile log on Ubuntu Vivid
In file included from /home/golubovsky/src/litebrowser-linux/litehtml/src/html.h:12:0,
from /home/golubovsky/src/litebrowser-linux/litehtml/src/background.cpp:1:
/home/golubovsky/src/litebrowser-linux/litehtml/src/types.h:14:23: error: 'shared_ptr' is not a member of 'std'
typedef std::vector< std::shared_ptr<litehtml::element> > elements_vector;
^
/home/golubovsky/src/litebrowser-linux/litehtml/src/types.h:14:23: error: 'shared_ptr' is not a member of 'std'
/home/golubovsky/src/litebrowser-linux/litehtml/src/types.h:14:56: error: template argument 1 is invalid
typedef std::vector< std::shared_ptr<litehtml::element> > elements_vector;
^
/home/golubovsky/src/litebrowser-linux/litehtml/src/types.h:14:56: error: template argument 2 is invalid