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
# os : archlinux | |
# terminal : lilyterm | |
# font : ttf-dejavu | |
# source : https://gist.github.com/3feec5b12fcf07c6b64e | |
### export {{{ | |
PATH=$PATH:$HOME/.rvm/bin | |
HISTFILE=~/.zsh_history | |
HISTSIZE=20000 |
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
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂" | |
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁" | |
TMUX_POWERLINE_GIT="⭠" | |
set-option -g status-left "#(~/dotfiles/.tmux/tmux-powerline/powerline.sh left)#[bg=black]#[fg=white] #[fg=blue]#[bg=blue]#[fg=black]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#[bg=blue]#[fg=white] #(~/dotfiles/.tmux/tmux-powerline/segments/used-mem) %% | #(df -h | grep disk | sed 's/ /,/g' | cut -d , -f 4) #[bg=colour013]#[fg=blue]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#[bg=colour013]#[fg=colour021]#(~/gist/mplayer_tmux.sh)#[bg=black]#[fg=colour013]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" | |
set-option -g status-right "#[fg=black]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#(~/dotfiles/.tmux/tmux-powerline/powerline.sh right)" | |
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*) |
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
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
{ | |
"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
#!/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
#!/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/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/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` |