is just a png file of 1x1 pixels dimension.
https://i.ibb.co/DC05bQB/palette.png
ffmpeg -i demo.webm -i palette.png -filter_complex "fps=10" demo.gif
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| { | |
| "name": "webpack", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "node dev-server.js" | |
| }, | |
| "author": "JRichardsz", | |
| "license": "MIT", |
| // read : https://github.com/webpack/webpack-dev-server/issues/285#issuecomment-145781542 | |
| // read : https://github.com/webpack/webpack-dev-server/issues/533 | |
| var webpack = require('webpack'); | |
| var WebpackDevServer = require('webpack-dev-server'); | |
| var config = require("./webpack.nonproduction.config.js"); | |
| var express = require('express'); | |
| var session = require('express-session'); | |
| var compiler = webpack(config); | |
| const app = express(); |
| import org.springframework.security.core.authority.SimpleGrantedAuthority; | |
| import org.springframework.security.core.context.SecurityContextHolder; | |
| import org.springframework.stereotype.Service; | |
| @Service | |
| public class SecurityServiceImpl { | |
| private @Autowired HttpServletRequest httpServletRequest; |
| //You can do something like: | |
| module.exports = { | |
| method: function() {}, | |
| otherMethod: function() {} | |
| } | |
| //Or even just: |
| A reasonable alternative solution is to use a module level function that uses an opaque object representing context to retrieve context-specific store instance which would be used like this: | |
| // client-side | |
| var store = require('redux').getStore(window) | |
| // server-side | |
| function handleFoobar(req, res) { | |
| var store = require('redux').getStore(req); | |
| } |
| # example of node.js 6.1..5 installation | |
| # easy | |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
| nvm install v6.11.5 | |
| nvm install v8.11.2 | |
| nvm install v10.4.0 | |
| # something easy | |
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - |
| ############################## | |
| # sdout stderr enabled | |
| ############################## | |
| mvn_detect() { | |
| maven_version=$(mvn -v) | |
| status=$? | |
| echo $status | |
| } |
is just a png file of 1x1 pixels dimension.
https://i.ibb.co/DC05bQB/palette.png
ffmpeg -i demo.webm -i palette.png -filter_complex "fps=10" demo.gif