Skip to content

Instantly share code, notes, and snippets.

@varver
varver / .Title
Created November 29, 2016 21:57 — forked from congjf/.Title
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@varver
varver / redshift_connect.py
Created February 15, 2017 11:02
Python script to connect with Redshift on AWS with SCHEMA support.
############ REQUIREMENTS ####################
# sudo apt-get install python-pip
# sudo apt-get install libpq-dev
# sudo pip install psycopg2
# sudo pip install sqlalchemy
# sudo pip install sqlalchemy-redshift
##############################################
import sqlalchemy as sa
from sqlalchemy.orm import sessionmaker
@varver
varver / sentry_issue_api.py
Created February 20, 2019 06:18
Fetch issues from sentry with highest frequency in 14 days
### READ ME :::)
# You can fetch issues with highest frequeny from sentry using this script.
# It will fetch top 100 issues and some meta information related to that issue.
# And write everything is a csv file separated with "~"
# you can change environment=production in the URL used to make api call below. Please refer your project to see environment options available.
#### IMPO :: please change token and your organization URL/Project_Name (org_and_project) below :
import json
import requests
import csv