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
# NOTE: we use Windows ssh.exe, thus all configuration must be on Windows side! | |
# all commands can be executed from WSL2 bash terminal | |
# ~/.gitconfig | |
[core] | |
editor = code --wait | |
sshCommand = ssh.exe | |
# Generate SSH keys in your teminal or use 1Password to store |
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
# install make and clang | |
sudo apt install make clang | |
# cs50.h library install | |
curl -s https://packagecloud.io/install/repositories/cs50/repo/script.deb.sh | sudo bash | |
sudo apt install libcs50 | |
# put this into ~/.bashrc | |
export CC="clang" | |
export CFLAGS="" |
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
# aliases for devops tools | |
alias tf='terraform' | |
alias k='kubectl' | |
alias h='helm' | |
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' |
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
# download docker and dockerd from here: https://download.docker.com/win/static/stable/x86_64/ | |
New-LocalGroup -Name 'docker-users' -Description 'docker Users Group' | |
Add-LocalGroupMember -Group 'Administrators' -Member ('docker-users') –Verbose | |
Add-LocalGroupMember -Group 'docker-users' -Member ('your-win-username','Administrators') –Verbose | |
# also install buildx https://github.com/docker/buildx | |
# and run teminal or VS Code with admin rights |
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
# branch name in terminal | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\]$(parse_git_branch)\[\033[00m\]\$ ' | |
# Terraform version manager | |
export PATH=$PATH:$HOME/.tfenv/bin | |
# Node version manager |
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
// As a first step: install extensions Prettier and Hashicorp Terraform | |
// update json user_config in VS Code | |
{ | |
"terminal.integrated.enableMultiLinePasteWarning": "never", | |
"git.autofetch": true, | |
"explorer.confirmDragAndDrop": false, | |
"git.confirmSync": false, | |
"files.exclude": { | |
"**/.terraform": true, | |
"**/.terraform.lock.hcl": true |
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
{ | |
"files.autoSave": "afterDelay", | |
"explorer.confirmDelete": false, | |
"git.autofetch": true, | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.explorerKind": "external", | |
"terminal.integrated.defaultProfile.osx": "zsh", | |
"terminal.integrated.fontFamily": "MesloLGS NF", | |
"workbench.colorTheme": "Default Dark+", | |
"redhat.telemetry.enabled": false, |
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
# Enable Powerlevel10k instant prompt. | |
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 | |
export ZSH="$HOME/.oh-my-zsh" | |
export PATH="/opt/homebrew/bin:$PATH" | |
export PAGER="less" | |
export LESS="-FXR" |
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
# Windows + WSL2 Ubuntu configuration, 1Password for GitHub auth and signing commits | |
[user] | |
name = Name Surname | |
email = [email protected] | |
[core] | |
editor = code --wait | |
sshCommand = ssh.exe | |
[push] |