Skip to content

Instantly share code, notes, and snippets.

[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
@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");
# 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

Blind Diffie-Hellman Key Exchange (blind ecash)

The goal of this protocol is for Bob to get Alice to perform a Diffie-Hellman key exchange blindly, such that when the unblinded value is returned, Alice recognizes it as her own, but can’t distinguish it from others (i.e. similar to a blind signature).

Alice:
A = a*G
return A

Bob:
Y = hash_to_curve(secret_message)
r = random blinding factor
Collect together concerns (alphabetical order by name) made public about premature BIP 119 activation speculation in https://github.com/JeremyRubin/rubin.io/pull/2
Adam Back: <https://twitter.com/adam3us/status/1477958056776540164?s=20>
AJ Towns: <https://twitter.com/ajtowns/status/1478053356337655808?s=20>
alpacasw: <https://twitter.com/alpacasw/status/1517131243611201537?s=20&t=Jpz4sQywu9dd31sfE32LxQ>
andhans_jail: <https://github.com/JeremyRubin/utxos.org/issues/44>
{
"workbench.colorTheme": "Slime",
"workbench.statusBar.visible": false,
"explorer.openEditors.visible": 0,
"workbench.startupEditor": "newUntitledFile",
"workbench.activityBar.visible": true,
"git.autofetch": true,
"editor.tabSize": 2,
"editor.fontSize": 21,
"terminal.integrated.fontSize": 21,
@jaonoctus
jaonoctus / post-receive
Last active February 6, 2017 17:23
git push deploy
#!/bin/bash
# Variables
USER_PATH='/home/user'
REPO_PATH=$USER_PATH'/repo'
PRODUCTION_PATH=$USER_PATH'/production'
while read oldrev newrev ref
do
@jaonoctus
jaonoctus / install-php7.sh
Last active November 14, 2016 17:07
Install PHP7 on Debian Jessie (run as root)
#!/bin/bash
# Add packages
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
# Add GPG Key
wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.200.10
@jaonoctus
jaonoctus / .htaccess
Last active February 12, 2016 02:22
tricks
# Alterar o arquivo index
DirectoryIndex login.php
# Usar isto para todos os casos abaixo
RewriteEngine on
# Remover ".php" no final da URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f