Skip to content

Instantly share code, notes, and snippets.

View ashutosh-mishra's full-sized avatar

Ashutosh Mishra ashutosh-mishra

View GitHub Profile
@ashutosh-mishra
ashutosh-mishra / apache_kafka_interview_questions.md
Created September 5, 2023 05:10 — 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).

So, You Want to be a Systems Engineer

Systems Engineering (also known as Infrastructure Engineering, Operations Engineering, or DevOps) is a challenging but rewarding career path. Because Systems Engineering draws from a wide variety of smaller topics, it can be hard to know where to start and in what order to begin. This resource is intended to give you a sketch of some of the learning-paths that that can lead you to a career in Systems Engineering.

What do I need to know?

To start, let's examine a high-level list of topics that established systems engineers should have knowledge of. In each of these topics, the level of depth required to get started as a systems engineer may vary, but it's good to have a general breadth of knowledge on all of these topics.

These lists are not exhaustive, rather a good starting point to gain general knowledge.

buf, bodyErr := ioutil.ReadAll(r.Body)
if bodyErr != nil {
log.Print("bodyErr ", bodyErr.Error())
http.Error(w, bodyErr.Error(), http.StatusInternalServerError)
return
}
rdr1 := ioutil.NopCloser(bytes.NewBuffer(buf))
rdr2 := ioutil.NopCloser(bytes.NewBuffer(buf))
log.Printf("BODY: %q", rdr1)
@ashutosh-mishra
ashutosh-mishra / How I saved a year of our family pictures from a dead hard drive. "How I saved a year of our family pictures from a dead hard drive." saved ars forum
Copied from http://arstechnica.com/civis/viewtopic.php?f=19&t=1197911 (via http://www.libertypages.com/clarktech/?p=349)
-----------------------------------------------
MarkLT1
Ars Scholae Palatinae
et Subscriptor
Tribus: Where the women are strong, the men are good looking, and all the children are above average.
Registered: Nov 11, 2002
Posts: 924
-----------------------------------------------

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@ashutosh-mishra
ashutosh-mishra / ca.md
Created September 30, 2019 11:06 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

To restore a filesystem-backed Vault instance:
1. Seal existing vault (vault seal)
2. Shut down running Vault process (pkill vault)
3. Make backup to new location (cp -r /original-storage /new-storage)
4. Write a new config file to point to /new-storage
5. Start new Vault process (vault server -config=new-config-file.hcl)
6. DO NOT run `vault init`
7. ONLY RUN `vault unseal <key1>`, etc...
@ashutosh-mishra
ashutosh-mishra / edit-init-rc.md
Last active March 13, 2024 07:22 — forked from azureru/extract android kernel.md
How to run custom script from init.rc, How to Extract Android Kernel And Modify The Boot Ramdisk(Android 4+)

init.rc changes

init.rc changes to run any script Can be used to start any android application, service

on property:dev.bootcomplete=1
    exec - system system -- /system/bin/sh <custom script path>
    # exec - system system -- /system/bin/sh /data/local/bootscript/testservice.sh

Script can contains applications start, stop commands