Example inputs:
Variable | Value |
---|---|
key | the shared secret key here |
message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Sid":"PublicRead", | |
"Effect":"Allow", | |
"Principal": "*", | |
"Action":["s3:GetObject","s3:GetObjectVersion"], | |
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"] | |
} |
const fs = require('fs'); | |
const AWS = require('aws-sdk'); | |
// Enter copied or downloaded access id and secret here | |
const ID = ''; | |
const SECRET = ''; | |
// Enter the name of the bucket that you have created here | |
const BUCKET_NAME = 'test-bucket-1242tsr';; |
Example inputs:
Variable | Value |
---|---|
key | the shared secret key here |
message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); |
git branch | grep -v "master\|develop" | xargs git branch -D |
Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat
Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}
db.[CollectionName].find().forEach(function(d){ db.getSiblingDB([Database])[CollectionName].insert(d); }); |
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
Definitely not comprehensive. This is meant to be a basic memory aid with links to get more details. I'll add to it over time.
$ npm install mongoose --save
const mongoose = require('mongoose');
const connectionString = process.env.MONGO_URI || 'mongodb://localhost/databasenamegoeshere';