Skip to content

Instantly share code, notes, and snippets.

View zain's full-sized avatar
💭
Livin' the dream.

Zain Memon zain

💭
Livin' the dream.
View GitHub Profile
@zain
zain / day2.go
Created December 2, 2019 15:30
AoC 2019 day 2
package main
import (
"fmt"
"io/ioutil"
"log"
"strconv"
"strings"
)

Keybase proof

I hereby claim:

  • I am zain on github.
  • I am zainy (https://keybase.io/zainy) on keybase.
  • I have a public key ASAUxApkN251og2Y1Gvm1L7MVLJjD9ux0-_GRuHAaO4rbAo

To claim this, I am signing this object:

2017-05-10T21:19:44.141432+00:00 heroku[router]: at=info method=GET path="/k_dc5_0laIBFDHWUWYuCPp7pH_g=/760x480/https://listing-photos-production.s3.amazonaws.com/uploads/visit_item-2043908/1352764-F0BJM5DEX14.jpg" host=gothumb.opendoor.com request_id=a5a4c1b3-2b0e-433b-9339-0ba42d60a13e fwd="54.227.88.19,172.68.65.145" dyno=web.1 connect=0ms service=919ms status=200 bytes=34946 protocol=https
2017-05-10T21:19:44.392423+00:00 heroku[router]: at=info method=GET path="/MKwDlvry8BeYobtmEqRJrphyxXY=/204x164/https://listing-photos-production.s3.amazonaws.com/uploads/lead-235306/1352873-H5WGVQrn4GQ.jpg" host=gothumb.opendoor.com request_id=dd5d1af4-145e-4a8b-b0d6-e0f6176a9245 fwd="54.227.88.19,162.158.78.71" dyno=web.1 connect=0ms service=409ms status=200 bytes=4181 protocol=https
2017-05-10T21:19:44.237137+00:00 heroku[router]: at=info method=GET path="/5hGw0a_cfTwxeFs5ch5tV2ZUe18=/204x164/https://listing-photos-production.s3.amazonaws.com/uploads/visit_item-2046347/1353829-N8Dpsgjk4Pk.jpg" host=gothumb.opendoor.c
2017-05-10T21:05:28.405559+00:00 heroku[router]: at=info method=GET path="/SpHnCX81G95VlZKLoTsmhcIocdQ=/30x30/https://mls-crawler-results-production.s3.amazonaws.com/residential_photos/1863576/glvar_127751915_002.jpg" host=gothumb.opendoor.com request_id=3ac5b565-bbf8-41db-97ef-673fa23f96a7 fwd="50.233.132.146,108.162.237.129" dyno=web.1 connect=0ms service=381ms status=200 bytes=770 protocol=https
2017-05-10T21:05:28.253367+00:00 app[web.1]: getting stored result: 404: "The specified key does not exist."
2017-05-10T21:05:28.253377+00:00 app[web.1]: generating /204x164/https:/listing-photos-production.s3.amazonaws.com/uploads/renovation-4705/1353812-EylmKkzR6OI.jpg
2017-05-10T21:05:28.260288+00:00 app[web.1]: GET /FUZgltMpPMdBexmmVrAhP4jrKa0=/107x0/https://listing-photos-production.s3.amazonaws.com/uploads/renovation-4134/1353388-ZnruhZmXPkU.jpg
2017-05-10T21:05:28.285111+00:00 app[web.1]: getting stored result: 404: "The specified key does not exist."
2017-05-10T21:05:28.285119+00:00 app[web.1]: generating /
2017-05-10T20:46:10.758115+00:00 heroku[router]: at=info method=GET path="/-t4ibl8xlrVU2o9Z4-SV_77leK8=/200x200/https://listing-photos-production.s3.amazonaws.com/uploads/human-670/136604-x9jN3rhYVOA.png" host=gothumb.opendoor.com request_id=0110dcb5-a547-440e-bd1a-60715cc3e556 fwd="207.237.36.228,162.158.62.152" dyno=web.1 connect=1ms service=552ms status=200 bytes=4469 protocol=https
2017-05-10T20:46:10.799173+00:00 heroku[router]: at=info method=GET path="/vMkgHqofYdl8repCV9RfpUvnKs0=/204x164/https://listing-photos-production.s3.amazonaws.com/uploads/inspection_repair_item-138037/1352503-_YRBm6xb51A.jpg" host=gothumb.opendoor.com request_id=c2c145cf-1f2b-41dc-b3e3-74198fd21d5b fwd="54.81.192.239,162.158.78.32" dyno=web.1 connect=1ms service=764ms status=200 bytes=6871 protocol=https
2017-05-10T20:46:10.786075+00:00 heroku[router]: at=info method=GET path="/tzR39Mb7ykjXMqq-Bt6BM1jX_vQ=/50x50/https://listing-photos-production.s3.amazonaws.com/uploads/inspection_repair_item-138039/1352505-nijpkTKp1Qc.jpg" hos
diff --git a/inventory/migrations/0001_initial.py b/inventory/migrations/0001_initial.py
index 690d9dd..34c87a3 100644
--- a/inventory/migrations/0001_initial.py
+++ b/inventory/migrations/0001_initial.py
@@ -27,7 +27,7 @@ class Migration(migrations.Migration):
('photos', djorm_pgarray.fields.TextArrayField(dbtype='text', default=[], max_length=32)),
('seo_title', models.CharField(db_column='seotitle', max_length=255)),
('title', models.CharField(max_length=255)),
- ('address_id', models.IntegerField(blank=True, null=True, db_column='addressid')),
+ ('address', models.ForeignKey(blank=True, null=True, to='locations.Address', db_column='addressid')),
diff --git a/inventory/migrations/0001_initial.py b/inventory/migrations/0001_initial.py
index 690d9dd..34c87a3 100644
--- a/inventory/migrations/0001_initial.py
+++ b/inventory/migrations/0001_initial.py
@@ -27,7 +27,7 @@ class Migration(migrations.Migration):
('photos', djorm_pgarray.fields.TextArrayField(dbtype='text', default=[], max_length=32)),
('seo_title', models.CharField(db_column='seotitle', max_length=255)),
('title', models.CharField(max_length=255)),
- ('address_id', models.IntegerField(blank=True, null=True, db_column='addressid')),
+ ('address', models.ForeignKey(blank=True, null=True, to='locations.Address', db_column='addressid')),
analytics-python==1.0.1
celery==3.1.13
django==1.7
django-cors-headers==0.13
django-debug-toolbar==1.2.1
django-extensions==1.3.8
django-filter==0.7
django-jinja==1.0.4
django-model-utils==2.1.1
django-redis==3.7.1
"response": {
"Result": {
"c": {
"m": 0,
"f": 0
},
/Users/zain/.vagrant.d/gems/gems/landrush-0.10.0/lib/landrush/action/common.rb:53:in `enabled?': undefined method `landrush' for nil:NilClass (NoMethodError)
from /Users/zain/.vagrant.d/gems/gems/landrush-0.10.0/lib/landrush/action/teardown.rb:8:in `block in call'
from /Users/zain/.vagrant.d/gems/gems/landrush-0.10.0/lib/landrush/action/common.rb:21:in `handle_action_stack'
from /Users/zain/.vagrant.d/gems/gems/landrush-0.10.0/lib/landrush/action/teardown.rb:7:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/graceful_halt.rb:77:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `block in run'
from