Skip to content

Instantly share code, notes, and snippets.

View myitcv's full-sized avatar

Paul Jolly myitcv

View GitHub Profile
@myitcv
myitcv / output.md
Last active April 9, 2017 12:33
Output from dep go tool example
$ go list -json github.com/pkg/errors
can't load package: package github.com/pkg/errors: cannot find package "github.com/pkg/errors" in any of:
        /home/myitcv/gos/src/github.com/pkg/errors (from $GOROOT)
        /tmp/tmp.YRDnF4mfJG/src/github.com/pkg/errors (from $GOPATH)
$ go test github.com/pkg/errors
can't load package: package github.com/pkg/errors: cannot find package "github.com/pkg/errors" in any of:
        /home/myitcv/gos/src/github.com/pkg/errors (from $GOROOT)
        /tmp/tmp.YRDnF4mfJG/src/github.com/pkg/errors (from $GOPATH)
$ go vet github.com/pkg/errors
@myitcv
myitcv / build_output
Created August 19, 2016 08:56
sort inlining
$ go build -gcflags=-m
./main.go:11: can inline dataLess
./main.go:25: can inline dataSwap
./main.go:164: inlining call to dataLess
./main.go:167: inlining call to dataLess
./main.go:170: inlining call to dataSwap
./main.go:187: inlining call to dataSwap
./main.go:198: inlining call to dataLess
./main.go:199: inlining call to dataSwap
./main.go:202: inlining call to dataLess
@myitcv
myitcv / 01 info threads output
Last active May 25, 2016 19:52
8.8.1 9b9e320 hang/no progress
(gdb) info threads
Id Target Id Frame
6 Thread 0x7efc38d53700 (LWP 3644) "ruby-timer-thr" 0x00007efc3838012d in poll () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7efc2d7f1700 (LWP 4278) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
4 Thread 0x7efc2d5ef700 (LWP 6629) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2d5ee500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7efc2e119700 (LWP 7156) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2e118500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
2 Thread 0x7efc2d6f0700 (LWP 13665) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2d6ef500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at
@myitcv
myitcv / bt_01.txt
Created May 3, 2016 11:39
TypeScript strictNullCheck loop analysis
#0 tsc.js:18416:17
#1 tsc.js:18363:36
#2 tsc.js:18391:28
#3 tsc.js:18356:36
#4 tsc.js:18421:25
#5 tsc.js:18363:36
#6 tsc.js:18391:28
#7 tsc.js:18356:36
#8 tsc.js:18421:25
#9 tsc.js:18363:36
@myitcv
myitcv / 02 info threads output
Created April 25, 2016 13:58
Gitlab frozen mailroom diagnostics part 1 - when mailroom has hung v02
6 Thread 0x7f0c11dee700 (LWP 19571) "ruby-timer-thr" 0x00007f0c1141b12d in poll () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7f0c068cc700 (LWP 19584) "ruby" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
4 Thread 0x7f0c065c9700 (LWP 18956) "ruby" 0x00007f0c1141b1ef in __GI_ppoll (fds=fds@entry=0x7f0c065c8500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7f0c067cb700 (LWP 21862) "ruby" 0x00007f0c1141b1ef in __GI_ppoll (fds=fds@entry=0x7f0c067ca500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
2 Thread 0x7f0c069cd700 (LWP 21864) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1 Thread 0x7f0c11de3740 (LWP 19569) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysde
@myitcv
myitcv / 02 info threads output
Last active April 17, 2016 07:37
Gitlab frozen mailroom diagnostics part 2 - working process
(gdb) info threads
Id Target Id Frame
5 Thread 0x7f6e086cc700 (LWP 26063) "ruby-timer-thr" 0x00007f6e07cf912d in poll () at ../sysdeps/unix/syscall-template.S:81
4 Thread 0x7f6dfd2db700 (LWP 26074) "ruby" 0x00007f6e07cf91ef in __GI_ppoll (fds=fds@entry=0x7f6dfd2da500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7f6dfd1da700 (LWP 26076) "ruby" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
2 Thread 0x7f6dfd0d9700 (LWP 26218) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1 Thread 0x7f6e086c1740 (LWP 26057) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
@myitcv
myitcv / 00 command sequece
Last active April 17, 2016 07:37
Gitlab frozen mailroom diagnostics part 1 - when mailroom has hung
# Step 01
# per https://gitlab.com/gitlab-org/gitlab-ce/issues/13357#note_4857268
gdb
attach <PID>
redirect_stdout
eval("puts Kernel.caller.join(\"\\n\")")
# Step 02
gdb
attach <PID>
System.register(["dagre-d3"], function(exports_1) {
function Run() {
console.log("Running browser");
}
exports_1("Run", Run);
return {
setters:[
function (_1) {}],
execute: function() {
}
diff --git a/test/files/rules/align.test.ts b/test/files/rules/align.test.ts
index 220e6d9..acb8978 100644
--- a/test/files/rules/align.test.ts
+++ b/test/files/rules/align.test.ts
@@ -16,15 +16,13 @@ function invalidParametersAlignment3(a: number,
class C1 {
invalidParametersAlignment(a: number,
- b: number)
- {