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

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
@ajsb85
ajsb85 / webot.php
Last active January 25, 2023 14:52
Telegram Bot for Trolling
<?php
ini_set("expect.timeout", -1);
ini_set("expect.loguser", "Off");
$stream = expect_popen("./telegram -k tg-server.pub");
sleep(1);
print fread($stream, 8192);
print "\n";
$i = 0;
while (true) {
if($i===sizeof($array)) $i=0;
@robotlolita
robotlolita / oop.md
Last active May 24, 2023 21:23
O que é OOP? Por que Java não deve ser considerado uma linguagem com um bom suporte para esse paradigma?

Objeto é a noção de uma entidade que é definida inteiramente pelo seu comportamento. E esse comportamento é dinâmicamente selecionado. Em outras palavras, eu "peço" um objeto para "andar," e como ele vai fazer isso é inteiramente definido pelo objeto.

O exemplo:

objeto.anda()

Captura bem essa idéia. Eu tenho uma mensagem "anda," mas eu não consigo dizer o que essa função faz direto do meu código, porque isso depende no comportamento dinâmico da execução do programa (em uma linguagem estáticamente tipada você consegue optimizar isso, mas o raciocínio do código continua o mesmo).