Skip to content

Instantly share code, notes, and snippets.

View ZouhairCharef's full-sized avatar
🎯
Focusing

ZouhairCharef

🎯
Focusing
View GitHub Profile
@dmancloud
dmancloud / How to Install SonarQube in Ubuntu Linux.md
Last active February 26, 2025 09:10
How to Install SonarQube in Linux

How to Install Sonarqube in Ubuntu Linux

Prerequsites

Virtual Machine running Ubuntu 22.04 or newer

Install Postgresql 15

sudo apt update
sudo apt upgrade

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
@dmancloud
dmancloud / install-rancher-with-lets-encrypt-certificate.md
Last active January 8, 2025 03:32
Rancher With Cert-Manager & Lets Encrypt (Linux)

Install Rancher Manager With Lets Encrypt (Linux)

Infrastructure

  • Domain Name
  • Ability to make DNS Changes
  • Debian 11 Virtual Machine (Should work with Ubuntu)
  • Port 80 & 443 must be accessible for Let's Encrypt to verify and issue certificates

Pick a subdomain and create a DNS entry pointing to the IP Address that will be assigned to the Rancher Server

@PhilipSchmid
PhilipSchmid / rke2-node-cleanup.md
Last active January 13, 2025 16:30
RKE2 node cleanup statements to clean up a node after a failed Rancher custom cluster installation try

RKE2 Node Cleanup To reset a RKE2 node, run the following commands:

# rke2-(server|agent) related
rke2-killall.sh
rke2-uninstall.sh
# rancher-system-agent related
systemctl stop rancher-system-agent.service
systemctl disable rancher-system-agent.service
rm -f /etc/systemd/system/rancher-system-agent.service
@Hardikanand1st
Hardikanand1st / Power iso Serial keys.txt
Last active February 20, 2025 13:39
power iso Serial Keys
===============================================================================
User Name-: Hardik
Registration code :- TZXZT-USMCB-ZRKYP-MTVG3-JM8UL
===============================================================================
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@mikejoh
mikejoh / monitor-calico-felix-using-prom-op-in-k8s.md
Last active November 14, 2024 16:26
Monitor Calico Felix using the Prometheus Operator (Kubernetes)

Monitor Calico Felix using Prometheus Operator

Make sure you have these settings enabled in felix, in this case using enviornment variables:

FELIX_PROMETHEUSMETRICSENABLED = True
FELIX_PROMETHEUSMETRICSPORT = "9091"
FELIX_PROMETHEUSGOMETRICSENABLED = True
FELIX_PROMETHEUSPROCESSMETRICSENABLED = True
@kacole2
kacole2 / harbor.sh
Last active January 15, 2025 09:55
Quick Start Harbor Installation Script on Ubuntu 18.04
#!/bin/bash
#Harbor on Ubuntu 18.04
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server
PS3='Would you like to install Harbor based on IP or FQDN? '
select option in IP FQDN
do
case $option in
IP)
Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution:
@cqbqdd11519
cqbqdd11519 / k8s_installation_guide.md
Last active September 6, 2024 03:22
Installation and setting guide of kubernetes using kubeadm

Kubernetes Installation & Setup Guide

https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/

Before Begin

Following document is about installing and setting up a cluster using kubernetes. Basic structure it supports is a cluster with one MASTER and multiple NODES(slave nodes).

  • COMMON : You should perform for both MASTER and NODE.
  • MASTER : You should perform for MASTER only.
  • NODE : You should perform for NODE only.
@yuanying
yuanying / vagrant-kvm.md
Last active January 4, 2025 20:29
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit

Install vagrant-kvm as user