ffmpeg \
-r 30000/1001 \
-pattern_type glob -i '*.JPG' \
-vf "crop=in_w:in_w*9/16,scale=3840:-2" \
-sws_flags lanczos \
-pix_fmt yuv420p \
-vcodec libx264 \
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
(function() { | |
/* | |
Provides hotkey support for navigating many posts on piazza. | |
1) e + alt: archives the current post and navigates to the previous post | |
2) u + alt: marks the current post as unread and navigates to the previous post | |
3) k + alt: navigates to the more recent post from current | |
4) j + alt: navigates to the older post | |
*/ | |
// keycodes: http://keycode.info/ | |
const keyArchive = 69; // alt + e |
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
import os | |
""" | |
Two things are wrong with Django's default `SECRET_KEY` system: | |
1. It is not random but pseudo-random | |
2. It saves and displays the SECRET_KEY in `settings.py` | |
This snippet | |
1. uses base 64 encode instead to generate a random key |