Skip to content

Instantly share code, notes, and snippets.

#platform=x86, AMD64, or Intel EM64T
# XXX salt context
# grains:
# cpuarch: i386 or x86_64
# virtual: physical or kvm
{% if grains['cpuarch'].endswith('86') %}
{% set arch = 'i386' %}
{% else %}
@greghaynes
greghaynes / ca321maketest
Created January 30, 2012 07:17
CS321HW1 Make test
JAVA_COMPILER=javac
JAVA_RUNTIME=java
TEST_DIRECTORY=tests
SRCS=sol1.java
all: build test
build: ${SRCS}
${JAVA_COMPILER} ${SRCS}
Frame 565 (90 bytes on wire, 90 bytes captured)
Ethernet II, Src: Buffalo_ad:69:ce (00:24:a5:ad:69:ce), Dst: Netronix_47:15:4c (00:08:54:47:15:4c)
Internet Protocol, Src: 85.214.66.181 (85.214.66.181), Dst: 10.50.1.104 (10.50.1.104)
User Datagram Protocol, Src Port: ndmp (10000), Dst Port: 59637 (59637)
Data (48 bytes)
0000 a0 00 93 c1 83 ff 00 01 00 10 02 02 05 78 00 00 .............x..
0010 00 00 80 00 00 00 00 03 00 00 00 00 00 00 00 00 ................
0020 00 00 13 88 00 00 00 02 00 00 00 02 10 50 31 96 .............P1.
No. Time Source Destination Protocol Info
1374 23.277189 10.50.1.104 85.214.66.181 UDP Source port: 59637 Destination port: ndmp
Frame 1374 (76 bytes on wire, 76 bytes captured)
Ethernet II, Src: Netronix_47:15:4c (00:08:54:47:15:4c), Dst: Buffalo_ad:69:ce (00:24:a5:ad:69:ce)
Internet Protocol, Src: 10.50.1.104 (10.50.1.104), Dst: 85.214.66.181 (85.214.66.181)
User Datagram Protocol, Src Port: 59637 (59637), Dst Port: ndmp (10000)
Data (34 bytes)
0000 20 10 07 00 00 00 01 0c 00 10 04 10 04 00 a7 13 ...............
#include <iostream>
int main(int argc, char **argv)
{
std::cout << "Hello World!" << std::endl;
return 0;
}
// This software is released under the DBAD (Dont be a duche) license.
// If you improve this code in any way, you must release your modifications publicly.
#include "Map.h"
#include <string>
#include <vector>
#include <iostream>
#define DEPTH 1