Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@boenrobot
boenrobot / EchoClient.php
Created January 18, 2015 14:55
EchoService
<?php
ini_set('memory_limit', -1);
//sleep(20);
$protocol = isset($argv[3]) ? $argv[3] : 'tcp';
$conn = stream_socket_client(
"{$protocol}://[{$argv[1]}]:{$argv[2]}/",
$errno,
$errstr,
10,
STREAM_CLIENT_CONNECT,
@boenrobot
boenrobot / packer.log
Created September 21, 2014 02:26
Packer logs
2014/09/21 05:21:05 Packer Version: 0.7.1
2014/09/21 05:21:05 Packer Target OS/Arch: windows amd64
2014/09/21 05:21:05 Built with Go Version: go1.3.1
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: amazon-chroot = D:\Software\Development\Packer-0.7.1\packer-builder-amazon-chroot.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: amazon-ebs = D:\Software\Development\Packer-0.7.1\packer-builder-amazon-ebs.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: amazon-instance = D:\Software\Development\Packer-0.7.1\packer-builder-amazon-instance.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: digitalocean = D:\Software\Development\Packer-0.7.1\packer-builder-digitalocean.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: docker = D:\Software\Development\Packer-0.7.1\packer-builder-docker.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: googlecompute = D:\Software\Development\Packer-0.7.1\packer-builder-googlecompute.exe
2014/09/21 05:21:05 [DEBUG] Discoverd plugin: null = D:\Software\Development\Packer-0.7.1\packer-b
@boenrobot
boenrobot / wireshark
Last active December 21, 2015 16:09
Wireshark SSL flow, with my IP redacted.
Hello packet (only packet with data sent TO the server)
0000 16 03 01 00 63 01 00 00 5f 03 01 52 19 6b d9 6a ....c..._..R.k.j
0010 41 2c 04 fb 7b 1d fb 34 05 d0 12 d4 4d 36 18 7c A,..{..4....M6.|
0020 83 98 86 24 e5 4d 9e 32 08 3b 0a 00 00 16 00 3a ...$.M.2.;.....:
0030 00 89 00 1b 00 34 00 9b 00 46 00 18 00 1a 00 19 .....4...F......
0040 00 17 00 ff 01 00 00 20 00 00 00 13 00 11 00 00 ....... ........
0050 0e XX XX XX XX XX XX XX XX XX XX XX XX XX XX 00 .XXX.XX.XXX.XXX.
0060 23 00 00 00 0f 00 01 01 #.......
Handshake failure packet (only packet with data in it sent BY the server)
@boenrobot
boenrobot / docblox.xsd
Created September 6, 2011 14:01
First attempt at an XML Schema for docblox's configuration file
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="docblox">
<xsd:annotation>
<xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Root element of docblox's configuration.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:all>
<xsd:element name="title">
<xsd:annotation>