Posts
-
intercom-rails
The easiest way to install Intercom in a Rails app.
The easiest way to install Intercom in a rails app.
For interacting with the Intercom REST API, use the
intercomgem (https://github.com/intercom/intercom-ruby)Requires Ruby 2.0 or higher.
Tags: #ruby
-
react-native-country-picker-modal
🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
- 🎉 GO TO WEB DEMO 🎉
- snack example
Tags: #typescript • country-picker • countries
-
elasticsearch-ingest-opennlp
An Elasticsearch ingest processor to do named entity extraction using Apache OpenNLP
I wrote a opennlp mapping plugin a couple of years ago and people asked me, why I did not update it. The main reason was, that it was a bad architectural choice as mentioned in the openlp plugin README. With the introduction of ingest processors in Elasticsearch 5.0 this problem has been resolved.
This processor is doing named/date/location/’whatever you have a model for’ entity recognition and stores the output in the JSON before it is being stored.
This plugin is also intended to show you, that using gradle as a build system makes it very easy to reuse the testing facilities that elasticsearch already provides. First, you can run regular tests, but by adding a rest test, the plugin will be packaged and unzipped against elasticsearch, allowing you to execute a real end-to-end test, by just adding a java test class.
Tags: #java
-
geared_pagination
Paginate Active Record sets at variable speeds
Most pagination schemes use a fixed page size. Page 1 returns as many elements as page 2. But that’s frequently not the most sensible way to page through a large recordset when you care about serving the initial request as quickly as possible. This is particularly the case when using the pagination scheme in combination with an infinite scrolling UI.
Geared Pagination allows you to define different ratios. By default, we will return 15 elements on page 1, 30 on page 2, 50 on page 3, and 100 from page 4 and forward. This has proven to be a very sensible set of ratios for much of the Basecamp UIs. But you can of course tweak the ratios, use fewer, or even none at all, if a certain page calls for a fixed-rate scheme.
On JSON actions that set a page, we’ll also automatically set Link and X-Total-Count headers for APIs to be able to page through a recordset.
Tags: #ruby
-
ansible-openwisp2
Ansible role that installs and upgrades OpenWISP.
Since August 2018 there’s a new fast and easy way to install OpenWISP 2 for testing purposes leveraging Vagrant, a popular open source tool for building and maintaining portable virtual software development environments.
To use this new way, clone the repository vagrant-openwisp2, it contains the instructions (in the
README.md) and the vagrant configuration to perform the automatic installation.Alternatively, you can read on to learn how to install VirtualBox and run ansible-openwisp2 manually, this is useful if you need to test advanced customisations of OpenWISP.
Tags: #python • openwisp • ansible-role
-
unzipper
Small class to extract + compress .zip, .gz, .rar archives via browser.
The Unzipper extracts .zip and .rar archives or .gz/tar.gz files on webservers. It detects .zip/.rar/.tar.gz/.gz archives and let you choose which one to extract (if there are multiple archives available). As of version 0.1.0 it also supports creating archives.
It’s handy if you do not have shell access. E.g. if you want to upload a lot of files (php framework or image collection) as archive - because it is much faster than uploading each file by itself.
Tags: #php
-
tenancy
Automatic multi-tenancy for Laravel. No code changes needed.
You won’t have to change a thing in your application’s code.
- :heavy_check_mark: No model traits to change database connection
- :heavy_check_mark: No replacing of Laravel classes (
Cache,Storage, …) with tenancy-aware classes - :heavy_check_mark: Built-in tenant identification based on hostname (including second level domains)
Tags: #php • laravel • tenancy
-
SerializationDumper
A tool to dump Java serialization streams in a more human readable form.
A tool to dump and rebuild Java serialization streams and Java RMI packet contents in a more human readable form.
The tool does not deserialize the stream (i.e. objects in the stream are not instantiated), so it does not require access to the classes that were used in the stream*.
This tool was developed to support research into Java deserialization vulnerabilities after spending many hours manually decoding raw serialization streams to debug code!
Download v1.11 built and ready to run from here: https://github.com/NickstaDB/SerializationDumper/releases/download/1.13/SerializationDumper-v1.13.jar
* See the limitations section below for more details.
Update 19/12/2018: SerializationDumper now supports rebuilding serialization streams so you can dump a Java serialization stream to a text file, modify the hex or string values, then convert the text file back into a binary serialization stream. See the section below on Rebuilding Serialization Streams for an example of this.
Tags: #java
-
eslint-plugin-react-native
React Native plugin for ESLint
Install ESLint either locally or globally.
$ npm install --save-dev eslintTo make most use of this plugin, its recommended to install eslint-plugin-react in addition to ESLint. If you installed
ESLintglobally, you have to install eslint-plugin-react globally too. Otherwise, install it locally.$ npm install --save-dev eslint-plugin-reactSimilarly, install eslint-plugin-react-native
$ npm install --save-dev eslint-plugin-react-nativeTags: #javascript • eslint-plugin • react-native
-
hookstate
The simple but very powerful and incredibly fast state management for React that is based on hooks
Hookstate is a modern alternative to Redux, Mobx, Recoil, etc. It is simple to learn, easy to use, extendable, very flexible and capable to address all state management needs of large scalable applications. It has got impressive performance and predictable behavior.
Any questions? Just ask by raising a github ticket.
Tags: #typescript • react • use-state
subscribe via RSS