⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module HashidsSupport | |
extend ActiveSupport::Concern | |
class_methods do | |
def hashids | |
Hashids.new(table_name, 6) | |
end | |
def encode_id(id) | |
hashids.encode(id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Prestodoctor OAuth on Authomatic implementation with data import and mapping to internal database.""" | |
from argparse import Namespace | |
import time | |
from authomatic.core import json_qs_parser | |
from authomatic.providers.oauth2 import OAuth2 | |
from websauna.system.model import now | |
from websauna.system.user.social import EmailSocialLoginMapper, \ | |
NotSatisfiedWithData |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"
Thx to crxviewer for the magic download URL.