Install: https://github.com/rubyide/vscode-ruby
{
"ruby.lint": {
"rubocop": {
"executePath": "$GEM_HOME/bin" # Or replace with the result of: `echo "$(rvm gemdir)/bin"`
},
"ruby": true
},
git branch -a --no-merged | grep remotes/origin | grep -v master | grep -v development | xargs git show -s --pretty=format:"%ai %d %an" |
function cd { | |
builtin cd "$@" | |
if [ -d ".venv" ] ; then | |
source .venv/bin/activate | |
fi | |
} |
Install: https://github.com/rubyide/vscode-ruby
{
"ruby.lint": {
"rubocop": {
"executePath": "$GEM_HOME/bin" # Or replace with the result of: `echo "$(rvm gemdir)/bin"`
},
"ruby": true
},
git status --porcelain | grep -E '^( |\?)(M|\?).*.rb' | cut -c4- | xargs rubocop -a |
chars = ('a'..'z').to_a + (0..9).to_a | |
chars.shuffle.sample(4).join |
<transportConnectors> | |
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> | |
<transportConnector name="stomp" uri="stomp://localhost:61613"/> | |
</transportConnectors> |
## RENAME FIELDS | |
Model.collection.find({}).update({ '$rename' => { 'old' => 'new' } }, multi: true, safe: true) |