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
mkdir ~/.ec2 | |
cd ~/Current-tool-path | |
mv *.pem ~/.ec2 | |
cd ~/Current-tool-path/ec2-api-tools-version/ | |
mv * ~/.ec2 |
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
sudo nano ~/.bash_profile |
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
class CoverUploader < CarrierWave::Uploader::Base | |
include CarrierWave::RMagick | |
version :some_vesion do | |
process :do_resize | |
end | |
def do_resize | |
manipulate! do |img| |
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
git add ./ | |
git commit -m 'initial commit' | |
[master (root-commit) a4db9f9] initial commit | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
create mode 100644 index.php |
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
git aws.config | |
AWS Access Key: AccessKey | |
AWS Secret Key: SecretKey | |
AWS Region [default to us-east-1]: | |
AWS Host [default to git.elasticbeanstalk.us-east-1.amazonaws.com]: | |
AWS Elastic Beanstalk Application: HelloEvercode | |
AWS Elastic Beanstalk Environment: development |
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
Dock – auto hide | |
Desktop -> Screen Saver -> Hot corners | |
Lang - English, Format - Russian, Input Sources - Russian PC | |
Energy Saver | |
iCloud - find mac | |
Display - auto adjust brightness | |
http://www.iclarified.com/entry/index.php?enid=14356 | |
disable spotlight and hide icon | |
Enable apache in preferences |
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
I had a proglem with index_exact_words parameter in 2.0.8 | |
so i used an earlier version | |
also debian package strictly uses libmysqlclient16 but current stable is libmysqlclient18 | |
wget http://sphinxsearch.com/files/sphinx-2.0.7-release.tar.gz | |
tar xvfz sphinx-2.0.7-release.tar.gz | |
cd sphinx-2.0.7-release && ./configure --without-pgsql | |
make install |
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
iptables -I INPUT 1 -i lo -j ACCEPT | |
iptables -I OUTPUT 1 -o lo -j ACCEPT |
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
hidden = undefined | |
visibilityChange = undefined | |
if typeof document.hidden isnt "undefined" # Opera 12.10 and Firefox 18 and later support | |
hidden = "hidden" | |
visibilityChange = "visibilitychange" | |
else if typeof document.mozHidden isnt "undefined" | |
hidden = "mozHidden" | |
visibilityChange = "mozvisibilitychange" | |
else if typeof document.msHidden isnt "undefined" |
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
var cursor = db.getCollection('foo').find({}, {}); | |
while(cursor.hasNext()) { | |
print(tojson(cursor.next())) | |
} |