Skip to content

Instantly share code, notes, and snippets.

@farhangithub27
farhangithub27 / new mac aws credentials configuration steps
Last active March 3, 2020 06:41
Steps on how to configure new laptop (Mac Windows) to access aws via terminal/command prompt
Install aws-cli using brew for version 2
$brew install awscli
This will create a hidden ~/.aws inside your ~ (Users/farhansaeed) dir
with an empty config file to carry profiles.
OR aws-shell which comes with command completion.
We can use any of the two. However I have installed both for learning.
Install aws-vault from brew cask
$ brew cask install aws-vault
@farhangithub27
farhangithub27 / mp-etl data pipeline issues and resolutions.
Last active March 4, 2020 04:42
Issues encountered with mp-etl data pipeline and resolution.
1. Vertical value in lake verticals table.
If even one vertical has this value missing it will affect all verticals.
Example:
Bhanu reported that myer2 is not getting any data in datamart tables after its mp-etl pipeline deployment.
She also pointed that other verticals have some missing data too like from 1st of march. e.g. Analytic table etc
She pointed out following tables
BE_AU
Analytic – Feb 1st
Search – Feb 15th
BE_UK
@farhangithub27
farhangithub27 / git_commands
Created March 4, 2020 05:18
helpful commands for git
git log --graph --abbrev-commit --decorate --date=relative --all
@farhangithub27
farhangithub27 / oh-my-posh custom plugins
Last active February 11, 2022 05:19
custom plugins I'm using for oh my zsh/posh
git clone git@github.com:blimmer/zsh-aws-vault.git ~/.oh-my-zsh/custom/plugins/zsh-aws-vault
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# this can be installed through brew which require path set in .zshenv file as per my settings.
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# this can be installed through brew which require path set in .zshenv file as per my settings.
zsh-aliases-exa
git-open
git clone https://github.com/AlexisBRENON/oh-my-zsh-reminder ~/.oh-my-zsh/custom/plugins/reminder
@farhangithub27
farhangithub27 / pipenv_and_python_path.md
Last active September 1, 2023 08:28
how to set paths for python and pipenv in vscode and .zshrc file in $PATH variable only for pipenv

MAC OS Catalina

Python Path:

In .vscode folder where your workspace settings are included set your location of python and pipenv package as follows

{
    "python.pythonPath": "/Users/farhansaeed/.local/share/virtualenvs/ga_loader-8xg8-7fK/bin/python",
    "python.pipenvPath": "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages",
    "python.linting.pylintEnabled": true,
@farhangithub27
farhangithub27 / git_config
Last active March 11, 2020 00:55
git configuration
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
ignorecase = true
[color] # colorize output
diff = auto
status = auto
branch = auto
@farhangithub27
farhangithub27 / ssh_config
Last active August 12, 2021 12:21
ssh configurations to store private key passphrase into mac os keychain and ssh agent so that we dont have to enter password each time we ssh into a remote server
# got into ~/.ssh folder and do vi config
# Enter following lines
# Host server.example.com
# OR for all host
# config file takes precedence over cli commands
# if oyu run ssh -i ~/.ssh/id_ed25519 test-bunsen.private.teg.io even though we have mentioned diffreent file by using i.
# rsa file will take the precendece and will be tried first e.g
# ❯ ssh -i ~/.ssh/id_ed25519 test-bunsen.private.teg.io
# Enter passphrase for key '/Users/farhansaeed/.ssh/id_rsa':