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. |
| <!-- parent form component --> | |
| <template> | |
| <form> | |
| <FormSelector | |
| :options="users" | |
| :selected="currentUser" | |
| @change="onUserChange($event)" | |
| /> | |
| </form> |
| /*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; |
| # Remove all stopped containers: | |
| docker rm $(docker ps -a -q) | |
| # Remove all dangling Docker images: | |
| docker rmi $(docker images -f "dangling=true" -q) |