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
# This will use the hosts iscsid | |
docker run -it --net=host --privileged -v /etc/localtime:/etc/localtime:ro \ | |
-v /lib/modules:/lib/modules:ro \ | |
-v /run:/run:shared -v /dev:/dev \ | |
-v /etc/iscsi:/etc/iscsi \ | |
-v /home/jgriffith/vol:/Mount:shared ubuntu bash | |
# shared declaration on Mount matters! | |
# You can also put iscsid in another container, share the socket |
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
#!/usr/bin/env perl | |
use strict; | |
# Get all the letters from stdin: | |
my $input = do {local $/; <>}; | |
$input =~ s/[^a-zA-Z]//g; | |
# All 3+ letter English words, longest to shortest: | |
my @long = grep {length > 2} | |
sort {length $b <=> length $a} |