GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - binast/binast-server: Python server for testing and developing BinAST support in browsers

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
fb_bench
fb_bench
 
 
README.md
README.md
 
 
convertJStoBinAST.bash
convertJStoBinAST.bash
 
 
serveBinAST.py
serveBinAST.py
 
 
server.pem
server.pem
 
 
simple.binjs
simple.binjs
 
 
simple.html
simple.html
 
 
simple.js
simple.js
 
 

Repository files navigation

binast-server

Running server:

./serveBinAST.py [<LOCATION OF RESOURCES TO SERVE>]

To test basics in browser: load https://localhost:8443/simple.html, accept self-signed localhost cert, confirm output is 'Script run status: BINAST'

To test Facebook.com snapshot in browser:

  1. Start server with ./serveBinAST.py ./fb_bench/
  2. Load https://localhost:8443/newsfeed_bench.htm If the browser advertises BinAST support, this should serve a BinAST version of the site.

To convert a directory tree to BinAST, use the ./convertJStoBinAST.bash script. Note that the encoder blows away the original .js files.

To test in commandline:

wget --header="Accept: application/javascript-binast, */*" -S -O - --no-check-certificate https://localhost:8443/simple.js

Expected output:

--2018-05-02 12:48:05--  https://localhost:8443/simple.js
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8443... failed: Connection refused.
Connecting to localhost|127.0.0.1|:8443... connected.
WARNING: cannot verify localhost's certificate, issued by 'CN=localhost,O=Personal,C=US':
  Self-signed certificate encountered.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Server: BaseHTTP/0.3 Python/2.7.10
  Date: Wed, 02 May 2018 19:48:05 GMT
  Content-type: application/javascript-binast
Length: unspecified [application/javascript-binast]
Saving to: 'STDOUT'

<Bunch of binary symbols interspersed with string literals>

2018-05-02 12:48:05 (2.81 MB/s) - written to stdout [56]

About

Python server for testing and developing BinAST support in browsers

Topics

binast

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.