Skip to content

Instantly share code, notes, and snippets.

View dichotomies's full-sized avatar

Vadim Tschernezki dichotomies

  • University of Oxford
  • United Kingdom
View GitHub Profile
@dichotomies
dichotomies / unix_tricks_facts.md
Created July 12, 2016 18:48
Unix: tricks and facts

Pipe: combine wget and gunzip

wget -O - http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95/tsp/pcb442.tsp.gz | gunzip > x.tsp

-O - means: Outputfile "None", write to console (such that gunzip gets name)

@dichotomies
dichotomies / .tmux.config
Created July 10, 2016 11:38
tmux: config
set -g mouse on
set -g default-terminal "screen-256color"
" set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@dichotomies
dichotomies / .vimrc
Last active March 14, 2018 18:26
VIM settings for OS X and other Unix derivatives
" use clipboard of either osx or other unix derivatives
if has("unix")
let s:uname = system("uname")
set clipboard=unnamedplus " for ubuntu, ...
if s:uname == "Darwin\n"
" Do Mac stuff here
set clipboard=unnamed " need other clipboard
endif
endif
" Vim syntax file
" Language: Python
" Maintainer: Zvezdan Petkovic <zpetkovic@acm.org>
" Last Change: 2015 Sep 15
" Credits: Neil Schemenauer <nas@python.ca>
" Dmitry Vasiliev
"
" This version is a major rewrite by Zvezdan Petkovic.
"
" - introduced highlighting of doctests
" enable pathogen package manager
" filetype off
" call pathogen#infect()
" call pathogen#helptags()
" set nocompatible
" filetype off
" set rtp+=~/.vim/bundle/vundle/
" call vundle#rc()