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
syntax on | |
set number | |
set smarttab | |
set paste | |
filetype plugin on | |
set shiftwidth=4 | |
colorscheme desert | |
set fileencodings=utf-8,cp1250,iso8859-2 |
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
# enviroment variables | |
export EDITOR='mate -w' | |
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer" | |
export CLICOLOR=1 | |
# Python | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Custom bash prompt via kirsle.net/wizards/ps1.html |
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
#!/usr/bin/ruby | |
require "benchmark" | |
DEBUG = false | |
# kontrola zda je mocnina dvojky | |
def is_pow?(x) | |
true if (x != 0) && ((x & (x - 1)) == 0); | |
end |
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 | |
FROM=iso-8859-2 | |
TO=UTF-8 | |
FILES=("desky.tex" "fitthesis.cls" "literatura.bib" "obsah.tex" "prilohy.tex" "projekt.tex") | |
for i in "${FILES[@]}" | |
do | |
iconv -f $FROM -t $TO $i > tmp | |
sed 's/latin2/utf8/g' tmp > tmp2 |
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
#!/usr/bin/ruby | |
# | |
# simple Brute-Force recursive algorithm for decrypting crypt function | |
# try whatever you want in crypt function | |
# | |
# enjoy | |
require 'zlib' | |
def decrypt(x) |
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
require "net/imap" | |
require "mail" | |
=begin | |
SAMPLE zpravy | |
Subject: =?utf-8?Q?Kv=C4=9Btin=C3=A1=C5=99stv=C3=AD_D=C4=9Bl=C5=88=C3=A1k?= | |
From: =?utf-8?Q?Ondra_Bene=C5=A1?= <steve.jobs@gmail.com> | |
X-Universally-Unique-Identifier: DDC4E35E-7D70-4E97-8167-011B204229D3 |
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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -- *.mbtiles' --prune-empty -- --all | |
rm -fr .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
git gc --aggressive --prune=now |
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
conf=${CONFIGURATION} | |
if [ $conf != "Debug" ] | |
then | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist) | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist | |
fi |
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
[core] | |
excludesfile = ~/.gitignore | |
quotepath = false | |
[diff] | |
external = ~/.opendiff-git.sh | |
[merge] | |
tool = opendiff | |
[user] | |
name = Ondrej Benes | |
email = <my-email> |
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
Sub Color() | |
For Each rCell In Selection | |
rCell.Interior.Color = RGB(CInt("&H" & Mid(rCell.Value, 2, 2)), CInt("&H" & Mid(rCell.Value, 4, 2)), CInt("&H" & Mid(rCell.Value, 6, 2))) | |
Next rCell | |
End Sub |
OlderNewer