aws:CurrentTime—To check for date/time conditions.aws:EpochTime—To check for date/time conditions using a date in epoch or UNIX time.aws:TokenIssueTimeThis is the date and time that temporary security credentials were issued and can be used with date/time conditions. (Note: This key is only available in requests that are signed using temporary security credentials. For more information about temporary security credentials, see Temporary Security Credentials.)aws:principaltype—To check the type of principal (user, account, federated user, - etc.) for the current request.aws:SecureTransport—To check whether the request was sent using SSL. For services - that use only SSL, such as Amazon RDS and Amazon Route 53, the aws:SecureTransport - key has no meaning.aws:SourceArn—To check the source of the request, using the Am
This file contains hidden or 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
| # KEYCLOAK BASE URL | |
| KEYCLOAK_BASE_URL= | |
| # KEYCLOAK CLIENT SECRET | |
| KEYCLOAK_CLIENT_SECRET= | |
| # KEYCLOAK CLIENT ID | |
| KEYCLOAK_CLIENT_ID= | |
| # BASE URL FOR NEXT AUTH |
This file contains hidden or 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
| var Excel = require('exceljs'); | |
| var workbook = new Excel.Workbook(); | |
| workbook.xlsx.readFile('../../storage/cust_88ae31d4-47c5-4f70-980e-7b473ba20ef9/xls.xls') | |
| .then(function() { | |
| var worksheet = workbook.getWorksheet('Sheet1'); | |
| worksheet.eachRow({ includeEmpty: true }, function(row, rowNumber) { | |
| console.log("Row " + rowNumber + " = " + JSON.stringify(row.values)); | |
| }); | |
| }); |
- Passwords will contain at least 1 upper case letter
- Passwords will contain at least 1 lower case letter
- Passwords will contain at least 1 number or special character
- There is no length validation (min, max) in this regex!
Regular expression for JavaScript:
/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
This file contains hidden or 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
| CREATE TABLE books ( | |
| isbn char(14) NOT NULL, | |
| title varchar(255), | |
| author varchar(255), | |
| price decimal(5,2) | |
| ); | |
| INSERT INTO books (isbn, title, author, price) VALUES | |
| ('978-1503261969', 'Emma', 'Jayne Austen', 9.44), | |
| ('978-1514274873', 'Journal of a Soldier', NULL, 5.49), |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug NodeJS server", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], | |
| "envFile": "${workspaceFolder}/.env", |
First of all, please note that token expiration and revoking are two different things.
- Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
- Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.
Quoted from JWT RFC:
This file contains hidden or 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
| " With this function you can reuse the same terminal in neovim. | |
| " You can toggle the terminal and also send a command to the same terminal. | |
| let s:monkey_terminal_window = -1 | |
| let s:monkey_terminal_buffer = -1 | |
| let s:monkey_terminal_job_id = -1 | |
| function! MonkeyTerminalOpen() | |
| " Check if buffer exists, if not create a window and a buffer | |
| if !bufexists(s:monkey_terminal_buffer) |
This file contains hidden or 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
| o.......Open files, directories and bookmarks....................|NERDTree-o| | |
| go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go| | |
| t.......Open selected node/bookmark in a new tab.................|NERDTree-t| | |
| T.......Same as 't' but keep the focus on the current tab........|NERDTree-T| | |
| i.......Open selected file in a split window.....................|NERDTree-i| | |
| gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi| | |
| s.......Open selected file in a new vsplit.......................|NERDTree-s| | |
| gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs| | |
| O.......Recursively open the selected directory..................|NERDTree-O| | |
| x.......Close the current nodes parent...........................|NERDTree-x| |
This file contains hidden or 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
| " vim:foldmethod=marker:foldlevel=0 | |
| " vim-plug {{{ | |
| call plug#begin() | |
| " color scheme | |
| Plug 'chriskempson/base16-vim' | |
| " syntax highlighting | |
| Plug 'peterhoeg/vim-qml' |
NewerOlder