Skip to content

Instantly share code, notes, and snippets.

View storopoli's full-sized avatar

Jose Storopoli storopoli

View GitHub Profile
@storopoli
storopoli / com.sparrowwallet.Sparrow.yml
Last active September 20, 2024 11:23 — forked from ziqiq/com.sparrowwallet.Sparrow.md
Sparrow wallet flatpak manifest
# run me with:
# flatpak-builder --force-clean --user --install-deps-from=flathub-verified --install builddir com.sparrowwallet.Sparrow.yml
id: com.sparrowwallet.Sparrow
branch: 2.0.0
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: Sparrow
modules:
- name: Sparrow
@ziqiq
ziqiq / com.sparrowwallet.Sparrow.md
Last active September 17, 2024 16:35
Sparrow wallet flatpak manifest

Installation for End User

  1. Install flatpak builder
flatpak install --user org.flatpak.Builder
  1. Build and install the Sparrow manifest
@storopoli
storopoli / object_safety.rs
Created July 8, 2024 12:38
Rust: Object Safe Traits
// In general there are two properties for traits to satisfy
// in order them to be object-safe:
//
// 1. The return type isn’t Self.
// 2. There are no generic type parameters.
// Here's an example of a non-object-safe Trait
trait MyTrait {
fn f(&self) -> Self;

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@nikolovlazar
nikolovlazar / keybindings.json
Last active September 23, 2024 22:15
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@lavafroth
lavafroth / config.toml
Created March 27, 2024 03:10
Helix config for lazygit integration
[keys.normal]
C-g = [":new", ":insert-output lazygit", ":buffer-close!", ":redraw"]
@storopoli
storopoli / .gitignore
Last active September 19, 2024 08:42
Minimal Neovim config
lazy-lock.json
@storopoli
storopoli / alpine.json
Last active September 11, 2024 19:30
Devcontainers Configs
{
"name": "Alpine",
"image": "mcr.microsoft.com/devcontainers/base:alpine",
"postCreateCommand": "sudo apk update && sudo apk add <PKGS>"
}
@storopoli
storopoli / chomebook.md
Last active January 30, 2024 18:12
Life with a Chromebook (arm64)
@RobinLinus
RobinLinus / covenants_cat_ecdsa.md
Last active July 30, 2024 15:14
Emulate covenants using only OP_CAT and ECDSA signatures

Covenants with CAT and ECDSA

In his article, CAT and Schnorr Tricks I, Andrew Poelstra showed how to emulate OP_CHECKSIGFROMSTACK-like covenants using only OP_CATand Schnorr signatures.

Here, we show that a similar trick is possible to emulate covenants using only OP_CAT and ECDSA signatures.

The High-Level Idea

Recall the ECDSA Signature Equation