Contains:
- Patched Droid Sans Mono font with Powerline symbols and smooth box/line drawing characters for use in tmux (used fontforge to do this). Looks much nicer than the officially offered patched version of the font for powerline.
mkdir -p ~/.vim/colors && cd ~/.vim/colors && wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400
rm ~/.bashrc && ln -s ~/syncfiles/dotfiles/bashrc ~/.bashrc rm ~/.screenrc && ln -s ~/syncfiles/dotfiles/screenrc ~/.screenrc rm ~/.vimrc && ln -s ~/syncfiles/dotfiles/vimrc ~/.vimrc rm ~/.tmux.conf && ln -s ~/syncfiles/dotfiles/tmuxrc ~/.tmux.conf
mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle git clone https://github.com/scrooloose/nerdtree.git
syntastic (https://github.com/scrooloose/syntastic)
cd ~/.vim/bundle git clone https://github.com/scrooloose/syntastic.git
vim-commentary (https://github.com/tpope/vim-commentary)
cd ~/.vim/bundle git clone git://github.com/tpope/vim-commentary.git
vim-surround (https://github.com/tpope/vim-surround)
cd ~/.vim/bundle git clone git://github.com/tpope/vim-surround.git
supertab (git clone https://github.com/ervandew/supertab)
cd ~/.vim/bundle git clone https://github.com/ervandew/supertab
tagbar (git clone https://github.com/majutsushi/tagbar.git)
cd ~/.vim/bundle git clone https://github.com/majutsushi/tagbar.git
mkdir -p ~/.vim/plugin wget http://www.vim.org/scripts/download_script.php?src_id=13834 -O toggle.vim cp toggle.vim ~/.vim/plugin && rm toggle.vim
./install.sh
Contains various functions that would find common use in python. My hack for allowing importing of miscutils would be:
import sys, os
sys.path.append(os.getenv("HOME") + '~/syncfiles/pyfiles')
or we can modify the pythonpath variable for this (included in bashrc)
Takes piped input and prints out length, mean, sigma, sum, min, max. It can ignore non-numerical lines, but it only handles 1 column. If specified, the first argument of stats.py provides the column of piped input to use
seq 1 1 10 | stats
produces
length: 10
mean: 5.5
sigma: 3.0276503541
sum: 55.0
min: 1.0
max: 10.0
Additionally, if no numbers are detected, but a few text objects are found, it will output a frequency histogram of the text (column specification also works for this).
ls -l | stats 6
produces
Found 36 words, so histo will be made!
Apr | ********* (9)
Mar | ******** (8)
Feb | ***** (5)
Aug | **** (4)
May | **** (4)
Jun | ** (2)
Jul | ** (2)
Dec | ** (2)
Uses the dumb terminal setting in gnuplot to display a text histogram of the piped data. Currently does not allow column specification, so that must be provided before piping. This requires a single argument of the binwidth
# independently sampling a uniform random number 4 times and summing gives something
# close to a gaussian by the (beautiful) central limit theorem!
for i in {1..10000}; do echo $(( (RANDOM+RANDOM+RANDOM+RANDOM)/4 )); done | histo 2000
produces
1800 ++---------+-----------+----------+----------+-----------+---------++
+ + + "-" using (bin($1,binwidth)):(1.0) ****** +
1600 ++ ****** ++
| ****** * |
1400 ++ * * ***** ++
| ***** * * * |
1200 ++ * * * * * ++
| * * * * * |
1000 ++ * * * * ****** ++
| * * * * * * |
| ****** * * * * * |
800 ++ * * * * * * * ++
| * * * * * * ***** |
600 ++ ***** * * * * * * * ++
| * * * * * * * * * |
400 ++ * * * * * * * * ****** ++
| ****** * * * * * * * * * |
200 ++ * * * * * * * * * * * ++
+ ***** * * + * * * * * + * * ***** +
0 ++*******************************************************************
0 5000 10000 15000 20000 25000 30000
You can pipe into vim with "vim -" which reads from STDIN.
seq 1 100 | vim -
Cut and paste current command with <Ctrl-U>
and <Ctrl-Y>
, respectively. So if you type ls some/long/dir/path/
, but want to ls
the current directory, you can do <Ctrl-U>
to yank ls some/long/dir/path/
, do ls
, and then <Ctrl-Y>
to bring back ls some/long/dir/path/
.