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 |
| require 'exifr' | |
| require 'RMagick' | |
| include Magick | |
| include FileUtils | |
| $image_extensions = [".png", ".jpg", ".jpeg", ".gif"] | |
| module Jekyll | |
| class GalleryFile < StaticFile |
| sudo apt-get install libmagickwand5 libmagickwand-dev | |
| gem install rmagick |
| {% for category in site.categories %} | |
| <li>{{ category | first }}({{category | last | size}})</h3> | |
| <ul> | |
| {% for posts in category %} | |
| {% for post in posts %} | |
| <li><a href="{{ post.url }}">{{ post.title }}</a></li> | |
| {% endfor %} | |
| {% endfor %} | |
| </ul> | |
| </li> |
| #!/usr/bin/env bash | |
| apt-get -y update | |
| sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev vim | |
| sudo apt-get -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev byobu nginx fail2ban | |
| cd /tmp | |
| byobu-enable | |
| sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
| curl -L https://get.rvm.io | bash -s stable | |
| sudo usermod -a -G rvm `whoami` | |
| source ~/.rvm/scripts/rvm |
| #convert webm to mp4 | |
| ffmpeg -fflags +genpts -i 1.webm -r 24 1.mp4 |
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 |
| import os | |
| import stat | |
| import argparse | |
| template_fcgi = '''#!/usr/bin/env python3 | |
| from flup.server.fcgi import WSGIServer | |
| from %s import app | |
| class ScriptNameStripper(object): |
| #!/bin/bash | |
| # Install Docker (https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce) | |
| sudo apt-get remove docker docker-engine docker.io | |
| sudo apt-get update | |
| sudo apt-get --assume-yes install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| # -w flag permanently adds the plist to the Launch Daemon | |
| sudo launchctl load -w /Library/LaunchDaemons/com.omniedge.plist | |
| # -w flag permanently remove the plist to the Launch Daemon | |
| sudo launchctl unload -w /Library/LaunchDaemons/com.omniedge.plist | |
| You can stop the launchctl process by | |
| sudo launchctl stop /Library/LaunchDaemons/com.omniedge.plist | |
| #!/bin/bash | |
| # Step 1: Get the JSON list and extract the "id" into an array called "ids" | |
| response=$(curl -G https://api.stripe.com/v1/customers \ | |
| -u sk-key: \ | |
| -d limit=3) | |
| # Check if the curl command was successful | |
| if [ $? -ne 0 ]; then | |
| echo "Error occurred while fetching data from the API." |