This file contains hidden or 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
yum install gcc gcc-c++ | |
yum install autoconf automake make | |
yum install curl | |
yum install openssl-devel | |
wget http://nodejs.org/dist/v0.10.17/node-v0.10.17.tar.gz | |
tar zxvf node-v0.10.17.tar.gz | |
cd node-v0.10.17 | |
./configure | |
make CFLAGS+=-fno-builtin-memcpy CXXFLAGS+=-fno-builtin-memcpy V=1 | |
make install |
This file contains hidden or 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
grep -Ril -m1 "exportData" | xargs -L 1 -i cp {} /home/astrloger/1_part_RTK/export/ |
This file contains hidden or 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
Undo a commit and redo | |
$ git commit ... (1) | |
$ git reset --soft HEAD~1 (2) | |
$ edit (3) | |
$ git add .... (4) | |
$ git commit -c ORIG_HEAD (5) | |
This is what you want to undo | |
This is most often done when you remembered what you just committed is incomplete, or you misspelled your commit message, or both. Leaves working tree as it was before "reset". (The quotes may or may not be required in your shell) |
This file contains hidden or 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
patch | |
This lets you choose one path out of a status like selection. After choosing the path, it presents the diff between the index and the working tree file and asks you if you want to stage the change of each hunk. You can select one of the following options and type return: | |
y - stage this hunk | |
n - do not stage this hunk | |
q - quit; do not stage this hunk nor any of the remaining ones | |
a - stage this hunk and all later hunks in the file | |
d - do not stage this hunk nor any of the later hunks in the file | |
g - select a hunk to go to | |
/ - search for a hunk matching the given regex |
This file contains hidden or 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
http://habrahabr.ru/post/66931/ |
This file contains hidden or 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
openssl genrsa -out cloueda-key.pem 1024 | |
openssl req -new -key cloueda-key.pem -out certrequest.csr | |
--common name localhost | |
openssl x509 -req -in certrequest.csr -signkey cloueda-key.pem -out cloueda-cert.pem |
This file contains hidden or 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
rm -rf /etc/localtime | |
ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
date | |
--Thu May 14 10:13:03 MSD 2009 |
This file contains hidden or 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
env EDITOR=nano crontab -e |
This file contains hidden or 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
sudo add-apt-repository ppa:attente/modifier-only-input-switch | |
sudo apt-get update | |
sudo apt-get upgrade |
This file contains hidden or 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
awk '{printf("%s\\n",$0)} END {print ""}' 1.txt |