I hereby claim:
- I am olivierbuffon on github.
- I am obuff (https://keybase.io/obuff) on keybase.
- I have a public key ASAXFRPTuxzO8P8AfKz338XF9iJyCns82JHnZbClNiZ3fgo
To claim this, I am signing this object:
#content | |
#content-header | |
.h2-edit Search | |
#content-container | |
= search_form_for @search, :url => { controller: "searches", action: "advanced"}, html: {method: :post} do |f| | |
- setup_search_form f | |
#search-conditions | |
= f.condition_fields do |c| | |
= render 'alerts/condition_fields', f: c | |
= button_to_add_fields "Add Condition", f, :condition |
#!/bin/sh | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' | |
CHECKING_OUT_BRANCH=$3 | |
OLD_BRANCH=$1 | |
NEW_BRANCH=$2 |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport prefs joinMode=Strongest |
I hereby claim:
To claim this, I am signing this object:
This is just some code I recently used in my development application in order to add token-based authentication for my api-only rails app. The api-client was to be consumed by a mobile application, so I needed an authentication solution that would keep the user logged in indefinetly and the only way to do this was either using refresh tokens or sliding sessions.
I also needed a way to both blacklist and whitelist tokens based on a unique identifier (jti)
Before trying it out DIY, I considered using:
# official docs: https://graphql-ruby.org/dataloader/sources.html | |
# app/graphql/sources/association.rb | |
class Sources::Association < ::GraphQL::Dataloader::Source | |
def initialize(association_name, scope = nil) | |
@association_name = association_name | |
@scope = scope | |
end | |
def fetch(records) |