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
2016-03-24 13:47:57,573 INFO (deoplete.logging) --- Deoplete Log Start ---
2016-03-24 13:47:57,574 INFO (deoplete.logging) NVIM v0.1.3-377-g4ab9b46, Python 3.6.0, neovim client 0.1.5
2016-03-24 13:48:00,617 DEBUG (deoplete.core) Loaded Source: buffer (/Users/zchee/src/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/sources/buffer.py)
2016-03-24 13:48:00,621 DEBUG (deoplete.core) Loaded Source: dictionary (/Users/zchee/src/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/sources/dictionary.py)
2016-03-24 13:48:00,624 DEBUG (deoplete.core) Loaded Source: file (/Users/zchee/src/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/sources/file.py)
2016-03-24 13:48:00,627 DEBUG (deoplete.core) Loaded Source: member (/Users/zchee/src/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/sources/member.py)
2016-03-24 13:48:00,630 DEBUG (deoplete.core) Loaded Source: omni (/Users/zchee/src/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/sources/omni.py)
2016-03-
osx-10_11:~ vagrant$ /Library/Developer/CommandLineTools/usr/bin/clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
osx-10_11:~ vagrant$ echo | /Library/Developer/CommandLineTools/usr/bin/clang -v -E -x c -
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.9 -v -dwarf-column-info -resource-dir /Library/Developer/CommandLineTools/usr/bin/../lib/clang/7.0.2 -fdebug-compilation-dir /Users/vagrant -ferror-limit 19 -fmessage-length 116 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-
:call deoplete#util#enable_logging('DEBUG', '/Users/zchee/.log/nvim/python/deoplete.log')
:message
[deoplete] Logging to /Users/zchee/.log/nvim/python/deoplete.log
@zchee
zchee / compile_commands.json
Last active July 25, 2024 00:27
Sample compile_commands.json for neovim
[
{
"directory": "/Users/zchee/src/github.com/neovim/neovim/build",
"command": "/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DHAVE_CONFIG_H -DINCLUDE_GENERATED_DECLARATIONS -Iconfig -I../src -isystem ../.deps/usr/include -isystem ../.deps/usr/include/luajit-2.0 -isystem /usr/local/opt/gettext/include -Isrc/nvim/auto -Iinclude -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Ofast -flto -march=native -DDISABLE_LOG -fPIC -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DMAKE_LIB -o src/nvim/CMakeFiles/libnvim.dir/__/__/config/auto/pathdef.c.o -c /Users/zchee/src/github.com/neovim/neovim/build/config/auto/pathdef.c",
"file": "/Users/zchee/src/github.com/neovim/neovim/build/config/auto/pathdef.c"
},
{
"directory": "/Users/zchee/src/github.com/neovim/neovim/build",
"command": "/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc
2016-03-14 18:46:38,950 [DEBUG @ msgpack_stream.py:send:32] 33418 - sent [0, 1, b'vim_get_api_info', ()]
2016-03-14 18:46:38,951 [DEBUG @ base.py:send:113] 33418 - Sending 'b'\x94\x00\x01\xc4\x10vim_get_api_info\x90''
2016-03-14 18:46:38,951 [DEBUG @ base.py:run:138] 33418 - Entering event loop
2016-03-14 18:46:38,951 [DEBUG @ msgpack_stream.py:_on_data:53] 33418 - waiting for message...
2016-03-14 18:46:38,951 [DEBUG @ msgpack_stream.py:_on_data:55] 33418 - received message: [2, b'/Users/zchee/src/github.com/zchee/treachery.nvim/rplugin/python3/treachery:autocmd:BufWinEnter:*', []]
2016-03-14 18:46:38,951 [DEBUG @ async_session.py:_on_notification:102] 33418 - received notification: b'/Users/zchee/src/github.com/zchee/treachery.nvim/rplugin/python3/treachery:autocmd:BufWinEnter:*', []
2016-03-14 18:46:38,951 [DEBUG @ msgpack_stream.py:_on_data:53] 33418 - waiting for message...
2016-03-14 18:46:38,951 [DEBUG @ msgpack_stream.py:_on_data:58] 33418 - unpacker needs more data...
2016-03-14 18:46:38,962 [DEBUG @
@zchee
zchee / CCacheMacNinja.md
Created March 14, 2016 00:50 — forked from jjgod/CCacheMacNinja.md
Using ccache for Mac builds

Introduction

ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.

In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.

Installation

To install ccache with [homebrew](http://mxcl.

@zchee
zchee / README.md
Created March 13, 2016 18:02 — forked from balupton/README.md
Installing ChromiumOS

Install ChromiumOS

  1. Get Chromium OS from one of the following places
    1. Download the vanilla build (old but stable): http://chromeos.hexxeh.net/
      1. NOTE: Password is facepunch
    2. Download the nightly build (sync doesn't work): http://download-chromiumos.appspot.com/
      1. NOTE: If you want developer mode, you must change _base_ in the download URL to _test_ as the base image does not have developer tools enabled
      2. NOTE: Password is unknown, instructions for working around this are provided later
      3. NOTE: I could not get syncing working with this build, perhaps due to no API KEYS being provided???
  2. NOTE: I could not move past the welcome screen on the 64bit build due to no network being found (32bit worked)
@zchee
zchee / zhostrc
Created March 13, 2016 04:55 — forked from nhooyr/zhostrc
function vid2Gif {
if [[ $# != 3 ]]; then
print "too many or too less arguments"
return
fi
ffmpeg -y -i $1.mov -vf fps=10,scale=${2}:${3}:flags=lanczos,palettegen palette_$1.png
ffmpeg -i $1.mov -i palette_$1.png -filter_complex "fps=10,scale=${2}:${3}:flags=lanczos[x];[x][1:v]paletteuse" -f gif - | gifsicle --optimize=3 > $1.gif
}
@zchee
zchee / mac-profiling.md
Created March 7, 2016 08:12 — forked from loderunner/01-mac-profiling.md
Profiling an application in Mac OS X

Profiling an application in Mac OS X

Finding which process to profile

If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.

The CPU pane shows how processes are affecting CPU (processor) activity:

@zchee
zchee / udp-loader.go
Created March 6, 2016 23:41 — forked from jtblin/udp-loader.go
UDP server performance optimisation
package main
import (
"crypto/rand"
"flag"
"log"
mrand "math/rand"
"net"
"os"
"os/signal"