Skip to content

Instantly share code, notes, and snippets.

View eval-exec's full-sized avatar
🚀
Passionate Software Engineer and Lifelong Learner. 🚀

Eval Exec eval-exec

🚀
Passionate Software Engineer and Lifelong Learner. 🚀
View GitHub Profile
{
"input": {
"blocklist": [],
"compressor#0": {
"attack": 5.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -100.0,
"hpf-frequency": 10.0,
```elisp
34594 89% - command-execute
34234 88% - funcall-interactively
34234 88% - execute-extended-command
34234 88% - apply
34234 88% - ad-Advice-execute-extended-command
34234 88% - #<native-comp-function execute-extended-command>
34232 88% - command-execute
34232 88% - funcall-interactively
34232 88% - exec/rust-index-project
// snippet of code @ 2024-04-16 10:58:15
// === Rust Playground ===
// This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/
use crossbeam_channel::{after, Sender};
use std::{io::Error, sync::mpsc};
// Execute the snippet: C-c C-c
// Delete the snippet completely: C-c k
// snippet of code @ 2024-04-16 10:58:15
// === Rust Playground ===
// This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/
use crossbeam_channel::{after, Sender};
use std::{io::Error, sync::mpsc};
// Execute the snippet: C-c C-c
// Delete the snippet completely: C-c k
// snippet of code @ 2024-04-16 10:58:15
// === Rust Playground ===
// This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/
use crossbeam_channel::{after, Sender};
use std::{io::Error, sync::mpsc};
// Execute the snippet: C-c C-c
// Delete the snippet completely: C-c k
@eval-exec
eval-exec / starttmux.sh
Created March 3, 2024 15:40 — forked from todgru/starttmux.sh
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space called `work` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"
use std::sync::atomic::{AtomicU64, Ordering};
use std::sync::Arc;
use std::thread;
fn work() {
let a: Arc<AtomicU64> = Arc::new(AtomicU64::new(0));
let b: Arc<AtomicU64> = Arc::new(AtomicU64::new(0));
let j1 = thread::spawn({
let (a, b) = (Arc::clone(&a), Arc::clone(&b));
move || {
@eval-exec
eval-exec / main.rs
Last active December 27, 2022 10:28
faketime issue
use serial_test::serial;
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
// Store faketime timestamp here
#[cfg(test)]
static FAKETIME: AtomicU64 = AtomicU64::new(0);
// Indicate whether faketime is enabled
#[cfg(test)]
static ENABLE_FAKETIME: AtomicBool = AtomicBool::new(false);