Skip to content

Instantly share code, notes, and snippets.

@jeremychone
jeremychone / rust-xp-03-redis.rs
Last active September 9, 2023 06:33
Rust Redis with Async/Await (single threaded concurrency) | RustLang by example
#![allow(unused)] // silence unused warnings while exploring (to comment out)
use std::{error::Error, time::Duration};
use tokio::time::sleep;
use redis::{
from_redis_value,
streams::{StreamRangeReply, StreamReadOptions, StreamReadReply},
AsyncCommands, Client,
};
@karbassi
karbassi / Git gpg stuck.md
Created February 5, 2020 15:26
If your git process gets stuck during the `gpg` signing phase, you can restart `gpg` by running

If your git process gets stuck during the gpg signing phase, you can restart gpg by running

gpgconf --kill gpg-agent