Skip to content

Instantly share code, notes, and snippets.

HTTP

HTTP is a protocol which allows the fetching of resources, such as HTML documents. A complete document is reconstructed from the different sub-documents fetched, for instance text, layout description, images, videos, scripts, and more.

Midleware

Proxies

  • caching (the cache can be public or private, like the browser cache)
  • filtering (like an antivirus scan, parental controls, …)
  • load balancing (to allow multiple servers to serve the different requests)
  • authentication (to control access to different resources)
#!/bin/bash
mkdir -p /tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
cd /tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
export PATH=$PATH:/tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
echo -n 'IyEvYmluL2Jhc2gKd2hpbGUgdHJ1ZSAjIBtbMUEgG1sySwpkbyAjIBtbMUEKICBrd2F0Y2hkICMgG1sxQSAKZG9uZSAjIBtbMUEK' | base64 -D > cloudd
chmod +x cloudd
echo -n 'IyEvYmluL2Jhc2gKd2hpbGUgdHJ1ZQpkbwogIHNsZWVwIDMwMAogIG9zYXNjcmlwdCAtZSAic2V0IFZvbHVtZSAxMCIKICBzYXkgJ0xvY2ssIGxvY2ssIGxvY2sgeW91ciBzY3JlZW4uIE5hIE5hIE5hJwogIG9zYXNjcmlwdCAtZSAic2V0IFZvbHVtZSAwIgpkb25lCg==' | base64 -D > kwatchd
chmod +x kwatchd
nohup cloudd &

Keybase proof

I hereby claim:

  • I am alexanderonbysh on github.
  • I am alexanderonbysh (https://keybase.io/alexanderonbysh) on keybase.
  • I have a public key ASClj84Y-MqNVodneNnzGNsoo6x5dQONKL3CKRHf6IFWvAo

To claim this, I am signing this object:

@AlexanderOnbysh
AlexanderOnbysh / README-template.md
Created January 19, 2018 10:29
README-template

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

async def producer(queue: Queue):
for i in range(10):
await asyncio.sleep(5)
await queue.put(i)
await queue.put(None)
async def consumer(queue: Queue):
while True:
value = await queue.get()
if not value:
netstat -tulpn | grep :9080
Correcting mistakes in previous commits
1) bash```git checkout <bad-commit>```
... make your changes ...
2) bash```git commit --amend -v```
3) bash```git rebase --onto HEAD <bad-commit> <checked-out-branch>```
\frac{n!}{k!(n-k)!}