See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| #!/bin/bash | |
| ROOT_UID=0 # Only users with $UID 0 have root privileges. | |
| E_NOTROOT=87 # Non-root exit error. | |
| # Run as root only (sudo counts) | |
| if [ "$UID" -ne "$ROOT_UID" ] | |
| then | |
| echo "You need root priveledges to run this script" | |
| exit $E_NOTROOT |
| ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4 |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| /* | |
| MIT No Attribution | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| software and associated documentation files (the "Software"), to deal in the Software | |
| without restriction, including without limitation the rights to use, copy, modify, | |
| merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so. |
| /*An object created to parse through a large number of HTML | |
| blocks quickly. Used with cheerio.js. Begin via: | |
| parse.run($('some-div')[0]) | |
| */ | |
| var fs = require('fs'), | |
| cheerio = require('cheerio'); | |
| var Parse = function(block) { |
| const Promise = require('bluebird'); | |
| const fs = require('fs'); | |
| const execa = require('execa'); | |
| class BlueGreenDeployment { | |
| constructor({appName, blueProxyPassPattern, greenProxyPassPattern, nginxConfigFile}) { | |
| this.appName = appName; | |
| this.blueProxyPassPattern = blueProxyPassPattern; | |
| this.greenProxyPassPattern = greenProxyPassPattern; | |
| this.nginxConfigFile = nginxConfigFile; |
| // NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
| // my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
| // setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
| var gulp = require('gulp'), | |
| spawn = require('child_process').spawn, | |
| node; | |
| /** | |
| * $ gulp server | |
| * description: launch the server. If there's a server already running, kill it. |