This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# filename contains: | |
#=============================================================================== | |
#==== **** || **** Orchestration and Automation | |
#=============================================================================== | |
#==== User :: **** | |
#==== Deployment id :: **** | |
#==== **** Instance (running) :: Container Name something1803162156077 | |
#==== :: **** http://10.242.65.215:38072 (default: solar/system) | |
#==== :: **** https://10.242.65.215:38070 | |
#=============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am raviprakashgiri on github. | |
* I am raviprakashgiri (https://keybase.io/raviprakashgiri) on keybase. | |
* I have a public key ASBQsRDzXR_t0cblRAVfvX69bgfdYyuiC_p69RpRrDFHlwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set encoding=utf-8 | |
set fileencodings=utf-8,cp950 | |
set guifont=monospace\ 14 | |
syntax on | |
set nocompatible | |
" set ai | |
set shiftwidth=2 | |
" set tabstop=4 " tab | |
" set softtabstop=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Where is the location of your current shall. Useful if we need to revert | |
echo $0 | |
# Install ZSH | |
sudo apt-get install zsh | |
# Instal GIT | |
sudo apt-get install git-core | |
# Install OhMyZSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
value=`cat adult.txt` # files from which string input has been taken | |
for i in ${value[@]}; do tshark -r test.pcap -T fields -e ip.src -e ip.dst -e data |\ | |
grep `echo -n $i | xxd -p` |\ | |
cut -f 1| uniq > $i; echo $i; done# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <algorithm> | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#there are three columns. This script is gonna sort the file first w.r.t. column 3 then further w.r.t. column 2 | |
import csv | |
def getKey(item): | |
return int(item[0]) | |
def getKey1(item): | |
return int(item[1]) | |
def getKey2(item): | |
return int(item[2]) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author Ravi Prakash Giri | |
import re | |
import matplotlib.pyplot as plt | |
from math import log | |
eq_files=[] | |
values=[] | |
fig, ax = plt.subplots(figsize=(120,7)) | |
mkr=['*','o','h','d','p','8','>','^','<',7] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author Ravi Prakash Giri | |
import sys | |
total = 0 | |
def fact(n): | |
total = n | |
while n > 1: | |
total *= (n - 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Input files from which first 5 columns have to be retained: input0.csv | |
# Input files from which column's content have to be copied: input1,input2, input3.csv | |
# It searches value in other three columns from csv files, corresponding to column value in input0.csv | |
# Author Ravi Prakash Giri | |
import os | |
file0=open('input0.csv','r') | |
file1=open('input1.csv','r') | |
file2=open('input2.csv','r') |
NewerOlder