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
root@a7c3804e9aa4:/# ldd /usr/local/lib/python2.7/site-packages/mesos/executor/_executor.so | |
linux-vdso.so.1 => (0x00007ffc351ba000) | |
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd3ed9cd000) | |
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd3ed7c5000) | |
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd3ed4c0000) | |
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd3ed1ba000) | |
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd3ecfa4000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd3ecd85000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd3ec9c0000) | |
/lib64/ld-linux-x86-64.so.2 (0x0000555664a7e000) |
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
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <sys/mount.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
mkdir("/mnt/aufs", 0755); | |
mkdir("/tmp/br1", 0755); | |
mkdir("/tmp/br2", 0755); |
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
function timeit() ( | |
command=("$@") | |
exec 3>&1 | |
exec 4>&2 | |
time_output=$( ( TIMEFORMAT="%3R"; time "${command[@]}" 1>&3 2>&4; ) 2>&1 ) | |
echo "time output: $time_output" | |
) |
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 | |
regex="$1" | |
filename="$2" | |
sed --separate --in-place "/^${regex}\$/,+1{ | |
/^${regex}\$/d | |
/^\$/d | |
}" "$filename" |
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 | |
NUMTESTS=0 | |
histogram=() | |
while read num | |
do | |
((NUMTESTS++)) | |
((histogram[num]++)) | |
done |
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
<html> | |
<head> | |
<style> | |
.empty { | |
color: green; | |
} | |
.almostfull { | |
color: yellow; | |
} | |
.full { |
NewerOlder