Skip to content

Instantly share code, notes, and snippets.

View ctudorache87's full-sized avatar

Catalin Tudorache ctudorache87

View GitHub Profile
@ctudorache87
ctudorache87 / settings.json
Created July 25, 2019 07:24
VSCode settings
{
"editor.fontFamily": "'Fira Code', 'Hasklig', Consolas",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.rulers": [
120
],
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": true,
"editor.renderIndentGuides": true,
@ctudorache87
ctudorache87 / .bashrc
Last active May 10, 2020 08:32
WSL NVM fix in bash.rc
# Add these lines to .bashrc in WSL to prevent slow shell startup because of NVM
export NVM_DIR="$HOME/.nvm"
# add --no-use so that nvm doesn't load node automatically
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# manually add desired node version to PATH
NODE_VERSION="v12.6.0"
export PATH="${PATH}:${NVM_DIR}/versions/node/${NODE_VERSION}/bin"
@ctudorache87
ctudorache87 / .bash_aliases
Created July 5, 2019 09:49
WSL PHP and Node development environment Bash aliases and functions
alias update='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean'
alias ..="cd .."
alias ...="cd ../.."
alias h='cd ~'
alias c='clear'
alias art=artisan
alias codecept='vendor/bin/codecept'
@ctudorache87
ctudorache87 / wsl_provision.sh
Last active November 16, 2021 03:27
Provisioning script for PHP & Node development environment on WSL
#!/bin/bash
# Provisioning script for PHP & Node development environment on WSL
if [ "$EUID" -ne 0 ]
then echo "Please run this script as root"
exit
fi
# create work dir
@ctudorache87
ctudorache87 / custom-juno.sh
Last active July 25, 2019 07:22 — forked from konstantinbo/custom-juno.sh
Thing to do after installation of Elementary OS Juno (5.0)
# First you update your system
sudo apt update && sudo apt-get dist-upgrade
# Uninstall unnecessary programs
sudo apt purge epiphany-browser epiphany-browser-data #browser
sudo apt purge pantheon-mail
# Bring back Software and Updates from Ubuntu
sudo apt-get install software-properties-gtk
# Properties Commons (to install elementary tweaks)