This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
sfile=${0:a:t} | |
case $1 in | |
-[hH]|-[hH]elp) | |
echo " | |
引数1...ファイル名 | |
引数2...キーワード1 | |
引数3...キーワード2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"filename : airautofile.vim | |
"" ファイルを保存して終了するときに、ファイル名を指定行に記述する | |
""" setting | |
"" 有効、無効の設定 (on=1, {off=0, null}) | |
" let g:air_autofile_cmd = 1 | |
"" 行の指定 (nullの場合は最終行) | |
" let g:air_autofile_line = 1 | |
"" 先頭につける文章を指定する (def : " ) | |
" let g:air_autofile_commnet = '"filename : ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir=$HOME/Music | |
cha=`cat $dir/info.txt | grep FILE | tail -n 1 | cut -d '/' -f 6` | |
# cha=`cat $dir/info.txt | grep FILE | tail -n 1 | xargs basename` | |
sum=`echo $cha | wc -c | tr -d ' '` | |
for (( i = 1; i < $sum; i=`expr $i + 4` )) | |
do | |
a=`expr $i + 4` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sea="ID_FILENAME" | |
dir1=$HOME/Music | |
rm -rf $dir1/*/.DS_Store >/dev/null 2>&1 | |
dir2="$dir1/"`zsh -c "ls -A $dir1 | peco"` | |
pla=`mplayer -novideo -speed 2 -af scaletempo,volnorm -loop 20 -quiet -msglevel all=0 -identify $dir2/* > $dir1/info.txt` | |
#cat $dir1/info.txt | grep FILE | tail -n 1 | xargs basename | cut -b 1-6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
dir=$HOME/Music | |
cha=`cat $dir/info.txt | grep FILE | tail -n 1 | cut -d '/' -f 6` | |
# cha=`cat $dir/info.txt | grep FILE | tail -n 1 | xargs basename` | |
sum=`echo $cha | wc -c | tr -d ' '` | |
fil=$dir/info.s | |
if [ -e $fil ]; then | |
i=`cat $fil | tail -n 1` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
dir=$HOME/.command_stream | |
fil=$dir/tmp.txt | |
com=$1 | |
mkdir -p $dir | |
case $1 in | |
-h) | |
echo -e " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"MacBook7,1": | |
"macbook (13-inch, Mid 2010)", | |
"MacBook 6,1": | |
"MacBook (13-inch, Late 2009)", | |
"MacBook5,2":[ | |
"MacBook (13-inch, Early 2009)", | |
"MacBook (13-inch, Mid 2009)"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://gist.githubusercontent.com/syui/f757c3f860659201c897/raw/macbook-model.json | jq .\"`system_profiler SPHardwareDataType | grep "Model Iden" | tr -d ' ' | cut -d : -f 2`\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var parser = require('xml2json'); | |
//var argv = require('node-argv') | |
var re = /(?:\.([^.]+))?$/; | |
var typ = process.argv[2] | |
var ext = re.exec(typ)[1]; | |
if (ext === "xml") { | |
var fs = require('fs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### prompt {{{ | |
case $OSTYPE in | |
linux*) | |
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀" | |
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="▶" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="❯" | |
TMUX_POWERLINE_GIT="ⓦ" | |
;; | |
darwin*) |