Code Monkey home page Code Monkey logo

Comments (7)

dlangille avatar dlangille commented on July 21, 2024

see also #41

from freshports.

dlangille avatar dlangille commented on July 21, 2024

FYI, I found https://www.freshports.org/backend/newsfeeds.php which already has an RSS feed for ne ports. However, it is not being refreshed. See #58

from freshports.

dlangille avatar dlangille commented on July 21, 2024

On my laptop, I have a working RSS feed for new ports, which works on both head and any branch.

from freshports.

dlangille avatar dlangille commented on July 21, 2024

An issue with a broken ports feed: If you list all broken ports, how do you sort the list? Ideally, it would be against latest commit. I can think of no other way.

from freshports.

dlangille avatar dlangille commented on July 21, 2024

Please have a look at https://dev.freshports.org/backend/newsfeeds.php and see if this does what you need.

If this stuff is OK, I will then add vulnerable ports

from freshports.

debdrup avatar debdrup commented on July 21, 2024

https://dev.freshports.org/backend/news.php?flavor=new works exactly as I hoped it would, this is absolutely perfect!

Using this to keep track of vulnerable ports is also a really neat idea that I hadn't even thought of.

from freshports.

dlangille avatar dlangille commented on July 21, 2024

This gives us the count of vulnerable ports, so it's easily modified to get the list of those ports:

CREATE OR REPLACE FUNCTION Stats_PortCountVulnerable() returns int8 AS $$
        DECLARE
                PortCount       int8;

        BEGIN
                SELECT count(*)
                  INTO PortCount
                  FROM ports            P
                  JOIN ports_vulnerable PV ON PV.current    > 0            AND PV.port_id = P.id
                  JOIN element_pathname EP ON EP.element_id = P.element_id AND EP.pathname like '/ports/head/%'
                  JOIN element          E  ON P.element_id  = E.id         AND E.status = 'A';

                return PortCount;
        END
$$ LANGUAGE 'plpgsql';

from freshports.

Related Issues (20)

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.