This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Specify which repo to use in YUM | |
"--disablerepo=\* --enablerepo=repo1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling C++ in Vim | |
:map <Leader>` :!mpic++ % -o test.o<cr> :!mpirun -np 1 test.o<cr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://forums.linuxmint.com/viewtopic.php?f=46&t=84964 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader="," | |
inoremap jj <ESC> | |
nmap <tab> <c-w><c-w> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
syntax on | |
set backspace=indent,eol,start | |
fixdel | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set wrap | |
set textwidth=79 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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('.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" No Vundle, just settings | |
set nocompatible | |
filetype on | |
syntax on | |
set backspace=indent,eol,start | |
fixdel | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set wrap |