Skip to content

Instantly share code, notes, and snippets.

View vavar's full-sized avatar
🏠
Working from home

Warin Laocharoen (Chue) vavar

🏠
Working from home
View GitHub Profile
@vavar
vavar / sonarqube-systemd-setup.md
Last active April 26, 2020 16:35
SonarQube 8.2.0.32929 - RHEL Systemd Unit file

SonarQube Systemd Unit file

try and no luck with Official instruction. So below unit file is working for me.

Based on SonarQube 8.2.0.32929

[Unit]
Description=SonarQube service
After=syslog.target network.target
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{5b4ef9a8-4506-4ac9-930a-5eb1fd0ebf20}",
"profiles":
@vavar
vavar / romanize - javascript
Last active March 12, 2020 06:32
Romanize numerial
const roman = [
{ output: 'M', cost: 1000 },
{ output: 'CM', cost: 900},
{ output: 'D', cost: 500 },
{ output: 'CD', cost: 400 },
{ output: 'C', cost: 100 },
{ output: 'XC', cost: 90 },
{ output: 'L', cost: 50 },
{ output: 'XL', cost: 40 },
{ output: 'X', cost: 10 },
@vavar
vavar / macos-shell-dev-tool.md
Last active May 4, 2018 03:59
macOS Shell Dev Tool

Step 1 - Brew ( https://brew.sh )

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2 - Zsh & Oh-my-zsh

brew install zsh zsh-completions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"