Posts

  • request_store

    Per-request global storage for Rack.

    Ever needed to use a global variable in Rails? Ugh, that’s the worst. If you need global state, you’ve probably reached for Thread.current. Like this:

    def self.foo
      Thread.current[:foo] ||= 0
    end
    
    def self.foo=(value)
      Thread.current[:foo] = value
    end
    

    Ugh! I hate it. But you gotta do what you gotta do…

    Tags: #ruby

  • react-aria-menubutton

    A fully accessible, easily themeable, React-powered menu button

    A React component (set of components, really) that will help you build accessible menu buttons by providing keyboard interactions and ARIA attributes aligned with the WAI-ARIA Menu Button Design Pattern.

    Please check out the demo.

    Tags: #javascript

  • UniFi-API-browser

    Tool to browse data exposed by Ubiquiti’s UniFi Controller API (demo: https://api-browser-demo.artofwifi.net/)

    This tool is for browsing data that is exposed through Ubiquiti’s UniFi Controller API, written in PHP, JavaScript and the Bootstrap CSS framework.

    It comes bundled with a PHP class for access to the UniFi Controller API, which supports more API endpoints than the UniFi API browser tool does.

    If you plan on creating your own PHP code to leverage the UniFi controller API, it is recommended to use the standalone version of the API client class which can be found here: https://github.com/Art-of-WiFi/UniFi-API-client

    You will find examples and detailed instructions there.

    Please keep the following in mind:

    • the API browser tool doesn’t support all available data collections/API endpoints, see the list below of those that are currently supported
    • currently, versions 4.x.x, 5.x.x, and 6.0.x of the UniFi Controller software are supported (version 6.0.42 has been confirmed to work) as well as UniFi OS-based controllers (version 5.12.59 has been confirmed to work)
    • when accessing UniFi OS-based controllers (e.g. UDM PRO) through this tool, please read the remarks below regarding UniFi OS support
    • there is still work to be done to add/improve functionality and usability of this tool so suggestions/comments are welcome. Please use the GitHub issue list or the Ubiquiti Community forums (https://community.ubnt.com/t5/UniFi-Wireless/UniFi-API-browser-tool-released/m-p/1392651) to share your ideas/questions.
    • please read the Security Notice below before installing this tool!

    Tags: #php • unifi • api-client

  • vue-mdc

    Material web components for Vue.js

    Material Components Web for Vue.js

    This is the adaptation of Material Components web for Vue.js. Keeping them fast, easy to use and, SSR ready.

    The docs will be the demo, until then you can check the test folder and the Material Components web demo

    Tags: #javascript • mdl • vue

  • karafka

    Framework for Apache Kafka based Ruby and Rails applications development.

    Framework used to simplify Apache Kafka based Ruby applications development.

    Karafka allows you to capture everything that happens in your systems in large scale, providing you with a seamless and stable core for consuming and processing this data, without having to focus on things that are not your business domain.

    Karafka not only handles incoming messages but also provides tools for building complex data-flow applications that receive and send messages.

    Tags: #ruby • karafka-framework • kafka-topic

  • laravel-shared-data

    📦 An easy way to share the data from your backend to the JavaScript.

    You can install this package via composer using this command:

    composer require coderello/laravel-shared-data
    

    The package will automatically register itself.

    Tags: #php

  • cli-ui

    Terminal user interface library

    gem install cli-ui
    

    or add the following to your Gemfile:

    gem 'cli-ui'
    

    In your code, simply add a require 'cli/ui'. Most options assume CLI::UI::StdoutRouter.enable has been called.

    Tags: #ruby

  • pg-listen

    📡 PostgreSQL LISTEN & NOTIFY for node.js that finally works.

        📡  Send and subscribe to messages

        ⏳  Continuous connection health checks

        ♻️  Reconnects automatically

        ❗️  Proper error handling

        👌  Type-safe API


    Tags: #typescript • postgresql • nodejs

  • investpy

    Financial Data Extraction from Investing.com with Python

    To get this package working you will need to install it via pip (with a Python 3.6 version or higher) on the terminal by typing:

    $ pip install investpy

    Additionally, if you want to use the latest investpy version instead of the stable one, you can install it from source with the following command:

    $ pip install git+https://github.com/alvarobartt/investpy.git@master

    The master branch ensures the user that the most updated version will always be working and fully operative so as not to wait until the the stable release comes out (which eventually may take some time depending on the number of issues to solve).


    Tags: #python • investing-api • historical-data

  • pwntools-ruby

    pwntools on Ruby!

    Always sad when playing CTF that there’s nothing equivalent to pwntools in Python. While pwntools is awesome, I always love Ruby far more than Python… So this is an attempt to create such library.

    Would try to have consistent naming with original pwntools, and do things in Ruby style.

    Tags: #ruby

subscribe via RSS