If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
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
| let transaction | |
| try { | |
| // Unmanaged Transaction | |
| transaction = await sequelize.transaction() | |
| // make sure to use the transaction in options | |
| await MyModel.create({ key: "some-value" }, { transaction }) | |
| // always call commit at the end |
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 express = require('express') | |
| var parseurl = require('parseurl') | |
| var session = require('express-session') | |
| var RedisStore = require('connect-redis')(session); | |
| var app = express() | |
| app.use(session({ | |
| store: new RedisStore(options), | |
| secret: 'keyboard cat', | |
| resave: false |
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 express = require('express') | |
| var parseurl = require('parseurl') | |
| var session = require('express-session') | |
| var app = express() | |
| const mongoose = require('mongoose'); | |
| // Basic usage | |
| mongoose.connect(connectionOptions); |
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 express = require('express') | |
| var parseurl = require('parseurl') | |
| var session = require('express-session') | |
| var app = express() | |
| app.use(session({ | |
| secret: 'keyboard cat', | |
| resave: false, | |
| saveUninitialized: true |
Note: replace {{server}} with your domain or ip
- Login as the ec2-user
ssh -i key.pem ec2-user@{{server}}
- Switch to administrator
sudo -i
Only files under 25 MB can be previewed with the Google Drive viewer.
Google Drive viewer helps you preview over 16 different file types, listed below:
- Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
- Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV)
- Text files (.TXT)
- Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS)
- Microsoft Word (.DOC and .DOCX)
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
| const args = { | |
| SOME: 'some', | |
| EVERY: 'every' | |
| } | |
| const permissions = [ | |
| 'create', | |
| 'view', | |
| 'update', | |
| 'delete' |
