Skip to content

Instantly share code, notes, and snippets.

@nirmalpathak
nirmalpathak / nginx.conf
Last active November 6, 2021 10:16
Sample nginx.conf which for SonarQube 5.6.3
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
@nirmalpathak
nirmalpathak / create_user_for_namespace.sh
Last active July 8, 2019 04:10 — forked from steimntz/create_user_for_namespace.sh
Script to create user with permission for a specific namespace.
#!/bin/bash
#
# Script based on https://jeremievallee.com/2018/05/28/kubernetes-rbac-namespace-user.html
#
# In honor of the remarkable Windson
#/bin/bash
namespace=$1
username=$2
if [[ -z "$namespace" ]]; then