Skip to content

Instantly share code, notes, and snippets.

View michaelcinquin's full-sized avatar

michaelcinquin

View GitHub Profile
#!/usr/bin/env ruby
# coding: utf-8
class Scan_binary
def readBigBinaryFile(file)
# source =NSFileHandle.fileHandleForReadingAtPath(file)
source=File.open(file,'r')
buffer_size=4096
{
"": null,
"rootfs": {
"@id": "Downloads/pydio-core-6.4.1/conf",
"file": [
{
"@label": ".htaccess",
"@mtime": "2016-04-11 14:37:34 +0200",
"@path": "/.htaccess",
"@size": "13"
<?xml version="1.0" encoding="UTF-8"?>
<rootfs id="Downloads/pydio-core-6.4.1/conf">
<file label=".htaccess" mtime="2016-04-11 14:37:34 +0200" path="/.htaccess" size="13"/>
<file label="bootstrap_conf.php" mtime="2016-04-11 14:37:34 +0200" path="/bootstrap_conf.php" size="2225"/>
<file label="bootstrap_context.php" mtime="2016-04-11 14:37:34 +0200" path="/bootstrap_context.php" size="6310"/>
<file label="bootstrap_repositories.php" mtime="2016-04-11 14:37:34 +0200" path="/bootstrap_repositories.php" size="6985"/>
<file label="extensions.conf.php" mtime="2016-04-11 14:37:34 +0200" path="/extensions.conf.php" size="3576"/>
<file label="index.html" mtime="2016-04-11 14:37:34 +0200" path="/index.html" size="0"/>
<file label="mime.types" mtime="2016-04-11 14:37:34 +0200" path="/mime.types" size="12993"/>
<file label="RELEASE_NOTE" mtime="2016-04-11 14:37:36 +0200" path="/RELEASE_NOTE" size="119966"/>
#!/usr/bin/env ruby
# encoding: utf-8
#
require 'rubygems'
require 'rexml/document'
require 'nokogiri'
require 'cobravsmongoose'
require 'json'