Skip to content

Instantly share code, notes, and snippets.

View vik-y's full-sized avatar

Vikas Yadav vik-y

View GitHub Profile
@vik-y
vik-y / Readme.txt
Created March 18, 2016 20:44
Eclipse ProR installation
How to Install ProR plugin into Eclipse
Open Eclipse
Go to Help->Install New Software
Click on Add new site
Add name as : ProR
link:
http://download.eclipse.org/rmf/updates/releases
@vik-y
vik-y / install.md
Last active December 29, 2023 07:02
openstack installation steps

Before using this make sure you allocate 6GB. 2 cores

Install openswitch and init a br-int bridge

yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config python-devel openssl-devel kernel-devel kernel-debug-devel libtool wget
mkdir -p ~/rpmbuild/SOURCES
wget http://openvswitch.org/releases/openvswitch-2.5.1.tar.gz
cp openvswitch-2.5.1.tar.gz ~/rpmbuild/SOURCES/
@vik-y
vik-y / settings.json
Created September 27, 2023 03:20
VScode configuration that helps you write python code better!
{
"editor.formatOnSave": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.sortImports.args": [
"--profile",
"black"
],
"[python]": {
"editor.codeActionsOnSave": {
@vik-y
vik-y / delete_all_tweets.py
Last active September 22, 2023 21:04 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script is forked originally from Dave Jeffery. The original implementation
was very slow and deleted around 2 tweets per second. Making it multithreaded I
am able to delete 30-50 tweets per second.
@author: vik-y
----------------------------------------------------------------------------
This script will delete all of the tweets in the specified account.
@vik-y
vik-y / bash-cheatsheet.sh
Last active March 3, 2023 00:13 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@vik-y
vik-y / build.ipynb
Last active November 14, 2022 12:32
Autoscraper Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vik-y
vik-y / NOTES.md
Created December 5, 2017 23:46
Docker-compose cheat sheet
@vik-y
vik-y / aliases-kafka.sh
Last active April 22, 2021 16:18 — forked from diegoicosta/aliases-kafka.sh
Aliases useful for working with kafka
#KAFKA ALIAS TO BE USED INSIDE DOCKER
export KAFKA_HOME=/opt/kafka
export BROKER="172.17.0.1:32768"
export BOOTSTRAP="172.17.0.1:32768"
export ZK="172.17.0.1:2181"
alias k-list-topics="$KAFKA_HOME/bin/kafka-topics.sh --list --zookeeper $ZK"
alias k-create-topic="$KAFKA_HOME/bin/kafka-topics.sh --create --zookeeper $ZK --replication-factor 1 --partitions 3 --topic"
@vik-y
vik-y / get_ips.py
Last active January 17, 2019 15:52
Script to get all unused ips in a subnet
import os, sys
# Fping must be installed in the system
os.system('fping -a -g %s/24 > alive.txt' % (sys.argv[1]))
f = open('alive.txt', 'r')
raw = f.readlines()
ips = [int(x.split('.')[-1].strip()) for x in raw]
ips.sort()
@vik-y
vik-y / link_account.py
Created January 31, 2016 13:55
A simple python script to upload files to dropbox