Skip to content

Instantly share code, notes, and snippets.

Varun Verma varver

Block or report user

Report or block varver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@varver
varver / sentry_issue_api.py
Created Feb 20, 2019
Fetch issues from sentry with highest frequency in 14 days
View sentry_issue_api.py
### 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
@varver
varver / redshift_connect.py
Created Feb 15, 2017
Python script to connect with Redshift on AWS with SCHEMA support.
View redshift_connect.py
############ 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 / .Title
Created Nov 29, 2016 — forked from congjf/.Title
Using MongoDB in golang with mgo
View .Title
Using MongoDB in golang with mgo
View geospatial-querying-with-go-and-mongodb.go
package main
import (
"encoding/json"
"fmt"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"log"
)
@varver
varver / get_image_size.go
Created Sep 4, 2015
Get size and format of any image present online or on disk in golang (go)
View get_image_size.go
package main
import (
"bytes"
"fmt"
"github.com/varver/rextro"
_ "golang.org/x/image/bmp"
_ "golang.org/x/image/webp"
"image"
_ "image/gif"
View Golang decorator
package main
import (
"fmt"
)
func decorator(f func(s string)) func(s string) {
return func(s string) {
fmt.Println("Started")
@varver
varver / pprof.go
Created May 11, 2015
Profiling go code with pprof , example .
View pprof.go
package main
import (
"fmt"
"runtime"
"sync"
"github.com/davecheney/profile"
)
func main() {
View abstract_parse.go
package main
import (
"os"
"encoding/xml"
"strings"
"log"
"runtime/debug"
)
@varver
varver / cookie_jar_golang.go
Last active Sep 13, 2019
Login to a website with this golang code using persistent cookies or cookie jar .
View cookie_jar_golang.go
You can’t perform that action at this time.