Skip to content

Instantly share code, notes, and snippets.

View lemenkov's full-sized avatar

Peter Lemenkov lemenkov

View GitHub Profile
git log|grep ^Author|sort|uniq|sed s,^Author\:\ ,,g | awk -F " <" '{print $1 " = " $1 " <" $1 ">"}'
flashfs save && flashfs commit && flashfs enable
for i in 0 1 2 3 4 5 6 ; do nvram set vts_ipaddr_x${i}=192.168.1.40 ; done
nvram commit
cu -l /dev/ttyUSB0 -s 115200
for i in `cat usr_share_java.txt`; do yum info $i | grep ^Name | awk -F ":" '{print $2}' | sed s,^\ ,,g ; done
sudo yum install python-mutagen
find -iname '*.mp3' -print0 | xargs -0 mid3iconv -eCP1251 --remove-v1
cpp -dM - < /dev/null | LANG=C sort
0 pcmu/8000
0 PCMU/8000
0 PCMU/8000/1
2 G721/8000
2 G721/8000/1
2 G726-32/8000
2 G726-32/8000/1
3 gsm/8000
3 GSM/8000
3 gsm/8000/1
git archive --format=tar --prefix=myproject-1.0.0/ "1.0.0" | gzip > myproject-1.0.0.tar.gz
@lemenkov
lemenkov / gist:1674929
Created January 25, 2012 05:31
Properly download from GitHub with wget or curl
wget --content-disposition https://github.com/joyent/node/tarball/v0.7.1
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@lemenkov
lemenkov / gist:1802493
Created February 11, 2012 17:10
How to build with macports on macppc
CFLAGS="$CFLAGS -I/opt/local/include" CXXFLAGS="$CXXFLAGS -I/opt/local/include" LDFLAGS="$LDFLAGS -L/opt/local/lib" ./configure