Authentication
User->API: grant_type=password&username=&password= + \n Authorization: Basic (b64(clientId:clientSecret))
API->API: getClient()\nVerify the clientId and Secret
API->API: grantTypeAllowed()\nIs this client authorized for the grant type
API->API: getUser()\nIs the user valid
API->API: saveAccessToken()\nSave the token for the user
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
# Reconstructed via infocmp from file: /usr/share/misc/terminfo | |
# Install with: tic -x <filename> | |
tmux-256color|tmux with 256 colors, | |
OTbs, OTpt, am, ccc@, hs, km, mir, msgr, xenl, AX, G0, | |
colors#256, cols#80, it#8, lines#24, ncv@, pairs#32767, U8#1, | |
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, | |
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, | |
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M, | |
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, | |
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, |
I hereby claim:
- I am abuecker on github.
- I am abuecker (https://keybase.io/abuecker) on keybase.
- I have a public key ASCFY_1xxyaVPlNBNggR5tyWUgk5-1cjZtGB-Nxrf0l9cgo
To claim this, I am signing this object:
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
import urwid | |
#------- | |
# Model | |
#------- | |
model = { | |
'value': 0 | |
} | |
Add an environment variable:
GIT_SSH_COMMAND='ssh -i private_key_file' git clone user@host:repo.git
Add the key to the ssh agent:
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
Test the connection:
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const messageMachine = Machine( | |
{ | |
id: 'message', | |
initial: 'idle', | |
context: { | |
duration: 5000, | |
elapsed: 0, | |
interval: 250, | |
percent: 0, | |
}, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |