Skip to content

Instantly share code, notes, and snippets.

View thedebugger's full-sized avatar

Sumit Vij thedebugger

View GitHub Profile
@thedebugger
thedebugger / destination rule
Last active June 16, 2022 17:42
helloserver-max-pending-req envoy filter
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: helloserver-mesh-max-pending
namespace: asm-test
spec:
workloadSelector:
matchLabels:
app: helloserver
host: hellosvc.asm-test.svc.cluster.local
@thedebugger
thedebugger / commands.sh
Created December 23, 2021 05:39
Error: Fields in the CSR were modified or removed in the signed CA certificate
gcloud privateca pools create $(CA_POOL) \
--location $(LOCATION) \
--tier devops \
--project $(PROJECT_ID) \
--issuance-policy private-ca/policy.yaml
gcloud privateca roots create $(ROOT_CA) \
--pool=$(CA_POOL) \
--location=$(LOCATION) \
--project=$(PROJECT_ID) \
* https://cloud.google.com/container-optimized-os/docs/how-to/toolbox
* https://blog.container-solutions.com/ebpf-cloud-native-tools-an-overview-of-falco-inspektor-gadget-hubble-and-cilium
* https://github.com/iovisor/kubectl-trace
* https://github.com/iovisor/bpftrace
* https://blog.aquasec.com/vmlinux.h-ebpf-programs
* https://www.brendangregg.com/BPF/bpf_performance_tools_book.png
* https://github.com/envoyproxy/envoy/blob/main/bazel/PPROF.md
* https://kubernetes.io/blog/2017/12/using-ebpf-in-kubernetes/
* https://github.com/iovisor/kubectl-trace
* https://cloud.google.com/profiler/docs/profiling-java
@thedebugger
thedebugger / include supervisor
Created May 19, 2017 17:29
meh, some saltstack scripts
include:
- supervisorctl-update
@thedebugger
thedebugger / etc_nixos_configuration.nix
Last active May 5, 2017 22:33
overrideAttrs is missing
{ config, pkgs, ... }:
memcachedFix = pkgs.php56Packages.memcached.overrideAttrs oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.zlib ];
};
in
{
environment.systemPackages = with pkgs; [
memcachedFix
]
def fileExists?(Dir: String): Task[Boolean] = {
val task: Stream[Task, Boolean] =
fs2.io.file.readAll[Task](Paths.get(dir, "default.nix"), 4096)
exists ( _ => true )
}
jenkinsAdmin = mkOption {
11 type = types.submodule {
10 options = {
9 user = mkOption {
8 type = types.str;
7 default = "fa-rel-jenkins";
6 description = ''
5 Name for Jenkins admin user.
4 '';
3 };
result/bin/eb_deploy --help
/nix/store/0d00q7k7y9nnjppcshq3766xi4l45h60-ruby-2.3.0-p0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
from /nix/store/0d00q7k7y9nnjppcshq3766xi4l45h60-ruby-2.3.0-p0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from result/bin/eb_deploy:16:in `<main>'
@thedebugger
thedebugger / json
Created February 22, 2016 22:54
datadog error
{
"title": "svij storm dashy draft",
"description": "wth",
"graphs": [
{
"definition": {
"requests": [
{
"q": "avg:system.mem.free{env:lookout-storm-lesstage0} by {host}"
}
@thedebugger
thedebugger / gist:1f84af576f77406a734e
Created January 21, 2016 23:25
Cassandra Out of native memory error
ERROR [CompactionExecutor:2969] 2016-01-20 09:32:30,256 CassandraDaemon.java (line 198) Exception in thread Thread[CompactionExecutor:2969,1,main]
java.lang.RuntimeException: Out of native memory occured, You can avoid it by increasing the system ram space or by increasing bloom_filter_fp_chance.
at org.apache.cassandra.utils.obs.OffHeapBitSet.<init>(OffHeapBitSet.java:49)
at org.apache.cassandra.utils.FilterFactory.createFilter(FilterFactory.java:85)
at org.apache.cassandra.utils.FilterFactory.getFilter(FilterFactory.java:79)
at org.apache.cassandra.io.sstable.SSTableWriter$IndexWriter.<init>(SSTableWriter.java:431)
at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:102)
at org.apache.cassandra.db.compaction.CompactionTask.createCompactionWriter(CompactionTask.java:282)
at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:152)
at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAw