Skip to content

Instantly share code, notes, and snippets.

View MahatmaFatalError's full-sized avatar

Mahatma_Fatal_Error MahatmaFatalError

View GitHub Profile
@MahatmaFatalError
MahatmaFatalError / gist:a4f5cd5fb96aaf60aa599dfa2454c951
Last active April 18, 2025 15:13
Istio/Envoy WASM plugin for tenant context propagation using OTel/w3c traceparent and rust

Cargo.toml

[package]
name = "tenant-propagation"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]
@MahatmaFatalError
MahatmaFatalError / memory-limit-request-jvm.md
Created October 18, 2024 07:03 — forked from petrbouda/memory-limit-request-jvm.md
Memory LIMIT and REQUEST in Containers and JVM

Memory LIMIT and REQUEST in Containers and JVM

  • Do you run a JVM inside a container on Kubernetes (or maybe OpenShift)?
  • Do you struggle with REQUEST and LIMIT parameters?
  • Do you know the impact of those parameters on your JVM?
  • Have you met OOM Killer?

Hope you will find answers to these questions in this example-based article.

How to set up JVM Heap size in a Container

@MahatmaFatalError
MahatmaFatalError / iterm2-solarized.md
Created January 19, 2021 12:41 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas

alternatively

sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
@MahatmaFatalError
MahatmaFatalError / DemoRepository
Created August 19, 2020 11:09 — forked from mobynote/DemoRepository
Use jdbcTemplate implement a pagination in spring
package com.domain;
import com.domain.Module;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
@MahatmaFatalError
MahatmaFatalError / index.html
Created June 26, 2020 12:58 — forked from sorin-costea/index.html
Vue.js if you're not a frontend developer
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Vue test</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
@MahatmaFatalError
MahatmaFatalError / README.md
Created February 18, 2020 13:15 — forked from dberstein/README.md
Git commit hook that prepends message with Jira issue(s) found in branch name (PR branch) otherwise requires message contains at least one Jira issue

With this commit-msg git hook and your branch names have Jira reference(s), your commit messages will be automatically updated to include any missing reference(s) too.

Installation

Place contents of this gist's commit-msg file into your checkout's .git/hooks/commit-msg file and make it executable.

Bash

cd path/to/your/git/checkout \
&amp;&amp; install -vbm 755 &lt;(curl -s https://gist.githubusercontent.com/dberstein/dcc50e171163c3f6e0f23b2b5de5dd49/raw/5e5372ff22a872321ad1f5469a4d579c15ce498a/commit-msg) "$(git rev-parse --git-dir)/hooks/commit-msg"
@MahatmaFatalError
MahatmaFatalError / introrx.md
Created July 20, 2019 10:16 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing