Skip to content

Instantly share code, notes, and snippets.

View tuxfight3r's full-sized avatar
:octocat:
Working from home

Mohan Balasundaram tuxfight3r

:octocat:
Working from home
View GitHub Profile
@tuxfight3r
tuxfight3r / 01.gluster_splitbrain_notes.md
Last active July 24, 2019 14:41
gluster split brain scenario troubleshooting

resolving gfid mismatch

$ gluster vol heal volume_name info

Brick 10.140.99.14:/data/lv_gv0/brick
/docker/registry/v2/repositories/tom-test/toppages/_uploads/d8ec7ebe-3013-4378-98a8-b0f0fa1cf719/startedat
Status: Connected
Number of entries: 1

$ cd /data/lv_gv0/brick
@tuxfight3r
tuxfight3r / PIR_Template.md
Last active July 24, 2019 13:35
PIR Template

PIR - INC012345

DATE: dd/mm/yyyy
SUMMARY

Describe what happened

IMPACT

Describe about the customer impact

  • item 1
@tuxfight3r
tuxfight3r / spinnaker.tf
Created May 17, 2019 00:42 — forked from hareku/spinnaker.tf
Spinnaker + AWS Terraform
#####################################
# Namespace: Spinnaker
#####################################
resource "kubernetes_namespace" "spinnaker" {
metadata {
name = "spinnaker"
}
}
#####################################
@tuxfight3r
tuxfight3r / rhsm.md
Created May 10, 2019 14:36
rhel subscription manager notes

rhel rhsm commands

# get the status of the node
subscription-manager status

# list the subscriptions attached
subscription-manager list
subscription-manager list --available
subscription-manager list --consumed
@tuxfight3r
tuxfight3r / 00bootstrap.md
Last active May 7, 2019 14:24
openshift4 boot strap ignition configs

Openshift 4 bootstrap node ignition configs

# Ignition config touches 4 components when it bootstraps
# 1. Ignition version
$cat bootstrap.ign |jq '.ignition'
{
  "config": {},
  "security": {
    "tls": {}
@tuxfight3r
tuxfight3r / python_webserver.py
Last active March 9, 2022 10:23
python3 HTTP Echo Server with directory browsing
#!/usr/bin/env python3
# Author: Mohan Balasundaram
# Date: 02/05/2019
# Purpose: HTTP Echo server with directory browsing
# To run a http server and return all request headers in / path
# and to allow directory browsing in any other path prefix
from http.server import BaseHTTPRequestHandler, SimpleHTTPRequestHandler
import urllib.parse
@tuxfight3r
tuxfight3r / ocp4_defaults.md
Last active September 10, 2021 17:21
openshift4 default resources

get clusterversions

$ oc get clusterversions
NAME      VERSION      AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.1.0-rc.0   True        False         25h     Cluster version is 4.1.0-rc.0

get clusteroperator

$ oc get clusteroperator
@tuxfight3r
tuxfight3r / certbot.md
Last active November 25, 2019 13:58
certbot letsencrypt tricks

letsencrypt cert tricks

# create free lets encrypt certs
certbot certonly --standalone --preferred-challenges http -d demo.cdn.cluster1.time.net

# Useful links:
https://certbot.eff.org/all-instructions

@tuxfight3r
tuxfight3r / splunk_tricks.md
Created April 30, 2019 10:00
splunk query tricks

splunk notes


index=* | stats count user
index=* | stats count by user method version
index=* user="adm*"|stats count by user method version
index=* NOT user="-"|stats count by user method version
index=* NOT user="-" method=get|stats count by user method version

index=* user="*"| timechart count by user
@tuxfight3r
tuxfight3r / curl_tricks.md
Last active October 3, 2019 14:17
curl tricks

curl connect to https domain using ip

curl https://tower.aws.world.local --resolve tower.ew1.aws.world.local:443:10.100.100.40 --cacert adcacrt.crt -v

curl use proxy

# http proxy
curl -v -x 10.100.25.20:8080 https://google.com -L