Skip to content

Instantly share code, notes, and snippets.

.com-body {
font-size: 100%;
float: right;
width: 481px;
padding: 5px 10px;
background: #efefef;
border: 1px solid #dedede;
/*角丸なし*/
border-radius: 0px;
-webkit-border-radius: 0px;
# curl -O https://gist.githubusercontent.com/richmikan/3251311/raw/290c70b9a45b5eb66036b83de79bfe6bb0b3b054/parsrx.sh
function searchClipBoard() {
cclip=`plutil -convert xml1 ~/Library/Application\ Support/ClipMenu/clips.data -o - | parsrx.sh | grep '/plist/dict/array/string ' | sed '1,2d' | sed 's/\/plist\/dict\/array\/string//g' | peco`
echo $cclip | pbcopy
}
zle -N searchClipBoard
bindkey '^x^p' searchClipBoard
function gitinit(){
echo -n username:
read user
repo=`echo $PWD:t`
repo_j={\"name\":\"$repo\"}
url="https://github.com/"$user/$repo.git
curl -u $user https://api.github.com/user/repos -d $repo_j
case $? in
0)
rm -rf .git
#!/bin/zsh
dir=${0:a:h}"/vimrc"
mkdir -p $dir
# github, bitbucket {{{
dot=`curl http://vim-jp.org/reading-vimrc/json/archives.json | jq -r '.[] | .vimrc | .[] | .url' | sed -e 's/\/github.com/\/raw.githubusercontent.com/g' -e 's/\/blob//g' -e 's/\/gist.github.com/\/gist.githubusercontent.com\/thinca/g' -e 's/\/src/\/raw/g'`
line=`echo $dot | wc -l | tr -d ' '`
#!/bin/zsh
dir=${0:a:h}/dotfiles/
url=`curl https://raw.githubusercontent.com/syui/dotfiles/master/.dotfiles`
line=`echo $url | wc -l | tr -d ' '`
for ((i = $line ; i > 0 ; i-- ))
do
repo=`echo $url | awk "NR==$i"`
file=`echo $repo | cut -d '/' -f 4`
function au(){
case $1 in
-o|*)
SwitchAudioSource -a | grep output | cut -d '(' -f 1 | sed -e 's/ *$//' -e 's/$/"/g' -e 's/^/"/g' | peco | xargs -J % SwitchAudioSource -s %
;;
-i)
SwitchAudioSource -a | grep input | cut -d '(' -f 1 | sed -e 's/ *$//' -e 's/$/"/g' -e 's/^/"/g' | peco | xargs -J % SwitchAudioSource -t input -s %
;;
esac
#zle reset-prompt
let s:tweetvim_notfiy_update_interval_seconds = 2
let s:tweetvim_notfiy_timestamp = reltime()[0]
let s:tweetvim_notfiy_getline_1 = getline(3)
fu! s:tweetvim_notfiy()
let n_current = reltime()[0]
if n_current - s:tweetvim_notfiy_timestamp > s:tweetvim_notfiy_update_interval_seconds
if s:tweetvim_notfiy_getline_1 != getline(3)
let s:tweetvim_notfiy_getline_1 = getline(3)
call system("growlnotify -m '" . getline(3) . "'")
function cdup_dir() {
if [[ -z "$BUFFER" ]]; then
echo
cd ..
ls -aF
zle reset-prompt
else
zle self-insert 'k'
fi
}
sort $1 -uo $1
https://github.com/Cloudef/dotFiles
https://github.com/SpringMT/dotfiles
https://github.com/Thann/dotfiles
https://github.com/akishin/dotfiles
https://github.com/alwei/dotfiles
https://github.com/cehoffman/dotfiles
https://github.com/cocopon/dotfiles
https://github.com/deris/dotfiles
https://github.com/dmalikov/dotfiles
https://github.com/en30/dotfiles