Skip to content

Instantly share code, notes, and snippets.

View sabuhish's full-sized avatar
💭
Pythonic, Linux lover

Sabuhi sabuhish

💭
Pythonic, Linux lover
  • Baku Azerbaijan
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sabuhish on github.
  • I am sabuhish (https://keybase.io/sabuhish) on keybase.
  • I have a public key ASD-e3s1F_AyP3BONS7Qua0lhEN7D0yDBJDrsZLXVlohTAo

To claim this, I am signing this object:

@sabuhish
sabuhish / gist:ae51a08c6cd58cc9f0c2b95816f67f6e
Created February 5, 2022 15:18 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@sabuhish
sabuhish / comments.md
Created January 16, 2022 09:45 — forked from adamveld12/comments.md
Go Code Review Comments

Go Code Review Comments

This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.

You can view this as a supplement to http://golang.org/doc/effective_go.html.

Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.

GET /_cat/indices?v
GET /_cat/indices?h=index
GET logstash-*/_settings
----Branch----
git checkout -
moves to the previous branch where you were before.
git diff master..my-branch
see the difference between branches
@sabuhish
sabuhish / irc.md
Last active October 10, 2020 06:57 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@sabuhish
sabuhish / curl.md
Created June 29, 2020 14:06 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

docker run -p 4574:4574 -p 4576:4576 --name my_localstack localstack/localstack
################################SQS###############################################
#to created test_queue:
aws --endpoint-url=http://localhost:4576 sqs create-queue --queue-name SQSTest
#send message to queue
config set notify-keyspace-events Ex
config get notify-keyspace-events
redis-cli --csv PSUBSCRIBE '__key*__:*'