Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Forked from Skarsnik/result.txt
Last active August 16, 2017 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/4e97dcb0349ec4bac7846719b2b481a3 to your computer and use it in GitHub Desktop.
Save AlexDaniel/4e97dcb0349ec4bac7846719b2b481a3 to your computer and use it in GitHub Desktop.
use nqp;
my $html;
my $proc = run "wget", "-o", "/dev/null", "-O", "-", "https://www.fimfiction.net/bookshelf/149291/", :out;
$html = $proc.out.slurp-rest;
say "html is " ~ $html.chars ~ " chars";
nqp::force_gc;
say "/proc/$*PID/statm".IO.lines[0].split(/\s/)[5] * 4096 / 1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment