Skip to content

Instantly share code, notes, and snippets.

View krishh-konar's full-sized avatar

Krishanu krishh-konar

View GitHub Profile
@krishh-konar
krishh-konar / stream_tweets.py
Last active March 22, 2016 21:20
Print and store streaming tweets
#!/usr/bin/python
'''
Fetches streaming tweets in real time depending on the search query.
'''
import json
from tweepy import OAuthHandler, API
from tweepy.streaming import StreamListener
from tweepy import Stream
import os
@krishh-konar
krishh-konar / twitter_image_downloader.py
Last active December 21, 2023 18:39
Downloads images/photos uploaded on twitter by a given user.
#!/usr/bin/python
'''
A script that downloads all the pictures posted by a given user.
Author: Krishanu Konar
email: [email protected]
'''
@krishh-konar
krishh-konar / OpenCV3_Install.sh
Created September 6, 2017 18:40
Install OpenCV3 for Python (with ffmpeg support)
#Create Directory
mkdir OpenCV && cd OpenCV
#Install dependencies
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential checkinstall cmake pkg-config yasm libtiff5-dev \
libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libgstreamer0.10-dev \
libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy python-pip libtbb-dev libeigen3-dev \
libqt4-dev libgtk2.0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev \
@krishh-konar
krishh-konar / OpenCV2_Install.sh
Created September 7, 2017 15:38
Shell Script for installing OpenCV 2.4.13 in Ubuntu
sudo apt-get install build-essential -y
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y
sudo apt-get install python3-numpy python3-pip python3-scipy python3-matplotlib python-dev python-matplotlib python-numpy python-scipy -y
sudo apt-get install python-pip python-tk libqt4-dev libqt4-opengl-dev libeigen3-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev default-jdk ant -y
echo "GUI and openGL extensions"
sudo apt-get install qt4-default libqt4-opengl-dev libvtk5-qt4-dev libgtk2.0-dev libgtkglext1 libgtkglext1-dev -y