Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am caroman on github.
  • I am caroman (https://keybase.io/caroman) on keybase.
  • I have a public key ASCjiMhtcgLP8BfQHokTdV-El_xrFAgYzSAKiGHVTuiG2go

To claim this, I am signing this object:

@caroman
caroman / etc_vz_conf_vps.mount
Created June 30, 2015 12:40
Configuation file for Open Virtuozzo VM
#!/bin/bash
# If one of these files does not exist then something
# is really broken
[ -f /etc/vz/vz.conf ] || exit 1
[ -f $VE_CONFFILE ] || exit 1
# Source both files. Note the order is important.
. /etc/vz/vz.conf
. $VE_CONFFILE
SRC=/mnt/disk
DST=/mnt/disk
@caroman
caroman / create_vz_vm.sh
Last active August 29, 2015 14:23
Create Open Virtuozzo VM
#!/bin/bash
CTID="${1:?Missing name for VM}"
vzctl create $CTID \
--ostemplate centos-6-x86_64-devel \
--root /vz/root/$CTID \
--private /vz/private/$CTID \
--name $CTID && \
mkdir -p /vz/private/$CTID/mnt/disk
@caroman
caroman / my_vimrc.conf
Created June 30, 2015 12:34
My VIMRC conf file
execute pathogen#infect()
set encoding=utf8
set paste
set expandtab
set textwidth=80
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set backspace=indent,eol,start
@caroman
caroman / my_tmux.conf
Created June 30, 2015 12:33
My TMUX configuration file
# Make shift+arrows, ctrl+arrows etc work in Vim.
set -g xterm-keys on
# Highlight the active window in the status bar.
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-fg black
# Maximize pane, e.g. for copying.
#bind-key z resize-pane -Z