Code Monkey home page Code Monkey logo

dn42-wallpaper's Introduction

DN42 Wallpaper

20180813

It looks like a pig! Totally unintended I swear.

The red dot represents my AS on DN42, AS4242421926. Peer with me here!

Why?

  • I'm bored.
  • I need a new wallpaper.
  • I want to make my desktop geekier with some Data Visualization (tm).
  • I have a full BGP feed of DN42.

And then, I discovered the amazing BGP tool known as ExaBGP, and everything came together.

How?

Assuming you have a machine running ExaBGP and Redis, use the following configuration to fill the Redis database with all routes coming from neighbors:

process dn42wp {
        run /where/is/exabgp-process.py;
        encoder json;
}

neighbor x.x.x.x {
        # Your peer configuration here

        api {
                processes [ dn42wp ];
                receive {
                        parsed;
                        update;
                }
        }
}

Then, run generate-json.py to generate a JSON containing all peerings. Save it as data.json and serve it in the same directory of the page.

But there is already https://nixnodes.net/dn42/graph!

It's not particularly suitable as a wallpaper, and I don't get to play with the cool toys myself.

By the way, have you heard of the IKEA effect?

Disclaimer

Hacked together in a couple of hours, with all sorts of terrible code and quirks. My scripts do not inject any route, but if you believe in Illuminati, filter all routes on your router.

Acknowledgments

  • ExaBGP, for hours of fun playing with routing information programmatically.
  • Edmundo Santos, for his awesome CSS background that I kanged here shamelessly.

dn42-wallpaper's People

Contributors

zhaofengli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.