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
| /** | |
| * gcc -o pty-demo pty-demo.c | |
| * pty-demo bash | |
| */ | |
| #define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */ | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <stdio.h> /* for convenience */ |
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 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
| #!/usr/bin/env python3 | |
| from cryptography.fernet import Fernet | |
| from kdf import derive_key | |
| passphrase = b"hunter2" | |
| f = Fernet(derive_key(passphrase)) | |
| with open('encrypted.txt', 'rb') as file: | |
| encrypted = file.read() # binary read |