Skip to content

Instantly share code, notes, and snippets.

View krobelus's full-sized avatar

Johannes Altmanninger krobelus

  • Austria
  • 09:34 (UTC +02:00)
View GitHub Profile
@krobelus
krobelus / trace
Created March 6, 2019 21:03
im::Vector trace
push 13
remove 11
remove 11
push 9
remove 18
remove 18
push 7
remove 23
remove 23
push 7
#!/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"
@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) {
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;
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