Skip to content

Instantly share code, notes, and snippets.

View iagox86's full-sized avatar

Ron Bowes iagox86

View GitHub Profile
{
"nodes": {
"4096": {
"address": "0x1000",
"node": {
"type": "dword",
"address": "0x1000",
"length": "0x04",
"details": {
"value": "0x42424242"
--- a 2014-10-13 20:18:22.602368500 -0700
+++ b 2014-10-13 20:18:31.844897100 -0700
@@ -60,55 +60,22 @@
],
"node": {
- "type": "byte",
+ "type": "dword",
"address": "0x1008",
- "length": "0x01",
#!/usr/bin/ruby
#
# Summary description of library or script.
#
# This doc string should contain an overall description of the module/script
# and can optionally briefly describe exported classes and functions.
#
# ClassFoo: One line summary.
# function_foo: One line summary.
#
Uploading a test binary
BINARY ID: 93
Listing binaries (we should see the one):
Downloading it:
Creating a workspace:
WORKSPACE ID: 87
Listing workspaces:
Setting some variables
Retrieving those variables
Retrieving all variables
** TESTING BINARY CREATION **
++ PASSED: A binary is successfully created
++ PASSED: The binary's object is returned
-- FAILED: The binary's object is a hash (EXPECTED: Hash, RECEIVED: Binary)
++ PASSED: The binary's id value is present and numeric
++ PASSED: The binary's name is right (VALUE: Binary Test)
++ PASSED: The binary's comment is right (VALUE: Test binary)
-- FAILED: The binary's data is correct (EXPECTED: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, RECEIVED: QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=
)
** TESTING BINARY CREATION **
++ PASSED: A binary is successfully created
++ PASSED: The binary's object is returned
-- FAILED: The binary's object is a hash (EXPECTED: Hash, RECEIVED: Binary)
++ PASSED: The binary's id value is present and numeric
++ PASSED: The binary's name is right (VALUE: Binary Test)
++ PASSED: The binary's comment is right (VALUE: Test binary)
-- FAILED: The binary's data is correct (EXPECTED: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, RECEIVED: QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=
)
$LOAD_PATH << File.dirname(__FILE__)
require 'sinatra'
require 'sinatra/activerecord'
require 'json'
require 'pp' # TODO: DEBUG
class Test < Sinatra::Application
require 'httparty'
require 'pp'
params = []
# 200 locks it up completely, needs to be killed w/ 'kill -9'
# 500 fails with "stack overflow"
0.upto(500) do
params << {
:a => [],
require 'httparty'
require 'pp'
params = []
# 200 locks it up completely, needs to be killed w/ 'kill -9'
# 500 fails with "stack overflow"
0.upto(500) do
params << []
end
net = require('net');
moment = require('moment');
function getDate() {
return moment().format("YYYY-MM-DD HH:mm");
}
var port = Number(process.argv[2]);
var server = net.createServer(function(socket) {