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 WshShell = WScript.CreateObject("WScript.Shell") | |
call WshShell.Run("https://www.irctc.co.in/eticketing/loginHome.jsf", 1, false) 'This will open your default browser | |
WScript.Sleep 10000 'wait for the webpage to load | |
WshShell.SendKeys "username" 'to enter username | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" | |
WScript.Sleep 1000 | |
WshShell.SendKeys "password" 'to enter password | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" 'to enter the CAPTCHA box |
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 WshShell = WScript.CreateObject("WScript.Shell") | |
call WshShell.Run("https://10.10.54.4:8090/httpclient.html", 1, false) 'This will open your site in the default browser | |
WScript.Sleep 10000 'Helps in waiting till the browser opens and webpage loads completely | |
WshShell.SendKeys "{TAB}" | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" | |
WScript.Sleep 1000 'Navigate till the Username box is reached |
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
#Command to edit bash_profile from any directory | |
alias bashedit='vi ~/.bash_profile' | |
# Command to source the current .bash_profile file from any directory. After successful soouricng, it saves a copy of the file as .bash_profile.backup | |
alias bashsource='source ~/.bash_profile && cp ~/.bash_profile ~/.bash_profile.backup' | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export TZ=Asia/Kolkata |
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
export KAFKA_HOME=<kafka installation directory> | |
# Start Kafka server | |
alias startKafka='$KAFKA_HOME/bin/kafka-server-start.sh -daemon $KAFKA_HOME/config/server.properties' | |
# List of topics with zookeeper of localhost | |
alias topics='$KAFKA_HOME/bin/kafka-topics.sh --list --zookeeper localhost:2181' | |
# Create a new cosnumer that reads from the starting from the topic. It uses localhost kafka broker. | |
# Example: readtopic topicName |