Skip to content

Instantly share code, notes, and snippets.

View vijayanandrp's full-sized avatar
👑

Vijay Anand Pandian vijayanandrp

👑
View GitHub Profile
@vijayanandrp
vijayanandrp / kconnect.py
Last active January 7, 2023 01:01 — forked from rueedlinger/kconnect.py
Kafka Connect Python Script - https | user auth | Status | restart | pause | resume
# credits source : https://gist.github.com/rueedlinger/76af36d04a0798a8e1f43ed16595bd97
import sys
import os
import json
import argparse
from base64 import b64encode
PYTHON_MAJOR_VERSION = sys.version_info.major
DEFAULT_HOST = 'localhost'
@vijayanandrp
vijayanandrp / Scrapy.sh
Last active June 19, 2017 08:41 — forked from redapple/in_container_console_logs.txt
Installing scrapy 1.1 on Ubuntu 16.04 on Python 3, using virtualenvwrapper
# When the cache is clear, pip is working again.
hash -r
1. sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt-dev python3-pip
2. sudo pip3 install virtualenvwrapper
3. workon [try this command in terminal if it not works go to point 4]
4. source /usr/local/bin/virtualenvwrapper.sh (or) source ~/.local/bin/virtualenvwrapper.sh
@vijayanandrp
vijayanandrp / ngrams.py
Last active May 20, 2017 14:54 — forked from benhoyt/ngrams.py
Print most frequent N-grams in given file
"""Print most frequent N-grams in given file.
Usage: python ngrams.py filename
Problem description: Build a tool which receives a corpus of text,
analyses it and reports the top 10 most frequent bigrams, trigrams,
four-grams (i.e. most frequently occurring two, three and four word
consecutive combinations).
NOTES