Skip to content

Instantly share code, notes, and snippets.

View shchemelevev's full-sized avatar

Yevgenii Shchemelev shchemelevev

View GitHub Profile
@shchemelevev
shchemelevev / gist:3810567
Last active October 11, 2015 05:28
shell: gem install backup (log, Ubuntu 10.04.4 LTS)
install ruby 1.9.3 using this manual https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm
sudo gem install nokogiri --no-rdoc --no-ri
sudo gem install mail -v '~> 2.4.0' --no-rdoc --no-ri
sudo gem install fog -v '~> 1.4.0' --no-rdoc --no-ri
sudo gem install backup --no-rdoc --no-ri
@shchemelevev
shchemelevev / cool Django logger settings
Last active December 16, 2015 20:08
Now you can use logger.info('text') format to log something. I think this is best practice. This logger will format output for nice reading.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(name)s %(funcName)s %(lineno)s: %(message)s'
},
},
'handlers': {
'console': {