Skip to content

Instantly share code, notes, and snippets.

@otzoran
otzoran / vimming
Created October 15, 2013 19:19
vim memo
# copy from vim to XCLIPBOARD, using reg '+' (or '*')
"+yG
@otzoran
otzoran / xui
Created October 15, 2013 14:16
from "tweaks..", Ubuntu UI move min/max/close win buttons to the right works for Unity && gnome-fallback/gnome-panel
gconftool-2 --set "/apps/metacity/general/button_layout" --type string ":minimize,maximize,close"
@otzoran
otzoran / bashrc
Last active December 25, 2015 11:09
aliases - bash
alias ll='ls -lah --color=tty --time-style=long'
alias grep='grep --color=tty'
alias mydate='date "+%F %H:%M"'
alias olsblk='lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,TYPE '
alias dv='dirs -v'
alias po='popd '
alias pu='pushd '
alias s='git status '
alias xr='xrandr --verbose --output VGA1 --primary --mode 1920x1080'
@otzoran
otzoran / msfonts_wrapper.sh
Created October 10, 2013 17:08
Add Microsoft Fonts (Including Tahoma) on Ubuntu; tested on 12.x, 13.04
#!/bin/bash
# Install Microsoft Fonts (Including Tahoma) on Ubuntu
# Source: http://ubuntuforums.org/archive/index.php/t-1459709.html
# Ubuntu Forums > The Ubuntu Forum Community > Ubuntu Specialised Discussions > Art & Design > [SOLVED] How to Install Tahoma TTF
# by trentscott, April 22nd, 2010, 12:51 AM :: Simplified by me
prog=$(basename $0)
if [ $(id -u) != 0 ]; then