Skip to content

Instantly share code, notes, and snippets.

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

Balla Roland broland07

🏠
Working from home
View GitHub Profile
@FahadBSyed
FahadBSyed / nfs-server.yml
Created November 8, 2022 17:33
nfs server one pod two containers
# Taken from: https://github.com/appscode/third-party-tools/blob/master/storage/nfs/README.md
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server
namespace: storage
spec:
selector:
matchLabels:
app: nfs-server
@vidomarkas
vidomarkas / mysql_cheat_sheet.md
Last active August 21, 2022 14:19 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

REGEX Tutorial

This tutorial is designed and broke down to hopefully simplify and better solidify ones understanding to using regular expressions efficiently.

Summary

The example I'm going to use for this tutorial is a Email validator the following is the Regex we will be looking at /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/

Table of Contents

Poor Man's Global Traffic Manager

Sometimes we need to add redundancy to some service or server which happen to be a public-facing entry point of our infrastructure. For example, imagine we want to add a high availability pair for a load balancer which sits on the edge of network and forwards traffic to alive backend servers.

                                             ┌─────────────┐
                                             │             │
                                      ┌─────►│  Backend 1  │
                                      │      │             │
                                      │      └─────────────┘
@joulgs
joulgs / terminal.txt
Last active May 16, 2024 09:38
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@shivam1283
shivam1283 / HTTP2.0.md
Created June 5, 2022 17:44
Networking

Traditional HTTP requests flow throught the network "pipe" (TCP connection) and the pipe only allows requests to flow in 1 direction ("to" or "from") and only 1 request can be be sent through the at once (Single-plexing).
Image

HTTP 1.1 allows browser to form 6 such TCP connections to the server. This approach was quite expensive as servers held resource descritptors which eats a lot of server memory. Image

HTTP2 enabled multiplexing thought the same network pipe. The pipe has different streams and each stream carriers an ID which lets client map the responses to its respective client.

HTTP2

@akinsella
akinsella / run-vagrant-on-mac-m1.md
Last active June 8, 2023 11:58
Proposed solution to run Vagrant successfully on Mac M1

Mumshad Mannambeth ( @mmumshad ) proposes, in his Udemy CKA course, to install Kubernetes with kubeadm on local machine. As more and more Mac machines are based on M1 CPUs chips, this Gist proposes a solution to get Vagrant working on Mac M1.

Problem statement: Virtualbox is not supported at the time on M1 chips, as a result, it is not possible to train on local machine. Alternative options for virtualization on Mac are vMWare Fusion or Parallels, or you have to run the workshop on some Cloud Provider (For example: Digital Ocean, Scaleway, Vultr or OVH)

Notice: Provided instructions may not be fully exhaustive, however all required elements should be there to manage to get it work on Mac M1 ( It works on my machine ... 😅 )

I tried with success an installation based on Vagrant + VMWare

@asaah18
asaah18 / python guide.md
Last active November 5, 2022 16:20
a python guide/cheat-sheet intended to those who already know python and want a mind refresh or looking for a specific syntax

Python Guide

This python guide is intended to those who already know python and want a mind refresh or looking for a specific syntax.
-as this guide doesn't elaborate in explaining thing that a programmer would already know -like: variable, function, csv, json-

additionally, this guide is not intended to be a replacement for reading official Python documentation.

guide version: 2.1.0 | python version: 3.10

| Part of Version | Explanation |

@kvlknctk
kvlknctk / multicluster.yml
Created September 7, 2021 21:01
elastic search cluster
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03