#Kuroko ##Kuroko プロトコル仕様
ファイルのダウンロード (ノードA,B,C,D) Aを配布ノードとする
A: Bluetoothアドバタイズで自分のIPとポート番号をアドバタイズする
B,C,D: アドバタイズを受信したノードはAに対して提供するファイルのリスト要求を送る
A: ノードAは現在自分の持っているファイルの情報をまとめてB,C,Dに送信する
--- /Users/gucchan/xhyve/hvdos/hvdos.c 2017-06-20 16:25:16.000000000 +0900 | |
+++ hvdos.c 2017-06-20 17:44:12.000000000 +0900 | |
@@ -5,7 +5,6 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
-#include <unistd.h> | |
#include <Hypervisor/hv.h> | |
#include <Hypervisor/hv_vmx.h> | |
#include "vmcs.h" |
#-*- coding:utf-8 -*- | |
require "socket" | |
def telnet_proc(cmd, isrc, idst) | |
begin | |
fmt = "#{Time.new}, #{isrc}, #{idst}, #{cmd.chomp!}" | |
`echo #{fmt} >> ~/Desktop/telnet_out.txt` | |
`echo '#{cmd}' | hexdump -C >> ~/Desktop/telnet_out.txt` | |
return "CONNECTION SUCCESS" | |
rescue |
{“t”=>TYPE, | |
“s” => {“nid”=> NODE_ID, “i”=> IP, “p”=> PORT}, // Source Node | |
“d” => {“nid”=> NODE_ID, “i”=> IP, “p”=> PORT}, // Destination Node | |
“payload”=> PAYLOAD } |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEBUG 1 | |
#define ETHER_MTU 1500 | |
#define LOOPBACK_MTU 1536 | |
#define ETHER_ADDR_LEN 6 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import nfc | |
import time | |
import random | |
import pprint | |
#import requests | |
import binascii | |
servcode = 0x110B | |
suica = 0x090f |
OBJS = \ | |
bio.o\ | |
..snip.. | |
ne2k/ne2k_drv.o\ | |
ne2k/ne2k_util.o\ | |
QEMUOPTS= -hdb fs.img xv6.img -smp $(CPUS) -net nic,model=ne2k_pci,macaddr=12:34:56:78:90:ab -net user |
javascript:(function() { | |
if(window.location.href == "www.amazon.co.jp") { | |
var information = {}; | |
Array.prototype.filter.call(document.getElementsByClassName("bucket"),function(x){return x.nodeName=="TD"})[0].innerText.split("\n").forEach(function(e){var regexp_res=null;if((regexp_res=e.match(/出版社\:(.+)|発売日:\s+(.+)|ISBN\-10\:\s+(\d+)/))){switch(e[0]){case"出":information["publisher"]=regexp_res[1];break;case"I":information["ISBN"]=regexp_res[3];break;case"発":information["year"]=regexp_res[2];break}}}); | |
var d = { | |
title : document.getElementById("productTitle").innerHTML, | |
author : Array.prototype.map.call(document.getElementsByClassName("author"),function(x){if(x.className=="author notFaded"){return x.innerText}else if(x.className=="author"){return x.childNodes[1].innerText+x.childNodes[3].innerText.replace(/\s+/g,"")}}).join(""), | |
publisher: information["publisher"], | |
year : information["year"].split("/")[0], | |
isbn : information["isbn"], |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEBUG 1 | |
#define ETHER_MTU 1500 | |
#define LOOPBACK_MTU 1536 | |
#define ETHER_ADDR_LEN 6 | |
typedef unsigned short ushort; |
#include "clkctl.h" | |
#define NTASK 10 | |
#define TASK_UNUSED 0 | |
#define TASK_USED 1 | |
struct clkctl_block { | |
uint period; | |
uint state; | |
void (*task)(void); | |
struct clkctl_block *next; |