Skip to content

Instantly share code, notes, and snippets.

View arshbot's full-sized avatar
🖥️
11100010 10011010 10100001

Harsha Goli arshbot

🖥️
11100010 10011010 10100001
View GitHub Profile
@arshbot
arshbot / gitcommits.py
Created February 12, 2017 18:36
Get all git commits for all your public and private repositories
import requests
from requests.auth import HTTPBasicAuth
list_of_repos = []
fork_score, star_score, commit_score = (0,)*3
#Note, you cannot get ALL commits a user has ever made. What this script does is iterate through a user's local repositories
#and count how many git commits have been made and how many times a repository of yours has been forked or starred
def compile_raw_gitscore(username='arshbot'):
get_user_repos(username)
@arshbot
arshbot / pugbomb.py
Last active February 7, 2017 16:37
Dynamic pugbomb for chatbot's in python. Uses reddit api
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Created by Harsha Goli
#Remember to register your script with reddit at https://ssl.reddit.com/prefs/apps
#You will use those credentials and input them in the praw.Reddit() parameters. Your script will fail otherwise.
import praw
#pug bombs the chat and destroys this poor bot's soul
def pugbomb(response, args):