to print the file filename.pdf using the default printer:
lpr filename.pdf
you can also specify the printer name using -P printername:
lpr -P printername filename.pdf
| // Quick'n'dirty EventEmitter class | |
| function EventEmitter() { | |
| } | |
| EventEmitter.prototype = { | |
| on: function (event, listener) { | |
| this._events = this._events || {}; | |
| this._events[event] = this._events[event] || []; | |
| this._events[event].push(listener); | |
| this.emit('newListener', event, listener); | |
| return this; |
| # Installation | |
| brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
| # Easy Peasy | |
| ffmpeg -i video.mp4 video.webm |
| { | |
| "title": "Error (HTTP)", | |
| "type": "object", | |
| "properties": { | |
| "statusCode": {"type": "integer"}, | |
| "statusText": {"type": "string"}, | |
| "message": {"type": "string"}, | |
| "data": {"title": "Supplementary data"} | |
| }, | |
| "required": ["statusCode", "statusText", "message"] |