finger() {
user=$(echo "$1" | cut -f 1 -d '@')
host=$(echo "$1" | cut -f 2 -d '@')
- echo $user | nc "$host" 79 -N
+ echo $user | nc "$host" 79
}
#+end_src
**** Upload to ftp.armaanb.net
alias ln='ln -v'
alias grep='grep -in --color=auto'
alias mkdir='mkdir -pv'
- alias wget='wget -e robots=off'
alias lanex='java -jar ~/.local/share/lxc/lanxchange.jar'
alias vim=$EDITOR
alias emacs=$EDITOR
alias bc='bc -l'
#+end_src
** IPython
-*** General
-Symlink profile_default/ipython_config.py to profile_math/ipython_config.py
#+begin_src python :tangle ~/.ipython/profile_default/ipython_config.py
c.TerminalInteractiveShell.editing_mode = 'vi'
c.InteractiveShell.colors = 'linux'
c.TerminalInteractiveShell.confirm_exit = False
#+end_src
-*** Math
-#+begin_src python :tangle ~/.ipython/profile_math/startup.py
- from math import *
-
- def deg(x):
- return x * (180 / pi)
-
- def rad(x):
- return x * (pi / 180)
-
- def rad(x, unit):
- return (x * (pi / 180)) / unit
-
- def csc(x):
- return 1 / sin(x)
-
- def sec(x):
- return 1 / cos(x)
-
- def cot(x):
- return 1 / tan(x)
-#+end_src
** MPV
Make MPV play a little bit smoother.
#+begin_src conf :tangle ~/.config/mpv/mpv.conf
** Tmux
#+begin_src conf :tangle ~/.tmux.conf
set -g status off
+ set-window-option -g mode-keys vi
#+end_src