Skip to content

Instantly share code, notes, and snippets.

View zchee's full-sized avatar
😩
want to Go knowledge...

Koichi Shiraishi zchee

😩
want to Go knowledge...
View GitHub Profile
@zchee
zchee / gobuild.log
Created April 20, 2017 12:54
go build seems flakey?
../../../../../../../usr/local/go/src/runtime/panic.go|596| +0x95
../../../../../../../usr/local/go/src/runtime/signal_unix.go|513| +0x94
../../../../../../../usr/local/go/src/runtime/signal_unix.go|296| +0x46b
../../../../../../../usr/local/go/src/runtime/sys_darwin_amd64.s|270| +0x2d
../../../../../../../usr/local/go/src/runtime/asm_amd64.s|2347| +0x1 fp=0xc42004cfe8 sp=0xc42004cfe0
../../../../../../../usr/local/go/src/runtime/sema.go|56| +0x39
../../../../../../../usr/local/go/src/sync/waitgroup.go|131| +0x72
../../../../../../../usr/local/go/src/cmd/go/internal/work/build.go|1206| +0x320
../../../../../../../usr/local/go/src/cmd/go/internal/work/build.go|461| +0x2eb
../../../../../../../usr/local/go/src/cmd/go/main.go|133| +0x651
@zchee
zchee / hosts
Created February 23, 2017 13:56 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
codecov:
token: uuid # Your private repository token
url: "http" # for Codecov Enterprise customers
slug: "owner/repo" # for Codecov Enterprise customers
branch: master # override the default branch
bot: username # set user whom will be the consumer of oauth requests
ci: # Custom CI domains if Codecov does not identify them automatically
- ci.domain.com
- !provider # ignore these providers when checking if CI passed
# ex. You may test on Travis, Circle, and AppVeyor, but only need
default 22:27:23.514996 +0100 sudo ${USER} : TTY=ttys006 ; PWD=/Users/${USER} ; USER=root ; COMMAND=/usr/local/bin/xhyve -A -U 6C9B31CC-75A4-4AB7-9733-EB9ADD64658F -c 4 -m 2048M -l com1,autopty -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-net -s 3:0,ahci-cd,/Users/${USER}/.docker/machine/machines/xhyve/boot2docker.iso -s 4:0,ahci-hd,/dev/rdisk4 -f kexec,/Users/${USER}/.docker/machine/machines/xhyve/vmlinuz64,/Users/${USER}/.docker/machine/machines/xhyve/initrd.img,"loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10:LABEL=boot2docker-data base -M"
default 22:27:23.565011 +0100 authd Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client '/usr/libexec/InternetSharing' [30494] for authorization created by '/usr/libexec/InternetSharing' [30494] (2,0)
default 22:27:23.569252 +0100 symptomsd SCDynamicStore config_callback: k: State:/Network/Interface/en7/LinkQuality
default 22:27:23.496866 +0100 kernel bridge100: attached with 1 suspen
@zchee
zchee / cgroup.go
Created December 17, 2016 16:19 — forked from tsuzu/cgroup.go
Cgroup for Go
package cgroup
import "os"
import "syscall"
import "io/ioutil"
import "strconv"
import "os/exec"
import "strings"
import "errors"
@zchee
zchee / README.md
Last active December 15, 2016 15:50
LLVM toolchain flags
clang version 4.0.0 (http://llvm.org/git/clang.git f89729f1029a1ac266ea60184cd8bd7a6ee8631a)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
@zchee
zchee / edit.c.diff
Created December 9, 2016 15:09
avoid flashing of popupmnu patch for Neovim
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 9d07878f..436d628c 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -2406,7 +2406,6 @@ static void ins_compl_upd_pum(void)
if (compl_match_array != NULL) {
h = curwin->w_cline_height;
- update_screen(0);
if (h != curwin->w_cline_height)
default vesamenu.c32
timeout 600
display boot.msg
.
.
.
# omit other than label section and text
label rescue
@zchee
zchee / Extra Logging for My Great App.mobileconfig
Created October 22, 2016 17:58 — forked from zwaldowski/Extra Logging for My Great App.mobileconfig
Apple Configuration Profile for Logging in iOS 10 and macOS Sierra
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- iOS 10, macOS Sierra, and friends bring a new logging subsystem that's
supposed to scale from the kernel, up to frameworks, and up to apps. It defaults
to a more regimented, privacy-focused approach that large apps and complex
systems need.
It, along with Activity Tracing introduced in iOS 8 and macOS Yosemite and the
Console app in macOS Sierra, hope to help you graduate from caveman debugging to
@zchee
zchee / fmt.a
Created September 24, 2016 16:02
!<arch>
__.PKGDEF 0 0 0 644 1369 `
go object darwin amd64 go1.7.1 X:framepointer
build id "dd94a5cb243b9e207a57ea6772f94535a1f24c6c"
----
build id "dd94a5cb243b9e207a57ea6772f94535a1f24c6c"
$$B
cnv1fmt