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

Regular Expressions

Basic Syntax

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

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
@pycoder2000
pycoder2000 / .zshrc
Last active June 2, 2024 21:50
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
@pycoder2000
pycoder2000 / MacOSSetup.md
Last active June 3, 2024 06:50
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 / .bash_aliases
Created June 2, 2024 21:33
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"
@pycoder2000
pycoder2000 / .bash_functions
Created June 2, 2024 21:37
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 / file_list.txt
Created June 2, 2024 21:46
My Mac application list
AltTab
AppCleaner
Cleaner-App
Dozer
Kap
MacUpdater
Microsoft Edge
Microsoft Excel
Microsoft Outlook
Microsoft PowerPoint
@pycoder2000
pycoder2000 / SparkInstallation.md
Created June 6, 2024 00:09
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