A comparison of nvm and Volta to manage Node.js projects (without Yarn).
nvm install
## in the server block | |
# | |
# note: if you have posts with title matching these, turn them off or fine-tune | |
# them to exclude those | |
## Block SQL injections | |
location ~* union.*select.*\( { | |
access_log /var/log/nginx/blocked.log blocked; | |
deny all; | |
} |
node_modules | |
build | |
package-lock.json |
JSONAPIObject: | |
description: Includes the current JSON:API version for this specification as well as optional meta information | |
type: object | |
required: | |
- version | |
properties: | |
version: | |
type: string | |
default: '1.0' | |
example: '1.0' |
To convert animation GIF to MP4 by ffmpeg, use the following command
ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible.
pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific format which has maximum compatibility across all browsers.
# Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches | |
# To update the local list of remote branches: | |
git remote update origin --prune |
{ | |
"files.eol": "\n", | |
"editor.formatOnSave": true, | |
"[javascript]": { | |
"editor.formatOnSave": false | |
}, | |
"[typescript]": { | |
"editor.formatOnSave": false | |
}, | |
"eslint.autoFixOnSave": true, |
/* eslint-disable no-undef */ | |
module.exports = { | |
singleQuote: true | |
}; |
# See https://help.github.com/ignore-files/ for more about ignoring files. | |
# compiled output | |
/dist/ | |
/tmp/ | |
# dependencies | |
/bower_components/ | |
/node_modules/ |