This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0eNrc3UuTJNeRpum/Qsl1WImp6rly2b2dxex60VJSApA5YEolExAgUdKUEv73iUgkLgTMC/ZEcTaz4gWG4x7+HTN3e1811f988+X7799+8+27Dx//7cuvv/73N3/8z5//n+/e/PF//+J/vvyz7z588c3x8evjq2/f/fnlf/+fN3+M83x687dP//n3pzdffPnd1++///j2eDnym3cfvnrzx4/ffv/26c27P3394YcFv3v31Ycv3r/82x//9s3bN3988+7j27++eXrz4Yu/vvyvL999dbx9//ZPH79996fjm6/fv33zvOy7D39++/Jaf//XpzdvP3x89/Hd2x8W+/Q//vZvH77/65dvv30+4L9Y5unNN19/9/xvfv3h8zvvn953f17+w9t3X/3ly6+///Zl0Xzq//r3p98snbJ0PVg7nupq7ZK1x8P33a7WbrL2frB2PY2rtbt/3HXxmcyrtccr3vdvF29P62rx6W98/Gbt/rSv1l6veOO/XXw8RV6tvv2d798sPp/ivFo8zlds8t8uv58iLpePV+zz3y7//C6vP5vIV3z0F+vHy6Z5vtJ8fPf+82XmV/9q+/Rvtr//9HLfffHhz0e9eXlPl4f2+4cWLFuw7oB1B6y7Yd19a91+/9Pt9z/dDp9uh0+3w6fb4dPt8Ol2+HQLNm/B7i3ZDiX7oWBDFOyIko+45DMe8BkP+IyHfMZDPuMBn/GAz3jIZzzkM97wGW/4jLdchrdch7dciLdcibfsiy37YsO+2LAvtlyOt1yPt1yQt1yRt+zl/XgvP/+y+HTL88df3Fs9vXn/xZdvn++K3vzP5180f/gf77/+07//4fmW6vkf/Mfbb7/7tG6uaHPnXGOfdbafb4vOl9f//+992vHDR3lc3PHM//ad2qO1n+/Urm8d6hU/ka/eeru+e2iv+Il8XNyv9Qc/8fsrfiIfF7dV48FvfLpti/PRC/QHP/HnKzbORbbrKeq/fe/2YPX5lE/Pd0Dtv3339ggirOet+c+4f3sEEvbz3vx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on Cygwin /etc/skel/.inputrc | |
# the following line is actually | |
# equivalent to "\C-?": delete-char | |
"\e[3~": delete-char | |
# VT | |
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detect the correct TERM value for new sessions. | |
# if-shell uses /bin/sh, so bashisms like [[ do not work. | |
if "[ $(tput colors) = 16777216 ]" { | |
set -g default-terminal "tmux-direct" | |
} { | |
if "[ $(tput colors) = 256 ]" { | |
set -g default-terminal "tmux-256color" | |
} { | |
set -g default-terminal "tmux" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S rust-script -t nightly | |
#![allow(dead_code)] | |
#![feature(unix_sigpipe)] | |
use std::io::Write; | |
fn title(t: &str) { | |
println!("{}\n{:-<2$}", t, "", t.len()) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rust-script | |
//! ```cargo | |
//! [dependencies] | |
//! anyhow = "1" | |
//! libc = "0.2" | |
//! procfs = { version = "0.16", default-features = false } | |
//! ``` | |
use procfs::process::Process; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S rust-script -t nightly | |
#![feature(unix_sigpipe)] | |
use std::cmp::max; | |
const BASIC_COLORS: &[&str] = &[ | |
"black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", | |
]; | |
fn title(t: &str) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rust-script | |
//! ```cargo | |
//! [dependencies] | |
//! anyhow = "1" | |
//! libc = "0.2" | |
//! procfs = "0.16" | |
//! ``` | |
use procfs::process::Process; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::VecDeque; | |
use std::future::Future; | |
use std::pin::Pin; | |
use std::sync::atomic::AtomicUsize; | |
use std::sync::{Arc, Mutex}; | |
use std::task::{Context, Poll, Waker}; | |
struct State<T> { | |
queue: VecDeque<T>, | |
tx_count: usize, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0eNq9XctuHUeS/ZWG1mYj3w9vZzW72Q8aA0q6tomhSA4fjTYa/ve5ktzNsliRdc4J6+4kUTwRGZWZERnPf757f/tyeni8uXt+9+M/3918uL97evfjf//z3dPNz3fXt5//7fnXh9O7H9/dPJ8+vfvh3d31p89/+3B//uFvP7y7uft4+se7H+NvPxz+ysPt9dPzzYer99ePm99Mv/3th3enu+eb55vTV8pf/vLr/9y9fHp/ejxD/xvgp/PvXz0/Xt89Pdw/Pl+9P90+n9Ef7p/Ov3t/95nuGe8qpvLX+sO7X8+/GeNf65nSx5vH04ev/6V85vMbAslBICAEMk2gcisoDgLQCurrR7x5OF0931/9/Hj/cvdxD/sz4ob5HbSmoUGcdgI7tCNOh4YGcTrZjxbIjxaDgwK07yJ9NgN5NmNyUMCk9Ho6T/94eDw9PV09PdzePD+ff7h7cn4HzxB4cdwtCaJQHWcfo/DH47oLmf66FcseSD8GyYcg4xgkHILMY5B4BJLCIUgchyDxGGQegqRjkHYIko9B+iFIOQYphyD1GKQeghzv2Hi4Y9Pxjo2HOzYNxxUMnc7kUSPQHZaD4wrGKHjUCCSlnN5c8mctfnr8qs2Ry7i8IfPDv63cu4eX53d7VL8x/CCS1Ufy+BBuFlX3d21mzL3NtV0MuKbB1W/X3/bAGYNvox3egKc98Nfj+/7+5nbfIthc9PvLnwhIXYOUgICkA5CoGd4FeoMAiigc7bySHbcZxmZxUKgQheq4zTAKzUEBk1L33pfdvrzuX56N26sM14Wp0ZzMBfK6wLa/g+vrQQVM8WDzvncf1dcDfHP3dHo03igbq7FBr/tE8LwBx3jODPggwQsD3knwyoA3Erxhn7KQn7IzPFeS58GAFxJ8YgLJnEAacx434BDPTVSoxt3RkkM3YdLIDs2BUSiUOyXYd/ceePWqpSHY1K25tJJEsjNm/DS2E+AuqYcgr8fywy+nTzcfrm+vHm6v757XjpP0xvd2FuL5zzdf1v10f3v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0eNq9XctuHUeS/ZWG1qaR74cXs5kfmP2gMaCka5sYiuTwYbTR8L/PleRulqSKrHNOWHcnieKJyKjMjMh4/vPN29uX08Pjzd3zm5/++ebm3f3d05uf/vufb55ufrm7vv34b8+/P5ze/PTm5vn04c0Pb+6uP3z827v78w//+OHNzd370z/e/BT/+OHwVx5ur5+eb95dvb1+3Pxm+uPvP7w53T3fPN+cPlP+9Jff/+fu5cPb0+MZ+t8AP59//+r58fru6eH+8fnq7en2+Yz+cP90/t37u490z3hXMZUf6w9vfj//Zow/1jOl9zePp3ef/0v5yOdXBJKDQEAIZJpA5VZQHASgFdTXj3jzcLp6vr/65fH+5e79HvZHxA3zO2hNQ4M47QR2aEecDg0N4nSyHy2QHy0GBwVo30X6bAbybMbkoIBJ6fV0nv7x8Hh6erp6eri9eX4+/3D35PwJniHw4rhbEkShOs4+RuHL47oLmX7cimUPpB+D5EOQcQwSDkHmMUg8AknhECSOQ5B4DDIPQdIxSDsEyccg/RCkHIOUQ5B6DFIPQY53bDzcsel4x8bDHZuG4wqGTmfyqBHoDsvBcQVjFDxqBJJSTt9c8mctfnr8rM2Ry7h8Q+aHf1u5dw8vz2/2qH5l+EEkq4/k8SHcLKru79rMmHuba7sYcE2Dq1+vv+2BMwbfRjt8A572wF+P79v7m9t9i2Bz0e8vfyIgdQ1SAgKSDkCiZngX6A0CKKJwtPNKdtxmGJvFQaFCFKrjNsMoNAcFTErde192+/K6f3k2bq8yXBemRnMyF8jrAtv+Dq6vBxUwxYPN+959VF8P8M3d0+nReKNsrMYGve4TwfMGHOM5M+CDBC8MeCfBKwPeSPCGfcpCfsrO8FxJngcDXkjwiQkkcwJpzHncgEM8N1GhGndHSw7dhEkjOzQHRqFQ7pRg39174NWrloZgU7fm0koSyc6Y8dPYToC7pB6CvB7Ld7+ePty8u769eri9vnteO07SN763sxDPf775tO6n+9u |
NewerOlder