A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| #!/bin/bash | |
| # https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/media-best-practices | |
| # - h.264 high profile | |
| # - 60fps or less | |
| # - aac-lc, he-aac not supported | |
| # - 16:9 recommended | |
| # - 512mb maximum | |
| # - shorter than 140s | |
| # - 1:1 pixel aspect ratio | |
| # - yuv 4:2:0 |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
| storage: | |
| dbPath: "/ssd/db/wt_zlib" | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| collectionConfig: "block_compressor=zlib" | |
| systemLog: | |
| destination: file | |
| path: "/data/wt_zlib/mongodb.log" | |
| processManagement: | |
| fork: true |
| import random | |
| from collections import defaultdict | |
| from pprint import pprint | |
| class City(object): | |
| def __init__(self, data=None): | |
| self.name = None | |
| self.neighbors = {} | |
| if data is not None: |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # Rails Stuff | |
| alias stoprails='kill -9 $(lsof -i :3000 -t)' | |
| alias startrails='rails server -d' | |
| alias restartrails='stopRails && startRails' | |
| #Check PHP For Erroes | |
| alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l' | |
| # ROT13-encode text. Works for decoding, too! ;) | |
| alias rot13='tr a-zA-Z n-za-mN-ZA-M' |
Start your rethinkdb instance with this flag:
--bind all (or bind=all in the configuration file for your instance)
Block external access to the web UI with these two commands:
sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP
sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT
Install nginx:
sudo apt-get install nginx