Skip to content

Instantly share code, notes, and snippets.

View woowee's full-sized avatar

woowee woowee

  • tokyo
View GitHub Profile
#!/bin/sh
set -e
currentdir=$(dirname $0)
cd ${currentdir}
source ./firstofall_functions.sh
## Dotfiles
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function(){
$('.entry-content p a').not('[name^="f"]').attr({'target':'_blank'});
$('.entry-content blockquote .via a').attr({'target':'_blank'});
});
</script>
@woowee
woowee / brew.sh
Last active August 29, 2015 14:00
#!/bin/bash -u
set -e
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
dir_current=$(dirname $0)
cd ${dir_current}
source ${dir_current}/functions.sh
@woowee
woowee / vichrome.vim
Created May 21, 2014 09:52
Key Mapping / Alias Setting on Vichrome
### Sample Settings
# aliases
# in this example you can open extensions page by the command ':ext'
# and Chrome's option page by the command ':option'
alias ext TabOpenNew chrome://extensions/
alias option TabOpenNew chrome://settings/browser
alias downloads TabOpenNew chrome://downloads
alias history TabOpenNew chrome://history
@woowee
woowee / vichrome.vim
Last active August 29, 2015 14:01
Key Mapping / Alias Setting on Vichrome. **Append only**
#
# mymapping
#
# for us keyboard
nmap ; :GoCommandMode
# google
nmap o s
nmap O S
# pinboard
nmap p :Open javascript:q%3Dlocation.href%3Bif(document.getSelection)%7Bd%3Ddocument.getSelection()%3B%7Delse%7Bd%3D%27%27%3B%7D%3Bp%3Ddocument.title%3Bvoid(open(%27https://pinboard.in/add%3Fshowtags%3Dyes%26url%3D%27%2BencodeURIComponent(q)%2B%27%26description%3D%27%2BencodeURIComponent(d)%2B%27%26title%3D%27%2BencodeURIComponent(p),%27Pinboard%27,%27toolbar%3Dno,scrollbars%3Dyes,width%3D750,height%3D700%27))%3B
#!/bin/bash -u
set -e
# arg check
modeis=0
msg_err="usage: $0 [--silent|\s]"
if [ $# -eq 1 ]; then
if [ $1 = "--silent" -o $1 = "-s" ]; then
modeis=1
@woowee
woowee / japaneseim_yen.sh
Created October 26, 2014 10:57
JapaneseIM
defaults write com.apple.inputmethod.Kotoeri 'JIMPrefCharacterForYenKey' -int 1; killall JapaneseIM
@woowee
woowee / com.googlecode.iterm2.plist
Created October 31, 2014 23:15
com.googlecode.iterm2.plist (Transparency=.6,Window Type=2,Blur Radius=2)
<?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">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
<?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">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw
NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2
"
" >unite
"
" 変数
let g:unite_source_history_yank_enable = 1
let g:unite_enable_start_insert = 1
let g:unite_enable_ignore_case = 1
let g:unite_enable_smart_case = 1
let g:neomru#follow_links = 1