Skip to content

Instantly share code, notes, and snippets.

2020-06-17T12:39:07+02:00 info layer=rpc Using API v1
2020-06-17T12:39:07+02:00 debug layer=rpc <- RPCServer.SetApiVersion(api.SetAPIVersionIn{"APIVersion":2})
2020-06-17T12:39:07+02:00 debug layer=rpc -> *api.SetAPIVersionOut{} error: ""
2020-06-17T12:39:07+02:00 debug layer=rpc <- RPCServer.IsMulticlient(rpc2.IsMulticlientIn{})
2020-06-17T12:39:07+02:00 debug layer=rpc -> *rpc2.IsMulticlientOut{"IsMulticlient":false} error: ""
2020-06-17T12:39:07+02:00 debug layer=rpc (async 3) <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-06-17T12:39:07+02:00 debug layer=rpc (async 3) -> rpc2.StateOut{"State":{"Running":false,"Recording":false,"currentThread":{"id":13328,"pc":140712840728989,"file":"","line":0,"goroutineID":0,"ReturnValues":null},"Threads":[{"id":13328,"pc":140712840728989,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
2020-06-17T12:39:07+02:00 debug layer=rpc <- RPCServer.Recorded(rpc2.RecordedIn{})
2020-06-17
2020-06-17T09:17:16+02:00 info layer=rpc Using API v1
2020-06-17T09:17:16+02:00 debug layer=rpc <- RPCServer.SetApiVersion(api.SetAPIVersionIn{"APIVersion":2})
2020-06-17T09:17:16+02:00 debug layer=rpc -> *api.SetAPIVersionOut{} error: ""
2020-06-17T09:17:16+02:00 debug layer=rpc <- RPCServer.IsMulticlient(rpc2.IsMulticlientIn{})
2020-06-17T09:17:16+02:00 debug layer=rpc -> *rpc2.IsMulticlientOut{"IsMulticlient":false} error: ""
2020-06-17T09:17:16+02:00 debug layer=rpc (async 3) <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-06-17T09:17:16+02:00 debug layer=rpc (async 3) -> rpc2.StateOut{"State":{"Running":false,"Recording":false,"currentThread":{"id":17652,"pc":140712840728989,"file":"","line":0,"goroutineID":0,"ReturnValues":null},"Threads":[{"id":17652,"pc":140712840728989,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
2020-06-17T09:17:16+02:00 debug layer=rpc <- RPCServer.Recorded(rpc2.RecordedIn{})
2020-06-17
API server listening at: [::]:50700
2020-06-09T15:09:36+02:00 debug layer=rpc API server pid = 7752
2020-06-09T15:09:36+02:00 debug layer=rpc (async 1) <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-06-09T15:09:36+02:00 debug layer=rpc (async 1) -> rpc2.StateOut{"State":{"Running":false,"Recording":false,"currentThread":{"id":14860,"pc":140722448175517,"file":"","line":0,"goroutineID":0,"ReturnValues":null},"Threads":[{"id":14860,"pc":140722448175517,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
2020-06-09T15:09:36+02:00 debug layer=rpc <- RPCServer.GetVersion(api.GetVersionIn{})
2020-06-09T15:09:36+02:00 debug layer=rpc -> *api.GetVersionOut{"DelveVersion":"Version: 1.4.1\nBuild: 708eadd5538edd222d8553b08b47c295474f38fa","APIVersion":2,"Backend":"native","TargetGoVersion":"Go cmd/compile go1.13.12","MinSupportedVersionOfGo":"1.12.0","MaxSupportedVersionOfGo":"1.14.0"} error: ""
2020-06-09T15:09:36+02:00 debug lay
API server listening at: 127.0.0.1:57267
2020-06-09T09:36:53+02:00 debug layer=rpc API server pid = 4252
2020-06-09T09:36:53+02:00 debug layer=rpc (async 1) <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-06-09T09:36:53+02:00 debug layer=rpc (async 1) -> rpc2.StateOut{"State":{"Running":false,"Recording":false,"currentThread":{"id":188317,"pc":31887360,"file":"","line":0,"goroutineID":0,"ReturnValues":null},"Threads":[{"id":188317,"pc":31887360,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
2020-06-09T09:36:53+02:00 debug layer=rpc <- RPCServer.GetVersion(api.GetVersionIn{})
2020-06-09T09:36:53+02:00 debug layer=rpc -> *api.GetVersionOut{"DelveVersion":"Version: 1.4.1\nBuild: 708eadd5538edd222d8553b08b47c295474f38fa","APIVersion":2,"Backend":"lldb","TargetGoVersion":"Go cmd/compile go1.14.4","MinSupportedVersionOfGo":"1.12.0","MaxSupportedVersionOfGo":"1.14.0"} error: ""
2020-06-09T09:36:53+02:00 debug layer=rpc <-
API server listening at: 127.0.0.1:34415
2020-05-13T12:15:04+03:00 debug layer=rpc API server pid = 8750
2020-05-13T12:15:04+03:00 debug layer=rpc (async 1) <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-05-13T12:15:04+03:00 debug layer=rpc (async 1) -> rpc2.StateOut{"State":{"Running":false,"Recording":false,"currentThread":{"id":8758,"pc":4574304,"file":"/opt/buildAgent/work/7116a2615eef197f/goland/intellij-go/src/test/testData/integration/go/src/runtime/rt0_linux_amd64.s","line":8,"function":{"name":"_rt0_amd64_linux","value":4574304,"type":0,"goType":0,"optimized":true},"goroutineID":0,"ReturnValues":null},"Threads":[{"id":8758,"pc":4574304,"file":"/opt/buildAgent/work/7116a2615eef197f/goland/intellij-go/src/test/testData/integration/go/src/runtime/rt0_linux_amd64.s","line":8,"function":{"name":"_rt0_amd64_linux","value":4574304,"type":0,"goType":0,"optimized":true},"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
2020-05-13T12:15:
@nd
nd / winAltSpace.cpp
Created May 5, 2020 05:37
Disable alt-space menu on windows
// disables alt-space for the whole system. To turn it off, kill its process.
// copy to C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup to run on startup
// to compile with visual studio:
// run
// "c:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat" x64
// cl hookMainMini.cpp user32.lib
#include <windows.h>
LRESULT CALLBACK LowLevelKeyboardProc(int code, WPARAM wParam, LPARAM lParam) {
API server listening at: [::]:2345
2020-03-23T17:03:15+01:00 debug layer=rpc API server pid = 5524
2020-03-23T17:03:23+01:00 debug layer=rpc <- RPCServer.State(rpc2.StateIn{"NonBlocking":true})
2020-03-23T17:03:23+01:00 debug layer=rpc -> *rpc2.StateOut{"State":{"Running":false,"currentThread":{"id":5795,"pc":4501313,"file":"/home/nd/go/go1.14/src/runtime/sys_linux_amd64.s","line":155,"function":{"name":"runtime.raise","value":4501312,"type":0,"goType":0,"optimized":true},"goroutineID":1,"ReturnValues":null},"currentGoroutine":{"id":1,"currentLoc":{"pc":4501313,"file":"/home/nd/go/go1.14/src/runtime/sys_linux_amd64.s","line":155,"function":{"name":"runtime.raise","value":4501312,"type":0,"goType":0,"optimized":true}},"userCurrentLoc":{"pc":4501313,"file":"/home/nd/go/go1.14/src/runtime/sys_linux_amd64.s","line":155,"function":{"name":"runtime.raise","value":4501312,"type":0,"goType":0,"optimized":true}},"goStatementLoc":{"pc":4486633,"file":"/home/nd/go/go1.14/src/runtime/asm_amd64.s","line":474,"function":{"
API server listening at: 127.0.0.1:44509
2020-03-13T11:25:44+01:00 debug layer=rpc API server pid = 24164
2020-03-13T11:25:44+01:00 debug layer=rpc <- RPCServer.GetVersion(api.GetVersionIn{})
2020-03-13T11:25:44+01:00 debug layer=rpc -> *api.GetVersionOut{"DelveVersion":"Version: 1.4.0\nBuild: 1a9e38aa0cbc2602bd1ced46903efa630e32b750","APIVersion":2,"Backend":"native","TargetGoVersion":"Go cmd/compile go1.14","MinSupportedVersionOfGo":"1.11.0","MaxSupportedVersionOfGo":"1.14.0"} error: ""
2020-03-13T11:25:44+01:00 debug layer=rpc <- RPCServer.CreateBreakpoint(rpc2.CreateBreakpointIn{"Breakpoint":{"id":0,"name":"","addr":0,"addrs":null,"file":"/tmp/unitTest_functionOneResult/calls/main.go","line":9,"Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":null,"totalHitCount":0}})
2020-03-13T11:25:44+01:00 debug layer=rpc -> *rpc2.CreateBreakpointOut{"Breakpoint":{"id":1,"name":"","addr":4586626,"addrs":[4586626],"file":"/tmp/unitTest_functionO
@nd
nd / run-ion.md
Last active March 1, 2020 19:33
Building, running and debugging ion code in CLion without cmake

Run/debug ion code in CLion with Ion plugin installed

  • Configure IONHOME/IONPATH at File | Settings | Languages & Frameworks | Ion
  • Add ion run configuration compiling ion to c:
    • create a new Ion configuration at Run | Edit Configurations...
    • set the packageName you want to build, add ion arguments -o out.c
    • running this configuration will produce navigatable compilation errors in the console
  • Create a custom build target called cc at File | Settings | Build, Execution, Deployment | Custom Build Targets: Press ... near Build and add a new External Command: Program: cc, Arguments: out.c -o out -g, Working Directory: $ProjectFileDir$ (this works on linux, windows needs something else)
  • Create an empty file called out in the project dir
API server listening at: 127.0.0.1:45149
2019-12-09T14:40:24+01:00 info layer=debugger launching process with args: [/tmp/___go_build_github_com_nd_hoverDebug]
2019-12-09T14:40:24+01:00 debug layer=rpc <- RPCServer.GetVersion(api.GetVersionIn{})
2019-12-09T14:40:24+01:00 debug layer=rpc -> *api.GetVersionOut{"DelveVersion":"Version: 1.3.2\nBuild: 3c266810757cd4abafe46fc6c9203aeeef5e15bf","APIVersion":2,"Backend":"native","TargetGoVersion":"Go cmd/compile go1.13.4","MinSupportedVersionOfGo":"1.11.0","MaxSupportedVersionOfGo":"1.13.0"} error: ""
2019-12-09T14:40:24+01:00 debug layer=rpc <- RPCServer.CreateBreakpoint(rpc2.CreateBreakpointIn{"Breakpoint":{"id":0,"name":"","addr":0,"addrs":null,"file":"/home/nd/go/src/github.com/nd/hoverDebug/main.go","line":13,"Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":null,"totalHitCount":0}})
2019-12-09T14:40:24+01:00 info layer=debugger created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x4a