Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
# Disable direct access on ip | |
# generate stub ssl cert | |
# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/stub-selfsigned.key -out /etc/ssl/certs/stub-selfsigned.crt | |
server { | |
listen x.x.x.x:80 default_server; | |
listen x.x.x.x:443 default_server; | |
ssl_certificate "/etc/ssl/certs/stub-selfsigned.crt"; |
This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.
Documentation links
Shift+Alt:
gsettings set org.pantheon.desktop.gala.keybindings switch-input-source "['<Alt>Shift_L', '<Alt>Shift_R', '<Shift>Alt_L', '<Shift>Alt_R']"
Shift+Ctrl:
gsettings set org.pantheon.desktop.gala.keybindings switch-input-source "['<Ctrl>Shift_L', '<Ctrl>>Shift_R', '<Shift>Control_L', '<Shift>Control_R']"
class wtforms.fields.SelectField(default field arguments, choices=[], coerce=unicode, option_widget=None)
Select fields keep a choices property which is a sequence of (value, label) pairs. The value portion can be any type in theory, but as form data is sent by the browser as strings, you will need to provide a function which can coerce the string representation back to a comparable object.
Select fields with static choice values:
class PastebinEntry(Form):
language = SelectField(u'Programming Language', choices=[('cpp', 'C++'), ('py', 'Python'), ('text', 'Plain Text')])
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
import codecs | |
import os | |
from random import choice, shuffle | |
from copy import deepcopy | |
from itertools import cycle | |
class FileOperation(object): |
[ | |
{ | |
"keys": ["alt+shift+6"], | |
"command": "set_layout", | |
"caption" : "1+2 Grid", | |
"args": | |
{ | |
"cols": [0.0, 0.55, 1.0], | |
"rows": [0.0, 0.55, 1.0], | |
"cells": |