Skip to content

Instantly share code, notes, and snippets.

@jayapal
jayapal / production.rb
Created January 8, 2014 05:37
/home/git/gitlab/config/environments/production.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => 'smtp.gmail.comi',
:port => 587,
:domain => 'gmail.com',
:authentication => 'plain',
:user_name => 'me@mydomain.com',
@jayapal
jayapal / sidekiq.log
Created January 8, 2014 05:45
sidekiq.log
2014-01-08T05:44:14Z 3693 TID-or6l07zzk Sidekiq::Extensions::DelayedMailer JID-704fb01422a2abecbafe3b45 INFO: start
2014-01-08T05:44:14Z 3693 TID-or6l07zzk Sidekiq::Extensions::DelayedMailer JID-704fb01422a2abecbafe3b45 INFO: fail: 0.08 sec
2014-01-08T05:44:14Z 3693 TID-or6l07zzk WARN: {"retry"=>true, "queue"=>"default", "class"=>"Sidekiq::Extensions::DelayedMailer", "args"=>["---\n- !ruby/class 'Notify'\n- :new_user_email\n- - 10\n - 4bHpeAdw\n"], "jid"=>"704fb01422a2abecbafe3b45", "enqueued_at"=>1389159854.8778667, "error_message"=>"getaddrinfo: Name or service not known", "error_class"=>"SocketError", "failed_at"=>"2014-01-08T05:09:40Z", "retry_count"=>6, "retried_at"=>2014-01-08 05:44:14 UTC}
2014-01-08T05:44:14Z 3693 TID-or6l07zzk WARN: getaddrinfo: Name or service not known
2014-01-08T05:44:14Z 3693 TID-or6l07zzk WARN: /usr/local/lib/ruby/2.0.0/net/smtp.rb:540:in `initialize'
/usr/local/lib/ruby/2.0.0/net/smtp.rb:540:in `open'
/usr/local/lib/ruby/2.0.0/net/smtp.rb:540:in `tcp_socket'
/usr/local/lib/rub
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/review/review/34/delete/
Django Version: 1.6.4
Python Version: 2.7.3
Installed Applications:
('djangocms_admin_style',
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'MyDBNAME', # Or path to database file if using sqlite3.
'USER': 'MyUSER', # Not used with sqlite3.
'PASSWORD': 'MyPass', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
import smtplib
fromaddr = 'user_me@gmail.com'
toaddrs = 'user_you@gmail.com'
msg = 'Why,Oh why!'
username = 'user_me@gmail.com'
password = 'pwd'
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.login(username,password)
@jayapal
jayapal / my.kml
Last active August 29, 2015 14:05
<?xml version="1.0" encoding="utf-8"?>
<?access-control allow="*"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Style id="orWiki">
<PolyStyle>
<color>7f0000ff</color>
</PolyStyle>
<LabelStyle>
<scale>0.8</scale>
<?xml version="1.0" encoding="utf-8"?>
<?access-control allow="*"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Style id="orWiki">
<LabelStyle>
<scale>0.8</scale>
</LabelStyle>
<IconStyle>
<scale>0.5</scale>
@jayapal
jayapal / f.kml
Last active August 29, 2015 14:05
<?xml version="1.0" encoding="utf-8"?>
<?access-control allow="*"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Style id="railStyle">
<PolyStyle>
<fillColor>cccc00b0</fillColor>
<outline>0</outline>
</PolyStyle>
</Style>
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="s1">
<LineStyle>
<color>7f0000ff</color>
<width>4</width>
</LineStyle>
<PolyStyle>
<color>7f0000ff</color>
@jayapal
jayapal / new.kml
Last active August 29, 2015 14:05
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="s1">
<LineStyle>
<color>7f0000ff</color>
<width>4</width>
</LineStyle>
<PolyStyle>
<color>7f0000ff</color>