Skip to content

Instantly share code, notes, and snippets.

View yangningBU's full-sized avatar
👠
When is She not?

Yonatan Laurence yangningBU

👠
When is She not?
View GitHub Profile

Running sonar-scanner locally

  • You need the qube server. Could be Sonarcloud or a local instance. I used the docker container
  • You need the scanner from homebrew
  • You need an auth token iff you're using the cloud api
# export SONAR_TOKEN=<>
brew install sonar-scanner
docker run -d --name sonarqube -p 9000:9000 sonarqube:latest
sonar-scanner -Dproject.settings=sonar-project.properties -Dsonar.login=admin -Dsonar.password=admin
It comes with webpacker so you have to have yarn installed first:
```
brew install yarn
rails new app-name -d postgresql
```

We're using chruby and ruby-install

#!/bin/bash
DEFAULT_VERSION="ruby-2.6.3"
version=`cat .ruby-version || echo $DEFAULT_VERSION`
brew update
brew install ruby-install # 0.7.0
ruby-install ruby $version # takes about half an hour
brew install chruby # 0.3.9
@yangningBU
yangningBU / keybase.md
Last active January 15, 2019 17:27
Keybase Proof

Keybase proof

I hereby claim:

  • I am yangningBU on github.
  • I am ylaurence (https://keybase.io/ylaurence) on keybase.
  • I have a public key ASCK2CihYrYRwR6822HfGlJo1A4DEAwDsFiNX_VQozPegQo

To claim this, I am signing this object: