This file contains hidden or 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
push 13 | |
remove 11 | |
remove 11 | |
push 9 | |
remove 18 | |
remove 18 | |
push 7 | |
remove 23 | |
remove 23 | |
push 7 |
This file contains hidden or 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 bash | |
ping_cancelled=false | |
until ping -c1 "$1" &>/dev/null; do :; done & | |
trap "kill $!; ping_cancelled=true" SIGINT | |
wait $! | |
trap - SIGINT | |
echo "Done pinging, cancelled=$ping_cancelled" |
This file contains hidden or 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
@Override | |
public void completed(Integer result, FileNameSizePair file) { | |
System.out.println("read from file " + result); | |
if(result == -1) | |
return; | |
boolean done = total == file.getFileSize(); | |
if (result != 0) { |
This file contains hidden or 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
package prsw3; | |
import java.io.IOException; | |
import java.nio.file.FileSystems; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY; |
This file contains hidden or 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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x25 | |
CPU Stepping: 0x5 | |
CPU Type: 0x0 | |
Speed: 2133 Mhz | |
2 logical processors | |
2 physical processors | |
HyperThreading: Unsupported |
NewerOlder