Skip to content

Instantly share code, notes, and snippets.

View tryggvil's full-sized avatar

Tryggvi Larusson tryggvil

View GitHub Profile
@tryggvil
tryggvil / gist:58c894565a56f7dacf9c
Created December 17, 2015 14:32 — forked from zchee/gist:d75e50c2284864bc1388
WIP: host-side virtio-9p mock device
Index: usr.sbin/bhyve/Makefile
===================================================================
--- usr.sbin/bhyve/Makefile (revision 238860)
+++ usr.sbin/bhyve/Makefile (working copy)
@@ -8,6 +8,7 @@
SRCS+= instruction_emul.c mevent.c
SRCS+= pci_emul.c pci_hostbridge.c pci_passthru.c pci_virtio_block.c
SRCS+= pci_virtio_net.c pci_uart.c pit_8254.c post.c rtc.c uart.c xmsr.c
+SRCS+= pci_virtio_9p.c

Keybase proof

I hereby claim:

  • I am tryggvil on github.
  • I am tryggvil (https://keybase.io/tryggvil) on keybase.
  • I have a public key ASAWKip9YgH9ourXvarCjulXYZOw8ZGR4RK50Z35r9hYtQo

To claim this, I am signing this object:

>> WebSockets.onopen spiceconn.js:66
id 0; type 1 spiceconn.js:67
Sending header: spiceconn.js:128
52 45 44 51 02 00 00 00 02 00 00 00 16 00 00 00 | REDQ utils.js:77
00 00 00 00 01 00 01 00 00 00 00 00 00 00 12 00 |  utils.js:77
00 00 09 00 00 00 | utils.js:77
>> WebSockets.onmessage wire.js:120
id 0; type 1 wire.js:121
1: processing message of size 16; state is start spiceconn.js:159
52 45 44 51 02 00 00 00 01 00 00 00 ba 00 00 00 | REDQº utils.js:77
>> WebSockets.onopen spiceconn.js:66
id 0; type 1 spiceconn.js:67
Sending header: spiceconn.js:128
52 45 44 51 02 00 00 00 02 00 00 00 16 00 00 00 | REDQ utils.js:77
00 00 00 00 01 00 01 00 00 00 00 00 00 00 12 00 |  utils.js:77
00 00 09 00 00 00 | utils.js:77
>> WebSockets.onmessage wire.js:120
id 0; type 1 wire.js:121
1: processing message of size 16; state is start spiceconn.js:159
>> WebSockets.onmessage wire.js:120
> ./websockify.py 5959 192.168.3.130:5901
WebSocket server settings:
- Listen on :5959
- Flash security policy server
- No SSL/TLS support (no cert file)
- proxying from :5959 to 192.168.3.130:5901
1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
1: 127.0.0.1: Version hybi-13, base64: 'False'
1: connecting to: 192.168.3.130:5901
//client.js
function handleFileSelect(evt) {
evt.stopPropagation();
evt.preventDefault();
var files = evt.dataTransfer.files; // FileList object.
Session.set('uploadedFiles', files);
// Loop through the FileList