Skip to content

Instantly share code, notes, and snippets.

View dubeyji10's full-sized avatar
💭
Cogito, ergo sum

Abhishek Dubey dubeyji10

💭
Cogito, ergo sum
View GitHub Profile
@dubeyji10
dubeyji10 / kibana.sh
Created June 15, 2022 13:30
a bash script to launch an instance of gnome-terminal with some pre written commands
echo "starting kibana"
gnome-terminal --tab --title="kibana" --command="bash -c 'cd;cd /home/abhishek/Downloads/kibana-7.17.4-linux-x86_64;echo running kibana in second tab; $SHELL'"
@dubeyji10
dubeyji10 / simpleCSV_input.conf
Last active June 18, 2022 05:40
logstash used to input csv file to elasticsearch index
input {
file {
path => "/home/abhishek/Documents/logstash_use/walmart_cleaned_2.csv"
start_position => "beginning"
}
}
filter {
csv{
separator => ","
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / index_gita_in_es.ipynb
Created June 18, 2022 06:52 — forked from achinta/index_gita_in_es.ipynb
Elastic Search functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / elasticsearch_index_doc.ipynb
Created June 18, 2022 12:57
working with elasticsearch python api
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / csvParsing.ipynb
Last active June 20, 2022 13:46
csv datatypes conversion and cleaning - type conversion to correct datatypes ( plus creation of random sample data -- date )
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / STEPS.md
Last active June 21, 2022 08:13
[documentation] how to setup and and run sycn script

Running syncScript STEPS

step1-1.png

1.1. Choose Self Client

1.2. Enter details

1.2.1. add scope (existing )
"""
ZohoCRM.modules.ALL,ZohoCRM.org.ALL,ZohoCRM.modules.custom.all,ZohoCRM.users.all,ZohoCRM.org.all,ZohoCRM.settings.all
"""
1.2.2. Time Duration 10 minutes
@dubeyji10
dubeyji10 / indexData.ipynb
Last active June 22, 2022 06:37
read csv file - conversion of data to correct field types - push to index
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / regex.py
Created June 22, 2022 06:58 — forked from MishraKhushbu/regex.py
Regular expression
,Regex summary and examples
. - any charcter except newline
\d - Digit(0-9)
\D - Not a digit(0-9)
\w - word charcter(a-z, A-Z,0-9,_)
\W- not a word charcter
\s - whitespace(space , tab, newline)
\S - not a whitespace(space , tab , newline)
@dubeyji10
dubeyji10 / gotomeeting_OAUTH.md
Created July 8, 2022 06:25
gotomeeting oauth client steps

Generating Access Token and Refresh Token

Step 1 : go to the link below for generating code -> click allow -> copy from the url bar and update the code variable in environment

link : https://authentication.logmeininc.com/oauth/authorize?client_id=&response_type=code&redirect_uri=https://www.codanalytics.net/

Step 2: make post request to {{generate_tokens}} url with following body (payload)

client-code code base64 combination of client ID and client secret

code : from url when first request is made (after step 1)