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 / docker_volume.sh
Last active May 29, 2025 10:11 — forked from Shardj/docker_volume.sh
Docker volume backup and restore function
#!/usr/bin/env bash
ColorOff='\033[0m' # Text Reset
Yellow='\033[0;33m' # Yellow for important info
Red='\033[0;31m' # Red for errors
function infoMessage() {
echo -e ${Yellow}
echo $1
echo -e ${ColorOff}
}

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

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:

@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>
# Ниже мы говорим, что данные расширения отдавать как текст, чтобы не выполнять как исполняемые файлы