Skip to content

Instantly share code, notes, and snippets.

View yantonov's full-sized avatar

Yury Antonov yantonov

  • The Milky Way galaxy
View GitHub Profile
@yantonov
yantonov / xstartup
Created September 30, 2012 17:24
vnc4server config file for ubuntu 11.10, 12.04
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
@yantonov
yantonov / hg-tip-list.sh
Created September 7, 2012 12:38
Hg dir lister
#!/bin/bash
# Script show list of mercurial repositories with latest revision id
# first parameter - directory which contains multiple mercurial repositories
DEFAULT_MERCURIAL_REPO_DIR=`pwd`
LINE_SEPARATOR="-----"
# output line separator
function output_line_separator() {
@yantonov
yantonov / gist:3634231
Last active November 18, 2015 14:14
LR-task
(ns lr-task.ad-hoc
(:use clojure.test))
;;; http://dolzhenko.blogspot.com/2012/09/blog-post.html
;; Любая последовательность операторов длины в точности n позволяет
;; получить все числа [-2^n+1 2^n]
;; Индукция по n
@yantonov
yantonov / ocr-multipage-pdf.sh
Created March 22, 2012 05:27
OCR multipage pdf file
#!/bin/bash
#
# Optical character recognition for multipage pdf file
#
#
# Prerequisites:
# pdftk, cuneiform, imagemagick
#