Skip to content

Instantly share code, notes, and snippets.

@oussamabadr
oussamabadr / js-console-tips.js
Created September 21, 2022 09:17
Some Console.log Tips
// what console log can bring for your code
// Display error if condition is not true
console.assert( 1===1, "One equal one");
console.assert( 1===2, "One does not equal two");
// Print variable name and value
const planet = "Mars";
@oussamabadr
oussamabadr / sonarqube-postgresdb-docker-compose.yml
Last active May 1, 2020 15:59
Docker compose to run SonarQube with postgres database.
# If you are on linux run the following commands before 'docker-compose up'
# (Check "Docker Host Requirements" on https://hub.docker.com/_/sonarqube/ for more details) :
# sysctl -w vm.max_map_count=262144
# sysctl -w fs.file-max=65536
# ulimit -n 65536
# ulimit -u 4096
version: '3.1'
services: