Skip to content

Instantly share code, notes, and snippets.

# with audio
ffmpeg -i video1.mp4 -vcodec libx264 -acodec aac video1_h264.mp4
# without audio
ffmpeg -i video1.mp4 -vcodec libx264 -an video1_h264.mp4
@Davidson-Souza
Davidson-Souza / Non-ct.diff
Created July 13, 2023 16:44
Using valgrind ctime with Rust code, without biding valgrind lib
diff --git a/src/FsChaCha20/fschacha20.rs b/src/FsChaCha20/fschacha20.rs
index ba8e185..781c3e1 100644
--- a/src/FsChaCha20/fschacha20.rs
+++ b/src/FsChaCha20/fschacha20.rs
@@ -54,6 +54,9 @@ impl FSChaCha20 {
}
pub fn decrypt(&mut self, chunk: &[u8]) -> Vec<u8> {
+ if self.key[0] == 0 {
+ println!("Key is not initialized");
[Interface]
PrivateKey = YPRIV
Address = 10.0.0.2/24
# DNS = 1.1.1.1
[Peer]
PublicKey = XPUB
AllowedIPs = 10.0.0.0/24
Endpoint = XPUBLICIP:51820
PersistentKeepalive = 25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Date: May 12, 2025
Chaintip: 000000000000000000020f4edda4f3360a96d80c49e2c8590dadd02f8808a432
For a number of reasons, I have recently set up a new OpenPGP key,
and will be transitioning away from my old one.
The old key will continue to be valid for some time, but I prefer all