Skip to content

Instantly share code, notes, and snippets.

View zzamboni's full-sized avatar
:octocat:

Diego Zamboni zzamboni

:octocat:
View GitHub Profile
@zzamboni
zzamboni / -
Created February 10, 2018 17:01
[~]─>
runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
github.com/elves/elvish/sys.DumpStack(0xc42004ad18, 0x1)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/sys/dumpstack.go:10 +0xa2
github.com/elves/elvish/program/shell.rescue()
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/shell.go:59 +0xd2
panic(0x14911c0, 0x17c5350)
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/panic.go:491 +0x283
runtime error: slice bounds out of range
goroutine 1 [running]:
github.com/elves/elvish/sys.DumpStack(0xc4208f8ea0, 0x1)
/private/tmp/elvish-20180125-63628-48655e/src/github.com/elves/elvish/sys/dumpstack.go:10 +0xa2
github.com/elves/elvish/program/shell.rescue()
/private/tmp/elvish-20180125-63628-48655e/src/github.com/elves/elvish/program/shell/shell.go:59 +0xd2
panic(0x1491720, 0x17c6c80)
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/panic.go:491 +0x283
github.com/elves/elvish/edit/ui.(*Buffer).TrimToLines(0xc420202aa0, 0xffffffffffffffff, 0x1)
/private/tmp/elvish-20180125-63628-48655e/src/github.com/elves/elvish/edit/ui/buffer.go:192 +0x1a3
@zzamboni
zzamboni / -
Created January 24, 2018 10:49
root@linuxvm:~# ps -aef | grep elvish
root 2797 2381 0 11:40 pts/17 00:00:00 ./elvish-linux-amd64
root 2800 2797 0 11:40 ? 00:00:00 /root/elvish-linux-amd64 -daemon -bin /root/elvish-linux-amd64 -db /root/.elvish/db -sock /tmp/elvish-0/sock -logprefix /tmp/elvish-0/daemon.log-
root 3257 2831 0 11:43 pts/0 00:00:00 grep --color=auto elvish
root@linuxvm:~# lsof -p 2797
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
elvish-li 2797 root cwd DIR 252,0 4096 1703937 /root
elvish-li 2797 root rtd DIR 252,0 4096 2 /
elvish-li 2797 root txt REG 252,0 12209766 1704044 /root/elvish-linux-amd64
elvish-li 2797 root 0u CHR 136,17 0t0 20 /dev/pts/17
@zzamboni
zzamboni / -
Created January 24, 2018 09:52
[~]─> otool -L /usr/local/bin/elvish
/usr/local/bin/elvish:
/nix/store/zmhbm5m3wwk2h3vr3l4hdzxzccqbc5xg-Libsystem-osx-10.11.6/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/zmhbm5m3wwk2h3vr3l4hdzxzccqbc5xg-Libsystem-osx-10.11.6/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/zmhbm5m3wwk2h3vr3l4hdzxzccqbc5xg-Libsystem-osx-10.11.6/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 0.0.0, current version 0.0.0)
/nix/store/zmhbm5m3wwk2h3vr3l4hdzxzccqbc5xg-Libsystem-osx-10.11.6/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
@zzamboni
zzamboni / -
Created December 19, 2017 15:45
Exception: variable $edit: not found
Traceback:
<builtin module>, line 2:
$b Ctrl-A $edit:&move-dot-sol
<builtin module>, line 1-27:
b=[k f]{ edit:insert:binding[$k] = $f } {
$b Ctrl-A $edit:&move-dot-sol
$b Ctrl-B $edit:&move-dot-left
$b Ctrl-D {
if (> (count $edit:current-command) 0) {
@zzamboni
zzamboni / -
Created November 22, 2017 16:25
[~/D/P/d/h/hammerspoon]─[⎇ master]─> make
mkdir -p build
echo "Building Hammerspoon in Debug configuration"
Building Hammerspoon in Debug configuration
rm -rf build/Hammerspoon.app
xcodebuild -workspace Hammerspoon.xcworkspace -scheme Hammerspoon -configuration Debug clean build > build/Debug-build.log
** BUILD FAILED **
The following build commands failed:
@zzamboni
zzamboni / -
Created November 22, 2017 14:20
6035 build/Debug-build.log
@zzamboni
zzamboni / -
Created October 17, 2017 12:56
installing ‘elvish-git’
these derivations will be built:
/nix/store/hfi4karap9v8c20igzy9vndy30k0bx0p-elvish-git.drv
building path(s) ‘/nix/store/bkyfpr1flv9cf3j9dr3q33bd7hyi7q76-elvish-git-bin’, ‘/nix/store/lq4g5pm7j9qrin9f9vsxf8fwijnyr4g8-elvish-git’
unpacking sources
unpacking source archive /nix/store/h373k33cgc3xvynkq5ajrc0b9l50y5cx-elvish
source root is elvish
patching sources
configuring
building
@zzamboni
zzamboni / -
Created October 16, 2017 20:58
--- CFEngine_Enterprise_vagrant_quickstart-3.10.2-1/Vagrantfile 2017-08-11 09:12:53.000000000 +0100
+++ CFEngine_Enterprise_vagrant_quickstart-3.10.2-1-fixed/Vagrantfile 2017-10-02 15:18:19.000000000 +0100
@@ -22,7 +22,7 @@
# bootstrap to the hub. Adjust this as desired.
if ENV['HOSTS']
- HOSTS=ENV['HOSTS']
+ hosts=ENV['HOSTS'].to_i
else
hosts=1
@zzamboni
zzamboni / -
Created September 20, 2017 06:08
these derivations will be built:
/nix/store/8a1n7h1k12h8amrwxr6p44shsiagpcr8-elvish-0.10.1.drv
building path(s) ‘/nix/store/39f41ffxfd0pkiba7q87vnms354vil71-elvish-0.10.1’, ‘/nix/store/jphygc1bq1f9yqmqk8h609fk5q4n75dh-elvish-0.10.1-bin’
unpacking sources
unpacking source archive /nix/store/va3v0qwd5s3r5diqs7vgs96bl72dw64b-elvish-0.10.1-src
source root is elvish-0.10.1-src
/nix/store/j1ly0zzpnzb8y8ry6k4vi4prk8vwq233-set-source-date-epoch-to-latest.sh: line 7: warning: command substitution: ignored null byte in input
patching sources
configuring
building