Skip to content

Instantly share code, notes, and snippets.

For CentOS-6 the EPEL repository is carrying later NTFS packages. EPEL is also usable for CentOS-5. To install, after enabling the repo per the Repositories page:
yum install ntfs-3g
or if you prefer to leave EPEL disabled by default
yum --enablerepo epel install ntfs-3g
You may also want to
$ cd ~
$ mkdir .fonts
$ cd .fonts
$ wget -q http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
$ mkfontscale
$ mkfontdir
$ fc-cache -fv ~/.fonts
/home/foobar/.fonts: skipping, existing cache is valid: 1 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/foobar/.fontconfig: cleaning cache directory
Specify which repo to use in YUM
"--disablerepo=\* --enablerepo=repo1"
1. Configure Putty
In Settings -> Windows -> Colours there is a check box for "Allow terminal to use xterm 256-colour mode".
2. Let the app know
You'll probably have to change Settings -> Connection > Data > Terminal-type string to "xterm-256color".
Compiling C++ in Vim
:map <Leader>` :!mpic++ % -o test.o<cr> :!mpirun -np 1 test.o<cr>
http://forums.linuxmint.com/viewtopic.php?f=46&t=84964
let mapleader=","
inoremap jj <ESC>
nmap <tab> <c-w><c-w>
set nocompatible
filetype off
syntax on
set backspace=indent,eol,start
fixdel
set ignorecase
set smartcase
set hlsearch
set wrap
set textwidth=79
#!/usr/bin/env python
#Script redenumire subtitrari dupa numele fisierului video
# before https://dl.dropboxusercontent.com/u/69732156/before.png
# after https://dl.dropboxusercontent.com/u/69732156/after.png
import os
import re
VID_EXTS = ['.avi', '.mkv', '.mp4']
SUB_EXTS = ['.sub', '.srt']
files = os.listdir('.')
" No Vundle, just settings
set nocompatible
filetype on
syntax on
set backspace=indent,eol,start
fixdel
set ignorecase
set smartcase
set hlsearch
set wrap