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 / actionlist.vim
Last active February 8, 2025 07:24
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@zchee
zchee / nvram.c
Last active January 23, 2025 20:23
nvram list from xnu-8020.101.4 (`rg PE_parse_boot_ --sort=path --line-number --no-multiline --no-heading`)
bsd/crypto/entropy/entropy_sysctl.c:134: if (__improbable(PE_parse_boot_argn(ENTROPY_ANALYSIS_BOOTARG, &sample_count, sizeof(sample_count)))) {
bsd/dev/dtrace/dtrace.c:19237: if (!PE_parse_boot_argn("dtrace_kernel_symbol_mode", &dtrace_kernel_symbol_mode, sizeof (dtrace_kernel_symbol_mode))) {
bsd/dev/dtrace/dtrace.c:19348: if (!PE_parse_boot_argn("dtrace_dof_mode", &dtrace_dof_mode, sizeof (dtrace_dof_mode))) {
bsd/dev/dtrace/dtrace.c:19412: PE_parse_boot_argn("keepsyms", &keepsyms, sizeof(keepsyms));
bsd/dev/dtrace/fbt_blacklist.c:395: PE_parse_boot_argn("IgnoreFBTBlacklist", &ignore_fbt_blacklist, sizeof(ignore_fbt_blacklist));
bsd/dev/mem.c:89:#include <pexpert/pexpert.h> /* for PE_parse_boot_argn */
bsd/dev/mem.c:272: PE_parse_boot_argn("kmem", &kmem, sizeof(kmem))) {
bsd/dev/unix_startup.c:286: (void) PE_parse_boot_argn("ncl", &ncl, sizeof(ncl));
bsd/dev/unix_startup.c:287: (void) PE_parse_boot_argn("mbuf_pool", &mbuf_pool, sizeof(mbuf_pool));
bsd/kern/bsd_init.c:442: if (PE_parse_boot_argn("rd"
@zchee
zchee / cgo.md
Last active January 22, 2025 03:15
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.

Title : Revisiting Mac OS X Kernel Rootkits
Author : fG!
Date : April 18, 2014
|=----------------------------------------------------------------------------=|
|=----------------=[ Revisiting Mac OS X Kernel Rootkits ]=-------------------=|
|=----------------------------------------------------------------------------=|
|=------------------------=[ fG! <phrack@put.as> ]=---------------------------=|
|=----------------------------------------------------------------------------=|
@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
@zchee
zchee / Mac-all-animation-off.md
Last active October 29, 2024 07:53
Mac all animation off
defaults delete com.apple.dock expose-animation-duration
defaults write com.apple.dock springboard-show-duration -int 0
defaults write com.apple.dock springboard-hide-duration -int 0
killall Dock
defaults write com.apple.finder DisableAllAnimations -boolean true
killall Finder
defaults write -g NSInitialToolTipDelay -integer 100
defaults write -g NSWindowResizeTime 0.1
@zchee
zchee / tmux-default-bind-key.tmux
Last active August 30, 2024 17:39
Tmux default bind-key
bind-key C-b send-prefix
bind-key C-o rotate-window
bind-key C-q confirm-before kill-server
bind-key C-z suspend-client
bind-key Space next-layout
bind-key ! break-pane
bind-key # list-buffers
bind-key $ command-prompt -I #S "rename-session '%%'"
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window
# Commennt out caused by Gist syntax error
@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
@zchee
zchee / EndpointSecurityDemo.m
Created April 3, 2020 16:32 — forked from Omar-Ikram/EndpointSecurityDemo.m
A demo of using Apple's new EndpointSecurity framework - tested on macOS Catalina 10.15 (19A583)
//
// main.m
// EndpointSecurityDemo
//
// Created by Omar Ikram on 17/06/2019 - Catalina 10.15 Beta 1 (19A471t)
// Updated by Omar Ikram on 15/08/2019 - Catalina 10.15 Beta 5 (19A526h)
// Updated by Omar Ikram on 01/12/2019 - Catalina 10.15 (19A583)
//
#import <Foundation/Foundation.h>
@zchee
zchee / chrome-developer-setting.md
Created August 1, 2014 20:13
chrome developer setting(chrome:flags)
  • ソフトウェア レンダリング リストを上書き
  • タブ/ウィンドウを高速に閉じる機能を有効にする
  • ハイパーリンク監査の無効化
  • 自動入力の予測候補を表示
  • SPDY/4 を有効にする
  • デベロッパー ツールのテストを有効にする
  • スクロール予測を有効にする
  • HTTP 用のシンプル キャシュ。
  • Google クラウド デバイスを有効にする
  • シンプルな全画面表示を有効にする。