Create VHDX dirve
Mount-VHD -PATH "D:\Ricardo\projects.vhdx" -PassThru
wsl --mount \\.\PHYSICALDRIVE2
Obs: create Taks to run command above after initialize
Edit /etc/wsl.conf
[boot]
systemd=true
Restart on PowerShell
wsl --shutdown
Install some packages and
sudo snap install htop
sudo snap install fast
sudo snap install redis-desktop-manager
Obs: run redis-desktop /snap/bin/redis-desktop-manager.res
sudo apt-get install postgresql-client postgresql-server-dev-14 gawk autoconf automake bison libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libyaml-dev pkg-config sqlite3 libgmp-dev libreadline-dev libssl-dev build-essential zlib1g-dev liblzma-dev patch git git-extras vim fzf
Heroku
curl https://cli-assets.heroku.com/install.sh | sh
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
asdf plugin add ruby
asdf install ruby latest
asdf global ruby latest
bundle config jobs 16
git clone https://github.com/nodenv/node-build.git
sudo PREFIX=/usr/local ./node-build/install.sh
rm -Rfv node-build/
## restart terminal
## show last lts servion
asdf plugin-add nodejs
asdf install nodejs 18.18.0
asdf global nodejs 18.18.0
asdf reshim
https://deanpcmad.com/2022/installing-older-ruby-versions-on-ubuntu-22-04/
cd ~/
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./config --prefix=$HOME/.openssl/openssl-1.1.1g --openssldir=$HOME/.openssl/openssl-1.1.1g
make && make install
rm -rf ~/.openssl/openssl-1.1.1g/certs
ln -s /etc/ssl/certs ~/.openssl/openssl-1.1.1g/certs
# Ruby 3.0
RUBY_CONFIGURE_OPTS=--with-openssl-dir=$HOME/.openssl/openssl-1.1.1g asdf install ruby latest:3.0
# Ruby 2.7
RUBY_CONFIGURE_OPTS=--with-openssl-dir=$HOME/.openssl/openssl-1.1.1g asdf install ruby latest:2.7
# Ruby 2.6
RUBY_CONFIGURE_OPTS=--with-openssl-dir=$HOME/.openssl/openssl-1.1.1g asdf install ruby latest:2.6
- Restart wsl
Get-Service LxssManager | Restart-Service
wsl --shutdown
- Git does't asking ssh key passphare
eval $(ssh-agent)
ssh-add ~/.ssh/id_ed25519
- Clean Cache
as root
echo 3 > /proc/sys/vm/drop_caches
https://github.com/giggio/bashscripts/blob/main/cleanupMemoryCache.sh
https://twitter.com/giovannibassi/status/1704904621972488502 https://www.youtube.com/watch?v=_Uqf5_kN6Rw by https://twitter.com/giovannibassi
https://www.youtube.com/playlist?list=PLlAbYrWSYTiOpefWtd6uvwgKT1R-94Zfd by https://twitter.com/Willian_justen
https://youtu.be/28jHuWBi72w?si=rTCpKTNLDmbQM7Np https://youtu.be/sjrW74Hx5Po?si=n00UeYNF4jddnCgW by https://twitter.com/AkitaOnRails