Skip to content

Instantly share code, notes, and snippets.

View dvorka's full-sized avatar
💭
Enjoying work w/ smart, humble and inspiring colleagues and friends.

Martin Dvorak dvorka

💭
Enjoying work w/ smart, humble and inspiring colleagues and friends.
View GitHub Profile
@dvorka
dvorka / bibtex.png
Created June 22, 2018 07:48 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@dvorka
dvorka / build-python-2.7.9.sh
Created March 20, 2018 08:33
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
#!/bin/sh
#
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
#
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \
@dvorka
dvorka / build-python-2.7.9.sh
Created March 20, 2018 08:33 — forked from Jimmy-Xu/build-python-2.7.9.sh
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
#!/bin/sh
#
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
#
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \
@dvorka
dvorka / gist:ea7dee095ed65d0a1713
Created July 18, 2014 04:05
Sound volume up on Ubuntu
# bind this command to a shortcut
amixer -D pulse sset Master 5%-
@dvorka
dvorka / keepass-to-front.sh
Created July 18, 2014 04:03
Bring KeePassX window to front in Gnome
#!/bin/bash
wmctrl -lp | while read identity desktop_number PID window_title; do
echo $window_title
if [[ $string == *KeePassX* ]]
then
echo "It's there!";
fi
@dvorka
dvorka / gist:ea2c568e2d81746fd20c
Created May 7, 2014 13:56
Emacs to work with system clipboard @ Ubuntu
I had the same problem. I added this to my .emacs file:
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
Now Ctrl-C and Ctrl-v between Emacs and other applications work fine.