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.
config set notify-keyspace-events Ex
config get notify-keyspace-events
redis-cli --csv PSUBSCRIBE '__key*__:*'
from motor.motor_asyncio import AsyncIOMotorClient
from bson.objectid import ObjectId
from bson.json_util import loads as bson_loads, dumps as bson_dumps
import asyncio
import pprint
from pymongo import ReturnDocument
import json
loop = asyncio.get_event_loop()
@sabuhish
sabuhish / basic-mongo-queries.js
Created April 11, 2020 15:27 — forked from dipaktelangre/basic-mongo-queries.js
MongoDB: Indexing - Create, Update, Delete and Analyze MongoDb Indexes
//show databases
show dbs
//Use Database test
use test
// show collections from the database
show collections
// show counts of records in collection
@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.