Skip to content

Instantly share code, notes, and snippets.

@igorzakhar
igorzakhar / docker_rus.md
Created August 5, 2025 09:48 — forked from wtw24/docker_rus.md
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

Шпаргалка. Работа с ветками

Клонирование чужого репозитория

git clone [email protected]:YandexPraktikum/first-project.git (от англ. clone, «клон», «копия») — склонируй репозиторий с URL first-project.git из аккаунта YandexPraktikum на мой локальный компьютер.

Создание веток

git branch feature/the-finest-branch (от англ. branch, «ветка») — создай ветку от текущей с названием feature/the-finest-branch;

git checkout -b feature/the-finest-branch — создай ветку feature/the-finest-branch и сразу переключись на неё.

Навигация по веткам

git branch (от англ. branch, «ветка») — покажи, какие есть ветки в репозитории и в какой из них я нахожусь (текущая ветка будет отмечена символом *);

package main
import (
"crypto/ed25519"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"math/big"
@igorzakhar
igorzakhar / client.go
Created April 24, 2021 08:43 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@igorzakhar
igorzakhar / maxconn.go
Created April 20, 2021 13:56 — forked from caiofilipini/maxconn.go
Go (golang) HTTP server with a simple connection limiter (max conn)
package main
import (
"context"
"flag"
"log"
"net"
"net/http"
"os"
"os/signal"
import os
import redis
def upload_questions_into_redis(text, redis_conn):
question, answer = None, None
counter = 1
for contents in text:
package main
import (
"bufio"
"bytes"
"fmt"
"io/ioutil"
"net/http"
"os"
"sync"
import argparse
from concurrent.futures import ThreadPoolExecutor, as_completed
import logging
import random
import sys
import requests
from fake_useragent import UserAgent
package main
import (
"errors"
"fmt"
"strconv"
"strings"
)
// CheckCommission проверяет значение комиссии.
while True:
try:
async with session.get(url, timeout=5) as response:
...
...
except asyncio.TimeoutError:
print('Timeout Error')
await asyncio.sleep(5) # можно подождать перед повторным запросом
continue
else: