Skip to content

Instantly share code, notes, and snippets.

View vchrombie's full-sized avatar

Venu Vardhan Reddy Tekula vchrombie

View GitHub Profile
@vchrombie
vchrombie / README.md
Last active April 12, 2024 04:33
Courses at NYU
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
headers="Authorization: Bearer $GRAFANA_API_KEY"
in_path="$GIT_SRC/dashboards_raw"
echo "Exporting Grafana dashboards from $GRAFANA_URL"

Keybase proof

I hereby claim:

  • I am vchrombie on github.
  • I am vchrombie (https://keybase.io/vchrombie) on keybase.
  • I have a public key ASB2DWf8IaMKLDiWvCACBdmkE6Jlj86rCtH-N38PDeE2jQo

To claim this, I am signing this object:

gist spammer 🎉

import matplotlib.pyplot as plt
semesters = [1, 2, 3, 4, 5, 6, 7, 8]
grades = [9.08, 8.14, 8.43, 7.89, 8.34, 7.55, 7.84, 9.06]
fig, ax = plt.subplots(figsize=(10,8))
ax.plot(semesters, grades, '-o')
ax.set(title="Grades: Venu (U4CSE16508)",
/home/p0tt3r/chaoss/sources/VENV_DIR/bin/python /home/p0tt3r/chaoss/sources/grimoirelab-sirmordred/utils/micro.py --enrich --cfg ./setup.cfg --backends gitlabqm:issue
2020-06-16 18:22:11,780 Reading projects data from ./projects.json
2020-06-16 18:22:21,812 [gitlabqm:issue] enrichment phase starts
2020-06-16 18:22:21,890 [gitlabqm:issue] enrichment starts for https://gitlab.com/amfoss/cms-mobile
2020-06-16 18:22:22,216 Error enriching raw from gitlabqm (https://gitlab.com/amfoss/cms-mobile): 'id'
Traceback (most recent call last):
File "/home/p0tt3r/chaoss/sources/grimoirelab-elk/grimoire_elk/elk.py", line 530, in enrich_backend
enrich_count = enrich_items(ocean_backend, enrich_backend)
File "/home/p0tt3r/chaoss/sources/grimoirelab-elk/grimoire_elk/elk.py", line 318, in enrich_items
total = enrich_backend.enrich_items(ocean_backend)
@vchrombie
vchrombie / generate-es-index-schema.py
Last active March 22, 2021 18:30
tool to generate schema file of the elasticsearch index
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CHAOSS
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
def __get_reactions(self, item):
reactions = ()
item_reactions = item.get('award_emoji_data', [])
for item in item_reactions:
reaction = {
'type': item['name'],
'count': sum(1 for i in item_reactions if i['name'] == item['name'])
}
/home/p0tt3r/chaoss/sources/VENV_DIR/bin/python /home/p0tt3r/chaoss/sources/grimoirelab-sirmordred/utils/micro.py --enrich --cfg ./setup.cfg --backends gitlabcomments:issue gitlabcomments:merge
2020-06-07 21:41:16,656 Reading projects data from ./projects.json
2020-06-07 21:41:26,699 [gitlabcomments:issue] enrichment phase starts
2020-06-07 21:41:26,887 [gitlabcomments:issue] enrichment starts for https://gitlab.com/amfoss/cms
2020-06-07 21:41:27,191 Name, email and username are none in gitlabcomments
2020-06-07 21:41:28,198 85 items inserted for GitLab
2020-06-07 21:41:28,198 [gitlabcomments] Done enrichment for https://gitlab.com/amfoss/cms
2020-06-07 21:41:28,199 [gitlabcomments:issue] enrichment finished for https://gitlab.com/amfoss/cms
2020-06-07 21:41:28,199 [gitlabcomments:issue] enrichment starts for https://gitlab.com/amfoss/cms-mobile
2020-06-07 21:41:28,773 Name, email and username are none in gitlabcomments