$ rails g model User
belongs_to
has_one
*Create projects with old rails* | |
mkdir my_app | |
gem install rails -v 3.0.3 | |
gem install railties -v 3.0.3 |
subl --help Sublime Text 2 Build 2217 | |
Usage: subl [arguments] [files] edit the given files | |
or: subl [arguments] [directories] open the given directories | |
or: subl [arguments] - edit stdin | |
Arguments: | |
--project <project>: Load the given project | |
--command <command>: Run the given command | |
-n or --new-window: Open a new window |
jQuery(".post a[href$='tumblr.com']") | |
$ - end | |
^ - start |
Please unplug the device. Get a temporary internet connection by ethernet, tethered or whatever means possible. Open a terminal and do: | |
sudo apt-get install git linux-headers-generic build-essential | |
git clone https://github.com/porjo/mt7601.git | |
cd mt7601/src | |
make | |
sudo make install | |
sudo mkdir -p /etc/Wireless/RT2870STA/ | |
sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/ | |
sudo depmod -a |
http://www.jqueryrain.com/?S4PWDcPG - Прилипает нет нормального API для нашей интеграции(не возможно выставить ширину высоту, лимитировать по зуму или убрать зум). | |
http://www.jqueryrain.com/?3Ht2BXj7 - Позволяет двигаться лишь влево вправо либо верх вниз и уменьшает фотографию. | |
http://codecanyon.net/item/image-crop/full_screen_preview/5348464?ref=jqueryrain - платный, адаптируется под размер фотографии. Уменьшает фотографии и двигается лишь вправо влево(без зума). Нельзя убрать зум или выставить ограничение. | |
http://cssdeck.com/labs/xnmcokhc - нету нормального API для нашей интеграции(лимит на зум и жутко тормозит) | |
http://www.jqueryrain.com/?BEAlLLl9 - двигается лишь верх вниз без зума, нет ограничения зума |
crontab -l - просмотр комманд крона | |
crontab -r - удалить все комманды крона | |
crontab -e - редактировать команды крона | |
Для каждого пользователя свой! | |
0 4 * * * /sbin/shutdown -r +5 | |
at the bottom. Explanation: | |
m h dom mon dow command | |
minute hour dayOfMonth Month dayOfWeek commandToRun |
http://tonyganch.com/git/reset/ | |
git reset: повернуть время вспять | |
Самые страшные команды в гите: git reset --hard и git push --force. | |
Особенно если выполнены случайно, друг за другом и в репозитории, с которым работает ещё пара десятков человек. | |
Как быстро исправить ситуацию? | |
Сделать git reset. | |
Волшебная формула |
A - after | |
B - before | |
C - same number of lines before and after | |
git blame Gemfile | grep -B10 -A10 BlaBla | |
git blame Gemfile | grep -C10 BlaBla | |
cat mylog | grep -A10 BlaBla |