Skip to content

Instantly share code, notes, and snippets.

View pycoder2000's full-sized avatar
👋
Let's get in touch

Parth Desai pycoder2000

👋
Let's get in touch
View GitHub Profile
@pycoder2000
pycoder2000 / .bash_profile
Last active June 27, 2024 17:07
My Bash profile file containing all the paths
# Setting PATH for Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# Setting PATH for Python
export PATH="$(brew --prefix python)/libexec/bin:$PATH"
# Setting PATH for OpenJDK
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
# Setting PATH for Apache Spark
One Hunter Theme
@pycoder2000
pycoder2000 / SparkInstallation.md
Last active June 27, 2024 17:01
Instructions on installing Apache-Spark in MacOS

Install Spark on Mac

ℹ️ Before installing Apache-Spark, ensure that you have Python and Homebrew installed in your system.

1. Install Java

# Install Java
brew install java

# Check Java version
@pycoder2000
pycoder2000 / file_list.txt
Last active June 26, 2024 22:07
My Mac application list
AltTab.app
AppCleaner.app
Blip.app
Cleaner-App.app
Dozer.app
Dropzone 4.app
Kap.app
MacUpdater.app
Microsoft Edge.app
Microsoft Excel.app
@pycoder2000
pycoder2000 / .bash_functions
Last active June 27, 2024 14:07
My Bash functions file
# List files in a folder
# -------------------------------------------------------------------------------
list_files_and_export() {
if [ "$#" -ne 1 ]; then
echo "Usage: list_files_and_export <directory>"
return 1
fi
local dir="$1"
@pycoder2000
pycoder2000 / .bash_aliases
Last active June 25, 2024 03:30
My Bash aliases file
alias mkvenv="virtualenv venv"
alias entervenv='source venv/bin/activate && where python3'
alias py="pip3 install -r requirements.txt"
alias pyfreeze="pip3 freeze > requirements.txt"
alias pyinit="mkvenv && venv >> .gitignore"
alias deletecrap="find . -name '.DS_Store' -type f -delete"
alias listapps="ls /Applications | pbcopy"
alias updateall="brew update && brew upgrade"
@pycoder2000
pycoder2000 / MacOSSetup.md
Last active September 18, 2024 06:25
My MacOS setup instructions and commands

Setup Mac OS X


1. Install homebrew

# Install zsh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.bash)"

# Check it's installed properly
brew doctor
@pycoder2000
pycoder2000 / .zshrc
Last active September 19, 2024 05:01
Zsh Config File
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH

Steps to create an ETL Pipeline with Cronjob

  1. Create fat Jar file

    mvn clean package -DskipTests
  2. Connect with Dev Sever

    ssh -o ServerAliveInterval=10 -i C:\Users\parth.b.desai\Desktop\byte_121.pem centos@172.31.96.121

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping