This file contains 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
#!/bin/bash | |
# | |
# Optical character recognition for multipage pdf file | |
# | |
# | |
# Prerequisites: | |
# pdftk, cuneiform, imagemagick | |
# |
This file contains 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
(ns lr-task.ad-hoc | |
(:use clojure.test)) | |
;;; http://dolzhenko.blogspot.com/2012/09/blog-post.html | |
;; Любая последовательность операторов длины в точности n позволяет | |
;; получить все числа [-2^n+1 2^n] | |
;; Индукция по n |
This file contains 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
#!/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() { |
This file contains 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
#!/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 & |
This file contains 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
#/bin/bash | |
# script creates git repo from hg (mercurial) repo using fast-export tool | |
tempDirectory="tmp-"`date +%s` | |
function get_working_directory_path() { | |
echo "/tmp/$tempDirectory" | |
} |
This file contains 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
##/bin/bash | |
# find process id by name | |
# returns pid | |
if [ $# -lt 1 ]; then | |
echo "Usage: pidbyname name" | |
exit 0 | |
else | |
EXEC_NAME=$1 |
This file contains 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
(ns bitrev | |
(use clojure.test)) | |
;; http://dolzhenko.blogspot.ru/2012/12/blog-post.html | |
;; reverse binary representation of 8 bit number | |
;; reverse binary representation of 16 bit number | |
(defn reverse-8bit | |
"reverse 8 bit number" | |
[n] |
This file contains 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
(ns seq-test) | |
(ns seq-test | |
(:require [clojure.test :as test])) | |
;; clarification 1 | |
;; be carefull this functions guarantees one-by-one fetching for client of the dechunk function, | |
;; but NOT guarantees that source seq will not be evaluated forward by chunks | |
;; given tests demonstrates it |
This file contains 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
#!/bin/bash | |
# Tomcat start/stop script | |
export JAVA_HOME=~/Development/bin/jdk | |
export CATALINA_HOME=~/Development/bin/tomcat | |
export JAVA_OPTS="-Dorg.apache.catalina.session.StandardSession.ACTIVITY_CHECK=true -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true" | |
CONTEXT_CONF_DIR=`dirname $0`/app-context | |
function out_action() { | |
echo "--------------------------------" |
This file contains 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
#/bin/bash | |
function start { | |
$MONGODB_HOME/bin/mongod --config=$MONGODB_HOME/bin/mongo.conf | |
} | |
case $1 in | |
start) | |
start | |
;; |
OlderNewer