Skip to content

Instantly share code, notes, and snippets.

View cprakashagr's full-sized avatar
)))))) @#$%^&*^%$# ((((((

Chandra Prakash cprakashagr

)))))) @#$%^&*^%$# ((((((
View GitHub Profile
cprakashagr /
Created May 2, 2020 20:06 — forked from jlblancoc/
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

View Install protobuf 3 on Ubuntu
# Make sure you grab the latest version
curl -OL
# Unzip
unzip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
cprakashagr /
Created January 8, 2018 19:16 — forked from KhepryQuixote/
Python script to connect to Tor via Stem and Privoxy, requesting a new connection (hence a new IP as well) as desired.

Crawling Anonymously with Tor in Python

adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.

The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.


Install Tor.

Last active October 23, 2023 11:37
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
Michael Barnes
Single User License
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
cprakashagr /
Created June 3, 2017 17:21 — forked from jarutis/
Theano and Keras setup on ubuntu with OpenCL on AMD card
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
cprakashagr / decoder.cpp
Created February 25, 2016 06:33 — forked from darkyen/decoder.cpp
C++ ffmpeg decoder
View decoder.cpp
* encoder.cpp
* Created on: Jul 12, 2012
* Author : Abhishek Hingnikar
* @TODO: remove the file deps.
* ADD STREAM DEPS so that u can buffer output.
* Structure
* ffmpeg{
cprakashagr /
Last active March 4, 2016 10:02 — forked from shlomibabluki/
A simplistic Natural Language Processing tool in Python to minify the texts from English based paragraphs.
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):