Skip to content

Instantly share code, notes, and snippets.

View intech's full-sized avatar
🌍
The idea is not to live forever, it is to create something that will

Ivan Zhuravlev intech

🌍
The idea is not to live forever, it is to create something that will
View GitHub Profile
@intech
intech / .htaccess
Last active November 15, 2016 08:19 — forked from anonymous/.htaccess
Закрытие директории загрузки от исполнения
# Запрещаем листинг директории
Options -Indexes
# Здесь мы запрещаем доступ из веба к файлам с расширениями
<FilesMatch "\.(php|cgi|pl|php|php3|php4|php5|php6|php7|phps|phtml|shtml|py|phtml|pl|asp|aspx|cgi|dll|exe|ico|shtm|shtml|fcg|fcgi|fpl|asmx|pht|py|psp)$">
Order allow,deny
Deny from all
</FilesMatch>
# Ниже мы говорим, что данные расширения отдавать как текст, чтобы не выполнять как исполняемые файлы

leveldb

am e,bedded key/value database. Is good to be a modular database. If you wanna run applications on browser as well as in node.

its embedded it is in the same process. It lives in the program. It was built for chrome.

install

Since leveldb is a standalone database, you can install it with npm:

Networking-streams

servers and clients

Any networked computer can be a server Any networked computer can be a client

Package a put in a little pieces.

tc vs udp

TCP - reliable transport: has ACK