Skip to content

Instantly share code, notes, and snippets.

View krobelus's full-sized avatar

Johannes Altmanninger krobelus

  • Austria
  • 12:58 (UTC +02:00)
View GitHub Profile
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
@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;
#!/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"
@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
Starting a Gradle Daemon, 1 incompatible and 4 stopped Daemons could not be reused, use --status for details
> Task :buildSrc:compileKotlin
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/5.6.2/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
@krobelus
krobelus / gist:3fdc373f53ec5ebf24f205cfa38a8ec4
Created November 5, 2019 14:08
fish 3.0.2 clang asan ubsan backtrace
$ ninja fish && ./fish -c:
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_tree.h:1910:28: runtime error: upcast of address 0x000001fdde88 with insufficient space for an object of type 'std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<wchar_t>, const (anonymous namespace)::test_expressions::token_info_t> >'
0x000001fdde88: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 88 de fd 01 00 00 00 00 88 de fd 01
^
#0 0x6f4f24 (/fish-shell/build/fish+0x6f4f24)
#1 0x6f20d0 (/fish-shell/build/fish+0x6f20d0)
#2 0x6f160d (/fish-shell/build/fish+0x6f160d)
#3 0x6f048a (/fish-shell/build/fish+0x6f048a)
#4 0x63a055 (/fish-shell/build/fish+0x63a055)
n [42]: df[((df['solver'] == 'cms55-main-all4fixed@main') | (df['solver'] == 'cms55-main-all4fixed@autotune') | (df['solver'] == 'cms55-main-all4fixed@glubreak') | (df['solver'] == 'cms55-main-all4fixed@otherconf')) & df['rate-RAT-introductions'].notnu
...: ll()][['instance', 'solver', 'rate-RUP-introductions', 'rate-RAT-introductions']].sort_values('rate-RAT-introductions').tail(25)
Out[42]:
instance solver rate-RUP-introductions rate-RAT-introductions
1020 dist8.c cms55-main-all4fixed@otherconf 686393.0 0.0
1449 gto_p60c231 cms55-main-all4fixed@otherconf 1950886.0 0.0
1526 gto_p60c234 cms55-main-all4fixed@main
<?php
namespace namespace1;
class sometype {
}
?>
<?php
namespace namespace2;
class sometype {
}
define-command -override run-test-above-cursor %{
evaluate-commands -save-regs t %{
evaluate-commands -draft %{
execute-keys <a-l><a-/>test\s*"([^"]*)"<ret>
# Numbered registers are cleared liberally, so let's save this one.
set-register t %reg{1}
}
terminal sh -sc "echo run test %reg{t}"
}
}