This file contains 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
execve("/usr/local/bin/cargo", ["cargo", "update"], [/* 50 vars */]) = 0 | |
brk(0) = 0x7f5202a04000 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f520128a000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("tls/x86_64/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("tls/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("x86_64/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("/usr/local/lib/tls/x86_64/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat("/usr/local/lib/tls/x86_64", 0x7fffaad15c20) = -1 ENOENT (No such file or directory) |
This file contains 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
extern crate regex; | |
use std::borrow::Cow; | |
fn main() { | |
let input = "\x1b[34mfoo"; | |
assert_eq!(strip_formatting(input), "foo"); | |
} | |
// Regex 0.1 |
This file contains 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
#!/bin/bash | |
INTERVAL="1" # update interval in seconds | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 [network-interface] | |
echo | |
echo e.g. $0 eth0 | |
echo |