sudo apt update
sudo apt install libdvdnav4 libdvdread7 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
sudo apt install ubuntu-restricted-extras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.2-fpm | |
| # Replace shell with bash so we can source files | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| # make sure apt is up to date | |
| RUN apt-get update --fix-missing | |
| RUN apt-get install -y curl | |
| RUN apt-get install -y build-essential libssl-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev |
- For Development Purpose using NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Put this file in /etc/nginx/sites-available | |
| # Then "ln -s /etc/nginx/sites-available/aria2-nginx.conf /etc/nginx/sites-enabled" | |
| # Then "sudo service nginx restart" | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root /var/www/aria2; # Put your aria2 web ui here, such as AriaNg | |
| index index.html; | |
| server_name DOMAIN_NAME; | |
| location / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Lambda S3 Zipper | |
| // http://amiantos.net/zip-multiple-files-on-aws-s3/ | |
| // | |
| // Accepts a bundle of data in the format... | |
| // { | |
| // "bucket": "your-bucket", | |
| // "destination_key": "zips/test.zip", | |
| // "files": [ | |
| // { | |
| // "uri": "...", (options: S3 file key or URL) |
Command Flags
| Flag | Options | Description |
|---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Update Repository | |
| apt-get update | |
| # Install Curl | |
| apt-get install curl | |
| # Install NodeJS 10.x | |
| curl -sL https://deb.nodesource.com/setup_10.x | bash - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi | |
| if [ -f /etc/debian_version ]; then | |
| apt-get update |