1971 shaares
6 private links
6 private links
procdump()
(
cat /proc/$1/maps | grep -Fv ".so" | grep " 0 " | awk '{print $1}' | ( IFS="-"
while read a b; do
dd if=/proc/$1/mem bs=$( getconf PAGESIZE ) iflag=skip_bytes,count_bytes \
skip=$(( 0x$a )) count=$(( 0x$b - 0x$a )) of="$1mem$a.bin"
done )
)
Gc like langage with rust
fn get_size(a: HeavyThing) -> usize {
let size = a.size();
std::thread::spawn(move || drop(a));
size
}
Select and tool using machine learning
How to select multiple async stream in rust (search Basic stream selecting.)
Passthrough gpu with kvm