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
" enable pathogen package manager
" filetype off
" call pathogen#infect()
" call pathogen#helptags()
" set nocompatible
" filetype off
" set rtp+=~/.vim/bundle/vundle/
" call vundle#rc()
" 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
@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
" 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 / .tmux.config
Created July 10, 2016 11:38
tmux: config
set -g mouse on
set -g default-terminal "screen-256color"
@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)

- go to http://invisible-island.net/xterm/ and download source file (e.g. http://invisible-island.net/datafiles/release/xterm.tar.gz)
- according to http://web.archive.org/web/20130125000058/http://www.frexx.de/xterm-256-notes/ configure with ./configure --enable-256-color
- summarized:
- ./configure --enable-256-color
- sudo make
- check colors with http://web.archive.org/web/20130125000058/http://www.frexx.de/xterm-256-notes/data/256colors2.pl, see http://web.archive.org/web/20130125000058/http://www.frexx.de/xterm-256-notes/
@dichotomies
dichotomies / ubuntu.md
Last active August 24, 2016 09:24
ubuntu

Setup

Saving settings before Reinstalling Ubuntu

dconf has its own mechanism to dump the configuration with the command dconf dump /.

  • better: before making changes in keyboard settings, start monitoring with dconf watch /, note changes and load them later

Remapping Alt & Control

@dichotomies
dichotomies / tf_gpu.md
Last active February 24, 2017 18:03
Installing TensorFlow with GPU support on Ubuntu 16.04

Install nvidia driver:

add-apt-repository ppa:graphics-drivers/ppa
apt-get update
apt-get install nvidia-<version number>

Verify installation by executing nvidia-settings -q NvidiaDriverVersion.

@dichotomies
dichotomies / bash-bindings.md
Created April 28, 2017 12:58
Bash Bindings