Skip to content

Instantly share code, notes, and snippets.

View OduorKariuki's full-sized avatar
👨‍💻
Branching

Oduor Kariuki OduorKariuki

👨‍💻
Branching
View GitHub Profile
@mauromalara
mauromalara / expand-wazuh-indexer-installation.md
Last active September 25, 2025 16:55
Expand the Wazuh-Indexer installation with a new node (Add a new node)

Scenario

  1. Wazuh version -> 4.6.0
  2. Server 1 -> Will contain the W. Manager (master node)
  3. Server 2 -> Will contain the W. Manager (worker node)
  4. Server 3 -> Will contain the W. Dashboard and the W. Indexer (main node)
  5. Server 4 -> Will contain the W. Indexer (extra node to be added)

[!IMPORTANT]

@NotHarshhaa
NotHarshhaa / k8s-install.md
Last active October 25, 2025 09:12
Kubernetes (k8s) step-by-step installation guide on Ubuntu 20.04/22.04/24.04 from scratch [2025 Latest]

banner

🧩 Kubernetes Installation Guide (2025 Update)

By H A R S H H A A


Step 1: Update Your System

@Mishco
Mishco / content.md
Last active October 24, 2025 08:11
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active October 21, 2025 12:01
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@manishtiwari25
manishtiwari25 / country_state.json
Last active November 1, 2025 00:36
List Of Countries With States And Other Useful Information, Updated On 11/01/2025 00:36:43
[
{
"name": "Andorra",
"countryCode": "AD",
"countryCodeAlpha3": "AND",
"phone": "376",
"currency": "EUR",
"flag": "https://www.geonames.org/flags/x/ad.gif",
"symbol": "\u20AC",
"stateProvinces": [
@jonasgroendahl
jonasgroendahl / useWebSockets.tsx
Created October 29, 2020 21:48
useWebSockets()
import {useEffect, useRef, useState} from 'react';
import io from 'socket.io-client';
type Props = {
userId: number;
enabled: boolean;
onConnected?: () => void;
};
type Message = {
import re
from typing import AbstractSet, Any, Dict, List, Optional, Union
from azure.appconfiguration import AzureAppConfigurationClient
from decouple import config
from pydantic.fields import ModelField
from pydantic.main import BaseModel, Extra
from pydantic.typing import display_as_type
from pydantic.utils import deep_update, sequence_like
@vorpal56
vorpal56 / Hadoop Windows Installation and Running MapReduce Jobs.md
Last active September 5, 2025 14:38
Hadoop 3.2.1 Windows 10 Installation step by step guide and running MapReduce Jobs

Setup Hadoop on Windows 10 machines

Consolidated instructions on how to setup and run Hadoop on Windows 10 machines. This is exactly written from Hadoop 3.2.1 Installation on Windows 10 step by step guide. Big thanks to Raymond, the original writer. If you already have Hadoop installed and configured on your machine, you can go to the Running MapReduce Jobs section.

Required tools

  1. Java JDK - used to run the Hadoop since it's built using Java
  2. 7Zip or WinRAR - unzip Hadoop binary package; anything that unzips tar.gz
  3. CMD or Powershell - used to test environment variables and run Hadoop

Step 1 - Download and extract Hadoop

import traceback
import requests
import sys
import linecache
import requests
# Put your actual Sentry DSN URL here:
SENTRY_DSN = 'https://[email protected]/ISSUES_ID'