Skip to content

Instantly share code, notes, and snippets.

View kitsuyui's full-sized avatar
🦴
get injured

kitsuyui kitsuyui

🦴
get injured
  • Asia/Tokyo
View GitHub Profile
@kitsuyui
kitsuyui / file0.vim
Last active October 27, 2015 14:20
Vim の挿入モードでヒトを表示し、それ以外で(主に移動時に)イカを表示する ref: http://qiita.com/kitsuyui/items/73d5a012c2d10958f7ff
au VimEnter * set statusline=くコ:彡
au InsertEnter * set statusline=━┓🚶
au InsertLeave * set statusline=くコ:彡
set laststatus=2
@kitsuyui
kitsuyui / default.conf
Last active November 12, 2015 23:45
nginx の reuseport (SO_REUSEPORT) を試してみる。 docker-compose で ref: http://qiita.com/kitsuyui/items/9f266e3463a9813cf947
server {
server_name localhost;
listen 80 reuseport;
location / {
return 200 'OK';
}
}
@kitsuyui
kitsuyui / TerminalVim.scpt
Created October 5, 2015 15:37 — forked from brablc/TerminalVim.scpt
Open Vim in Terminal (iTerm) from Finder - copied from http://thepugautomatic.com/2015/02/open-in-iterm-vim-from-finder/ and updated to open in the current terminal
on run {input, parameters}
set cmd to "vim -c startinsert"
if input is not in {} then
set myPath to POSIX path of input
set cmd to "vim " & quote & myPath & quote
end if
tell application "iTerm"
activate
set myTerm to (current terminal)
@kitsuyui
kitsuyui / file0.txt
Last active March 27, 2016 08:55
自分も xhyve に挑戦した ref: http://qiita.com/kitsuyui/items/8e80216919ba25ceedef
$ brew install docker-machine-driver-xhyve
$ docker-machine create --driver=xhyve MACHINE_NAME
@kitsuyui
kitsuyui / reloadApps.sh
Last active September 13, 2015 03:48
OSX で Fluid のアプリを定期的に開いて Session の有効期限を更新する。 ref: http://qiita.com/kitsuyui/items/8d0181d26d5bc95f53f7
#!/usr/bin/env bash
./reloadSesion.js \
'Qiita' \
'AWS' \
'GitHub' \
'Bitbucket' \
'Ikaring'
@kitsuyui
kitsuyui / file0.js
Last active February 20, 2024 02:55
JXA で Google Chrome を Incognito Window (シークレットモード) で開き直す ref: http://qiita.com/kitsuyui/items/629aefb2fc9940dd45bf
#!/usr/bin/env osascript -l JavaScript
main();
function main() {
if (!isAppWaking('Google Chrome')) {
return;
}
restrictChromeIncognito();
}
$ brew install task vit
@kitsuyui
kitsuyui / file0.txt
Created August 17, 2015 16:17
OS X にてアプリケーションを Dock に表示させず、かつバックグラウンドで起動にする ref: http://qiita.com/kitsuyui/items/8949154636eb24118d5f
$ defaults write /Applications/Something.app/Contents/Info LSUIElement -bool true
$ defaults write /Applications/Something.app/Contents/Info LSBackgroundOnly -bool true
@kitsuyui
kitsuyui / file0.go
Last active August 29, 2015 14:27
Go でタイ文字やアラビア文字の個数をうまく数える ref: http://qiita.com/kitsuyui/items/3eb9eb3fcc7558990db0
package main
import (
"bufio"
"fmt"
"os"
"unicode"
"unicode/utf8"
)
@kitsuyui
kitsuyui / file0.txt
Last active September 26, 2015 07:26
plist ファイルの代わりに YAML を使ってみた ref: http://qiita.com/kitsuyui/items/d254d3f0ba84c6a5d04d
$ terminal-notifier -message 'はろー'