Skip to content

Instantly share code, notes, and snippets.

View ChetanKoneru's full-sized avatar

Chetan Koneru ChetanKoneru

View GitHub Profile
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://adaway.org/hosts.txt
https://big.oisd.nl
https://bitbucket.org/ethanr/dns-blacklists/raw/8575c9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_Appendix_D.txt
https://blocklistproject.github.io/Lists/abuse.txt
https://blocklistproject.github.io/Lists/ads.txt
https://blocklistproject.github.io/Lists/drugs.txt
https://blocklistproject.github.io/Lists/fraud.txt
https://blocklistproject.github.io/Lists/gambling.txt
https://blocklistproject.github.io/Lists/malware.txt
@ChetanKoneru
ChetanKoneru / config.json
Last active March 31, 2026 21:33 — forked from agzam/warning.md
ECA_TOOL - elisp eval MCP to run via emacsclient, written in babashka
// if used with ECA, elisp-eval-server.bb needs to be
// copied into ~/.config/eca/tools and the following
// has to be added into the ~/.config/eca/config.json:
"mcpServers": {
"elisp-eval": {
"command": "/Users/ag/tools/elisp-eval-server.bb"
}
},
@ChetanKoneru
ChetanKoneru / update_flatpak_cli.py
Created July 10, 2025 16:37 — forked from ssokolow/update_flatpak_cli.py
Utility for making Flatpak-installed apps available in the terminal through their normal command names
#!/usr/bin/env python3
"""Flatpak CLI Shortcut Generator
A simple no-argument tool that generates launchers with traditional non-flatpak
command names for your installed Flatpak applications in ~/.local/bin/flatpak.
Does full collision detection and warns you if you forgot to add its output
directory to your PATH. Also overrules the command-line specified in the
``.desktop`` file if the Flatpak maintainer didn't include support for
command-line arguments.
@ChetanKoneru
ChetanKoneru / apache_kafka_interview_questions.md
Created October 17, 2024 18:24 — forked from bansalankit92/apache_kafka_interview_questions.md
50 Apache Kafka Interview Questions and Answers for all experience level

(Q.1) What is Apache Kafka?

Apache Kafka is a publish-subscribe open source message broker application. This messaging application was coded in “Scala”. Basically, this project was started by the Apache software. Kafka’s design pattern is mainly based on the transactional logs design. For detailed understanding of Kafka, go through,
Kafka Tutorial.

(Q.2) Enlist the several components in Kafka.

The most important elements of Kafka are:

  • Topic – Kafka Topic is the bunch or a collection of messages.
  • Producer – In Kafka, Producers issue communications as well as publishes messages to a Kafka topic.
  • Consumer – Kafka Consumers subscribes to a topic(s) and also reads and processes messages from the topic(s).
@ChetanKoneru
ChetanKoneru / proj2ram
Created May 17, 2022 18:12 — forked from redguardtoo/proj2ram
script to copy project to tmpfs
#!/bin/sh
if [ -z "$1" ];then
echo "Usage:"
echo " proj2ram proj-name"
echo " proj2ram restore proj-name"
exit 1
fi
@ChetanKoneru
ChetanKoneru / k8s-jprofiler-attach.sh
Created August 27, 2021 14:24 — forked from adiii717/k8s-jprofiler-attach.sh
Attach JProfiler agent to a JVM running in a Kubernetes pod
#!/bin/bash
set -ex
usage()
{
echo "usage: k8s-jprofiler-attach.sh pod_name"
}
k8s_jvm_pod="${1}"
control 'azurerm_resource_groups' do
describe azurerm_resource_groups do
its('names') { should include 'myResourcegroup' }
end
end
control 'azurerm_virtual_machine' do
describe azurerm_virtual_machine(resource_group: 'MyResourceGroup', name: 'prod-web-01') do
it { should exist }
it { should have_monitoring_agent_installed }
it { should have_only_approved_extensions(['MicrosoftMonitoringAgent']) }
its('type') { should eq 'Microsoft.Compute/virtualMachines' }
its('installed_extensions_types') { should include('MicrosoftMonitoringAgent') }
its('installed_extensions_names') { should include('LogAnalytics') }
its('properties.location') { should eq 'northeurope'}
control "subnet" do
describe azurerm_subnet(resource_group: 'MyResourceGroup', vnet: 'vnet-prod', name: 'subnet-web') do
it { should exist }
its('address_prefix') { should eq '192.168.0.0/24' }
its('nsg') { should eq 'my-nsg'}
end
end
@ChetanKoneru
ChetanKoneru / gist:48b3f4cd71833046adbdea2e6a10f704
Created June 26, 2021 02:03 — forked from daicham/gist:1955543
Print the methods of Jenkins inner object on script console
//all job name
jenkins.model.Jenkins.instance.items.each {
println "Job: ${it.name}"
}
//method list of Jenkins instance
jenkins.model.Jenkins.instance.class.methods.each {
println "Jenkins method: ${it.name}"
}