- Convert images to video:
ffmpeg -framerate 4 -start_number 51 -i _DSC12%d.jpg -c:v libx264 -r 4 output.mp4(Recommendataion) Use Screen2Gif's editor instead. - Convert video into gif
- Convert video into image sequence:
- Crop video:
ffmpeg -i in.mp4 -vf crop=w:h:x:y out.mp4 - Change video frame rate:
- Scale video resolution:
ffmpeg -i input.avi -vf scale=320:240 output.avi - Scaleing while keeping aspect ratio:
ffmpeg -i input.jpg -vf scale=320:-1 output_320.png - Scale images:
ffmpeg -i input.jpg -vf scale=320:240 output_320x240.png - Multiple filters (separate using comma):
ffmpeg -i 1.mp4 -vf "crop=720:720:264:0, scale=320:-1" 1.gif - Trim/Cut video:
ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output1.mp4
VirtualBox: https://www.virtualbox.org/
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
| int main() | |
| { | |
| int a = 5; | |
| int* b = &a; | |
| int c[] = {1, 2, 3, 4, 5}; | |
| return 0; | |
| } |
Assume VS 2019 style shortcut preset.
- (Feature)
Ctrl+Tfor Search Everywhere for symbols and definitions, which is different from Search from Files (Ctrl+Shift+F); - (Code Navigation)
Alt+Shift+L: Navigate to file in solution explorer;
Ctrl+-: Go to last cursor location (navigate back); Same effect if one has "Navigate back" mouse button;Alt+F12: Peek definition; Press again to peek declaration;Ctrl+K, O: Switch between header and cpp file;Ctrl+K, R: Find all references;Alt+*: Go (back to) current debug line;F9: Toggle breakpoint
- Minecraft Java Edition - E.g. 1.17
- Forge - E.g. 1.17
- OptiFine - E.g. 1.17
- Download shaders (.zip) to put inside OptiFine folder: https://wiki.shaderlabs.org/wiki/Shaderpacks
Notes for Dwarf Fortress, reminders of some things I tend to forget.
We play with Vanilla! It lacks the sound effect and Dwarf Therapist but is otherwise most integrated, feels natural, and had little distraction.
docker run --name <your_container_name> alpine/git <git_command>docker run -it --name <your_container_name> alpine/git <git_command>: Run with tty interactivedocker run -d --name couch -p 8091-8094:8091-8094 -p 11210:11210 couchbase: Run (e.g. a server) unattacheddocker cp container_name:/git/getting-started .: Copy files/folders between a container and the local filesystemdocker start <your_container_name>: Start a stopped containerdocker attach <your_container_name>: Attach to running container