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
# for Mercurial | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export PATH=$HOME/Projects/Scripts:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/bin/checker:/Developer/usr/bin:$PATH | |
source /usr/local/git/contrib/completion/git-completion.bash | |
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi | |
alias la="ls -a" |
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
.DS_Store | |
*.pbxuser | |
*.mode1v3 |
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
*.pbxproj -crlf -diff -merge |
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 'FileUtils' | |
Dir.glob('**/*.txt', File::FNM_CASEFOLD).each do |filename| | |
txtname = "../md/" + filename | |
puts filename + " -> " + txtname | |
FileUtils.mkdir_p(File.dirname(txtname)) | |
`html2text.py #{filename} > #{txtname}` | |
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
" Most stuff comes from all over the web. | |
" A lot of it is from http://items.sjbach.com/319/configuring-vim-right | |
" Make navigation more amenable to the long wrapping lines. | |
noremap k gk | |
noremap j gj | |
noremap <Up> gk | |
noremap <Down> gj | |
noremap \\ :nohlsearch<Return> |
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
# Решил узнать русские слова | |
Я уже забыл многие программистские термины на русском ([заметку про Lua][1] | |
пришлось писать на трех языках), а некоторые и совсем не знал, потому что 1) | |
CS отрасль в России находится в заднице, 2) спал на лекциях, 3) нет литературы | |
на русском языке, 4) не читаю программистскую литературу на русском языке, 5) | |
у программеров есть международный язык — код и комментарии в нем (на | |
английском). | |
Решил посмотреть термины, которых я не знал. Оказалось, что все словари |
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 | |
open -a /Applications/Emacs.app/Contents/MacOS/Emacs $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
" Most stuff comes from all over the web. | |
" A lot of it is from http://items.sjbach.com/319/configuring-vim-right | |
" Make navigation more amenable to the long wrapping lines. | |
noremap k gk | |
noremap j gj | |
noremap <Up> gk | |
noremap <Down> gj | |
"noremap \\ :nohlsearch<Return> |
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
# Aliases | |
alias la="ls -a" | |
alias ll="ls -l" | |
# Show git branch | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\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
X509 *cert; | |
char *zCert; | |
BIO *mem; | |
zCert = // get your certificate text buffer here (C string with certificate in PEM format) | |
mem = BIO_new(BIO_s_mem()); | |
BIO_puts(mem, zCert); | |
cert = PEM_read_bio_X509(mem, NULL, 0, NULL); | |
free(zCert); | |
BIO_free(mem); |