Skip to content

Instantly share code, notes, and snippets.

@vvv
vvv / gdb-m0ut-bt.sh
Last active August 29, 2015 14:25
gdb-m0ut-bt
#!/bin/sh
set -eu
M0UT=ut/.libs/lt-m0ut
[ -x $M0UT ] || { echo "$M0UT: No such file" >&2; exit 1; }
CORE=$(sudo ls -t $(sudo find /var/mero -type f -name core.\*) | head -1)
sudo gdb -nx -c $CORE $M0UT <<EOF
set pagination off
@vvv
vvv / pdf-2-to-1
Last active August 29, 2015 14:06
Convert PDF 2 sides per page to 1 side per page
#!/bin/bash
## SEE http://superuser.com/questions/54054/convert-pdf-2-sides-per-page-to-1-side-per-page
##
## Find out the size of a page (MediaBox). If you use Mac OS X's
## Preview app then select `Tools -> Show Inspector' in the menu or
## type `Cmd-I'.
MEDIA_BOX=612x792
INFILE=TYH.pdf
@vvv
vvv / cv-vvv_101124.txt
Created November 23, 2010 22:37
cv-vvv_101124
[ This file was last modified on 24 November 2010. ]
Valery V. Vorotyntsev
Kiev, Ukraine
Phone: +380-<fifty>196-786<five>
Email/IM: [email protected]
WWW: http://github.com/vvv http://vorotylo.livejournal.com/
#!/bin/sh
filter() {
grep o= | grep -Eo '>\+?\w+ \w+<' | tr -d '<+>' \
| sed -r 's/^(Олег|Виктория) (\w+)/\2 \1/'
}
cd /tmp
[ -f 61461.html ] || wget -q http://vorotylo.livejournal.com/61461.html
echo 'Нгуен Лонг'