Posts

  • angular-token

    :key: Token based authentication service for Angular with interceptor and multi-user support. Works best with devise token auth for Rails. Example:


    Tags: #typescript • devise-token-auth • rails

  • HTTP-Proxy-Servlet

    Smiley’s HTTP Proxy implemented as a Java servlet

    The following is a list of parameters that can be configured

    • log: A boolean parameter name to enable logging of input and target URLs to the servlet log.
    • forwardip: A boolean parameter name to enable forwarding of the client IP
    • preserveHost: A boolean parameter name to keep HOST parameter as-is
    • preserveCookies: A boolean parameter name to keep COOKIES as-is
    • http.protocol.handle-redirects: A boolean parameter name to have auto-handle redirects
    • http.socket.timeout: A integer parameter name to set the socket connection timeout (millis)
    • http.read.timeout: A integer parameter name to set the socket read timeout (millis)
    • http.connectionrequest.timeout: A integer parameter name to set the connection request timeout (millis)
    • http.maxConnections: A integer parameter name to set max connection number
    • useSystemProperties: A boolean parameter whether to use JVM-defined system properties to configure various networking aspects.
    • targetUri: The parameter name for the target (destination) URI to proxy to.

    Tags: #java

  • codeigniter-model

    CodeIgniter 3 Active Record (ORM) Standard Model with Laravel Eloquent & Yii2 AR like

    $this->load->model('Posts_model');
    
    // Create an Active Record
    $post = new Posts_model;
    $post->title = 'CI3'; // Equivalent to `$post['title'] = 'CI3';`
    $post->save();
    
    // Update the Active Record found by primary key
    $post = $this->Posts_model->findOne(1);
    if ($post) {
        $oldTitle = $post->title; // Equivalent to `$oldTitle = $post['title'];`
        $post->title = 'New CI3';
        $post->save();
    }
    

    The pattern is similar to Yii2 Active Record and Laravel Eloquent

    Tags: #php • codeigniter3 • model

  • danbooru

    A taggable image board written in Rails.

    Run this to start a basic Danbooru instance:

    curl -sSL https://raw.githubusercontent.com/danbooru/danbooru/master/bin/danbooru | sh
    

    This will install Docker Compose and use it to start Danbooru. When it’s done, Danbooru will be running at http://localhost:3000.

    Alternatively, if you already have Docker Compose installed, you can just do:

    wget https://raw.githubusercontent.com/danbooru/danbooru/master/docker-compose.yaml
    docker-compose up
    

    Tags: #ruby • rails • booru

  • shopify-nextjs-toolbox

    A set of tools to authenticate NextJs apps with Shopify’s OAuth handshake and AppBridge Session Tokens

    A set of server side and client side NextJs utilities for integrating with Shopify’s OAuth & App Bridge authentication systems.

    These tools will allow you to complete all steps for Shopify’s new authentication system without Koa.js.

    This package includes the following tools:

    Tags: #javascript

  • js-graphql-intellij-plugin

    GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.

    GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.

    Tags: #java • graphql • webstorm

  • xeHentai

    Doujinshi downloader 绅士漫画下载

    Windows users can download packed binaries from here or here. The package is built using PyInstaller.

    Or run directly from source code:

    pip install -U requests[socks]
    git clone https://github.com/fffonion/xeHentai.git
    cd xeHentai
    python ./setup.py install
    xeH
    

    The program is running in non-interactive mode by default. To run interactively, use xeH.py -i.

    Tags: #python • crawler • json-rpc

  • arcgis-cookbook

    Chef cookbooks for ArcGIS

    Find a bug or want to request a new feature? Please let us know by submitting an issue.

    Tags: #ruby • cookbook • chef

  • inert

    Polyfill for the inert attribute and property.

    Tags: #javascript

  • devise-pwned_password

    Devise extension that checks user passwords against the PwnedPasswords dataset

    Devise extension that checks user passwords against the PwnedPasswords dataset (https://haveibeenpwned.com/Passwords).

    Checks for compromised (“pwned”) passwords in 2 different places/ways:

    1. As a standard model validation using pwned. This:
      • prevents new users from being created (signing up) with a compromised password
      • prevents existing users from changing their password to a password that is known to be compromised
    2. (Optionally) Whenever a user signs in, checks if their current password is compromised and shows a warning if it is.

    Based on devise-uncommon_password.

    Recently the HaveIBeenPwned API has moved to an authenticated/paid model, but this does not affect the PwnedPasswords API; no payment or authentication is required.

    Tags: #ruby

subscribe via RSS