Skip to content

Instantly share code, notes, and snippets.

View shri3k's full-sized avatar
🤖
automate all things

Yojan Shrestha shri3k

🤖
automate all things
  • Maryland
  • 05:00 (UTC -05:00)
View GitHub Profile
@shri3k
shri3k / http_streaming.md
Created June 6, 2022 03:34 — forked from CMCDragonkai/http_streaming.md
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

@shri3k
shri3k / ANSI.md
Created April 12, 2022 11:20 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
https://github.com/golang/go/archive/go1.16.tar.gz

Keybase proof

I hereby claim:

  • I am shri3k on github.
  • I am shri3k (https://keybase.io/shri3k) on keybase.
  • I have a public key whose fingerprint is 3706 41E0 A262 3CF5 73B3 8570 DE9B 8D54 4C57 CBD1

To claim this, I am signing this object:

@shri3k
shri3k / rabbitmq_delete.sh
Created August 27, 2019 15:01
delete all queues in rabbitmq
rabbitmqctl list_queues | tail -n +4 | awk 'BEGIN {FS="\t"} /amp/ { print $1 }' | xargs -L 1 rabbitmqctl delete_queue
@shri3k
shri3k / es.sh
Last active August 20, 2019 14:02
#! /bin/bash
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update
sudo apt-get install elasticsearch
{
"extends": "airbnb",
"rules": {}
}
# .prettierrc or .prettierrc.yaml
trailingComma: "all"
tabWidth: 2
tabs: false
semi: true
singleQuote: true
bracketSpacing: true
jsxBracketSameLine: false
arrowParens: avoid
insertPragma: false
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
@shri3k
shri3k / webkit-pseudo-elements.md
Created April 26, 2019 21:03 — forked from leostratus/webkit-pseudo-elements.md
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;