Skip to content

Instantly share code, notes, and snippets.

@luizcosta
luizcosta / setup-wsl-ssh-connection.sh
Created June 16, 2025 16:54
WSL Ubuntu SSH Setup for Cursor Remote Development - Connect from macOS to WSL2
#!/bin/bash
# WSL SSH Connection Setup Script for macOS
# This script helps configure SSH connection to WSL Ubuntu for Cursor remote development
echo "=== WSL SSH Connection Setup for Cursor ==="
echo
# Check if SSH key exists
if [ ! -f ~/.ssh/id_ed25519 ]; then
/Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- request (LoadError)
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/mymoip-0.2.1/lib/mymoip/payment_request.rb:1:in `<top (required)>'
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
from /Users/luizhdcosta/.rvm/gems/ruby-1.9.3-p194@postalize/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in requir
@luizcosta
luizcosta / gist:3429095
Created August 22, 2012 20:33
Remover arquivo do git sem apagar o arquivo
git rm --cached <nome_do_arquivo>