Skip to content

Instantly share code, notes, and snippets.

View krobelus's full-sized avatar

Johannes Altmanninger krobelus

  • Austria
  • 10:51 (UTC +02:00)
View GitHub Profile
declare-option str my_jump_buffers \*(grep|find|callers|callees|goto|symbols)\b.*\*
declare-option str my_make_buffers \*(cargo|make)\*
map global normal <c-n> %{:jump-next -matching %opt{my_jump_buffers}<ret>} -docstring 'next location'
map global normal <c-p> %{:jump-previous -matching %opt{my_jump_buffers}<ret>} -docstring 'previous location'
map global normal <c-e> %{:my-push-buffer<ret>} -docstring 'push buffer'
map global normal <c-r> %{:my-jump-buffer-pop %opt{my_jump_buffers}<ret>} -docstring 'pop jump buffer'
map global user j %{:buffer -matching %opt{my_jump_buffers}<ret>} -docstring "latest jump buffer"
map global user t %{:set-option global toolsclient %val{client}; try %{ buffer -matching "%opt{my_jump_buffers}|%opt{my_make_buffers}" }<ret>} -docstring 'set as toolsclient'
> diff --git a/Cargo.toml b/Cargo.toml
> index 1ca5a435ad0c..18b289c4a2cb 100644
> --- a/Cargo.toml
> +++ b/Cargo.toml
> @@ -45,7 +45,7 @@ printf-compat = { git = "https://github.com/fish-shell/printf-compat.git", branc
> autocxx = "0.23.1"
> bitflags = "2.4.0"
> cxx = "1.0"
> -errno = "0.2.8"
> +_errno = { package="errno", version = "0.2.8" }
This file has been truncated, but you can view the full file.
1667152937.394422 server started (3368713): version 3.3a, socket /tmp/tmux-1000/test, protocol 8
1667152937.394553 on Linux 5.19.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 20 Sep 2022 15:17:59 +0000
1667152937.394599 using libevent 2.1.12-stable (poll); ncurses 6.3
1667152937.395040 input_key_build: 0x10e003 (PasteStart) is \033[200~
1667152937.395063 input_key_build: 0x10e004 (PasteEnd) is \033[201~
1667152937.395077 input_key_build: 0x10e195 (F1) is \033OP
1667152937.395089 input_key_build: 0x10e196 (F2) is \033OQ
1667152937.395099 input_key_build: 0x10e197 (F3) is \033OR
1667152937.395110 input_key_build: 0x10e198 (F4) is \033OS
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}"
}
}
<?php
namespace namespace1;
class sometype {
}
?>
<?php
namespace namespace2;
class sometype {
}
@krobelus
krobelus / zathura.kak
Last active September 24, 2022 19:44
rudimentary synctex support for Kakoune
define-command -override zathura-open %{
nop %sh{
pdf=${kak_buffile%.tex}.pdf
zathura \
-x "sh -c 'echo evaluate-commands -verbatim -client ${kak_client} -- edit -- %{input} %{line} | kak -p ${kak_session}'" \
"$pdf" </dev/null >/dev/null 2>&1 &
}
}
define-command -override zathura-jump %{
nop %sh{
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
@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)
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 / 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