Skip to content

Instantly share code, notes, and snippets.

View amCap1712's full-sized avatar

Kartik Ohri amCap1712

View GitHub Profile
Table: <class 'mbdata.models.Recording'>
Undeffered Columns: ('gid', 'name', 'id')
Deferred columns: ['length', 'comment', 'edits_pending', 'last_updated', 'video']
All columns: ['artist_credit_id', 'id', 'gid', 'name', 'length', 'comment', 'edits_pending', 'last_updated', 'video']
Table: <class 'mbdata.models.Artist'>
Undeffered Columns: ('gid', 'name', 'id')
Deferred columns: ['begin_date', 'end_date', 'sort_name', 'begin_date_year', 'begin_date_month', 'begin_date_day', 'end_date_year', 'end_date_month', 'end_date_day', 'comment', 'edits_pending', 'last_updated', 'ended']
All columns: ['type_id', 'area_id', 'gender_id', 'begin_area_id', 'end_area_id', 'begin_date', 'end_date', 'id', 'gid', 'name', 'sort_name', 'begin_date_year', 'begin_date_month', 'begin_date_day', 'end_date_year', 'end_date_month', 'end_date_day', 'comment', 'edits_pending', 'last_updated', 'ended']
@amCap1712
amCap1712 / API
Last active August 26, 2021 10:15
Identify commits on github with unrecognized github accounts
GET https://api.github.com/repos/openjdk/jdk/commits?per_page=3
Relevant docs: https://docs.github.com/en/rest/reference/repos#list-commits
@amCap1712
amCap1712 / gist:c7e68f5ac49d4b958ce3e16b89bc2a3c
Created August 10, 2021 19:02
Annoy Patch Fix Debug Log
DEBUG:AnnoyLookupElement:read for tzanetakis/480b391b-827a-4c92-b98f-5b223b74f22c
DEBUG:AnnoyLookupElement:url: https://acousticbrainz.org/api/v1/similarity/tzanetakis
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acousticbrainz.org:443
DEBUG:urllib3.connectionpool:https://acousticbrainz.org:443 "GET /api/v1/similarity/tzanetakis?remove_dups=true&recording_ids=480b39
1b-827a-4c92-b98f-5b223b74f22c HTTP/1.1" 308 463
DEBUG:urllib3.connectionpool:https://acousticbrainz.org:443 "GET /api/v1/similarity/tzanetakis/?remove_dups=true&recording_ids=480b3
91b-827a-4c92-b98f-5b223b74f22c HTTP/1.1" 200 None
DEBUG:AnnoyLookupElement:read 200 recordings
DEBUG:AnnoyLookupElement:AnnoyLookupElement 200 items
DEBUG:RecordingLookupElement:- debug 200 recordings
@amCap1712
amCap1712 / Spark 2.4.5
Created April 26, 2021 20:13
Spark Sentry Integration Error Log
2021-04-26T17:30:48.2693060Z ERROR py4j.java_gateway:java_gateway.py:2446 There was an exception while executing the Python Proxy on the Python Side.
2021-04-26T17:30:48.2694690Z Traceback (most recent call last):
2021-04-26T17:30:48.2696625Z File "/usr/local/lib/python3.6/site-packages/py4j/java_gateway.py", line 2442, in _call_proxy
2021-04-26T17:30:48.2698237Z return_value = getattr(self.pool[obj_id], method)(*params)
2021-04-26T17:30:48.2700347Z File "/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/spark/spark_driver.py", line 241, in onStageSubmitted
2021-04-26T17:30:48.2702208Z data = {"attemptId": stage_info.attemptId(), "name": stage_info.name()}
2021-04-26T17:30:48.2704106Z File "/usr/local/lib/python3.6/site-packages/py4j/java_gateway.py", line 1305, in __call__
2021-04-26T17:30:48.2705741Z answer, self.gateway_client, self.target_id, self.name)
2021-04-26T17:30:48.2707602Z File "/usr/local/lib/python3.6/site-packages/pyspark/sql/utils.py", line 111, in deco
202
@amCap1712
amCap1712 / Project.md
Last active August 29, 2020 17:05
The State of MusicBrainz Android

Project Requirements

A few months ago when the initial proposal was drawn, MusicBrainz for Android had a brittle interface. There was hardly any screen free of fatal errors and crashes. Hence, the proposal aimed at eliminating these instability issues. This included rearchitecting the application where necessary, adding tests and incorporating android best practices.

Repos

The entire work scoped across three repositories:

  1. MusicBrainz Android
  2. AcousticBrainz Android
  3. KTaglib
From d06c414a6dd196723491751001f2ddd8a618d49b Mon Sep 17 00:00:00 2001
From: Kartik Ohri <kartikohri13@gmail.com>
Date: Fri, 5 Jun 2020 17:29:35 +0530
Subject: [PATCH] Add rav1e
---
modules/codec/Makefile.am | 7 ++
modules/codec/rav1e.c | 205 ++++++++++++++++++++++++++++++++++++++
2 files changed, 212 insertions(+)
create mode 100644 modules/codec/rav1e.c