Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| #!/usr/bin/env osascript -l JavaScript | |
| const App = Application.currentApplication(); | |
| App.includeStandardAdditions = true; | |
| const kCFPrefsFeatureFlagsDir = '/Library/Preferences/FeatureFlags/Domain'; | |
| const kCFPrefsFeatureEnabledKey = 'Enabled'; | |
| const kUIKitDomainPrefsTemporaryPath = '/tmp/UIKit.plist'; | |
| const kUIKitRedesignedTextCursorKey = 'redesigned_text_cursor'; |
| # CHANGE THE COLORS TO THE RELEVANT ONES FOR YOUR COLORSCHEME | |
| fzf() { | |
| if grep -q dark "$HOME/theme"; then | |
| FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --color=fg:#e0def4,bg:#2a273f,hl:#6e6a86 --color=fg+:#908caa,bg+:#232136,hl+:#908caa --color=info:#9ccfd8,prompt:#f6c177,pointer:#c4a7e7 --color=marker:#ea9a97,spinner:#eb6f92,header:#ea9a97" /opt/homebrew/bin/fzf | |
| else | |
| FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --color=fg:#575279,bg:#fffaf3,hl:#9893a5 --color=fg+:#797593,bg+:#faf4ed,hl+:#797593 --color=info:#56949f,prompt:#56949f,pointer:#907aa9 --color=marker:#d7827e,spinner:#b4637a,header:#d7827e" /opt/homebrew/bin/fzf | |
| fi | |
| } |
| /* Fix scrolling bug on iOS Safari with fixed elements and bottom bar */ | |
| body.noscroll { | |
| height: 100%; | |
| overflow: hidden; /* make sure iOS does not try to scroll the body first */ | |
| } | |
| /* your wrapper, most likely mobile menu */ | |
| .fixed-wrapper { | |
| width: 100%; |
| #! /usr/bin/env stack | |
| -- stack --resolver lts-18.8 script | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {- | |
| This is a handy illustration of converting between five of the commonly-used | |
| string types in Haskell (String, ByteString, lazy ByteString, Text and lazy | |
| Text). |
| package main | |
| import ( | |
| "fmt" | |
| "net/mail" | |
| "net/smtp" | |
| "strings" | |
| ) | |
| var host = "127.0.0.1" |