Skip to content

Instantly share code, notes, and snippets.

@VSS-DEV
VSS-DEV / install_docker_in_ubuntu_21-10.sh
Created March 13, 2022 20:44 — forked from pablodz/install_docker_in_ubuntu_21-10.sh
Install Docker in Ubuntu 21.10, Install Dockercompose on Ubuntu 21.10
# [🟨OPTIONAL] Uninstall old docker versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Refresh latest version
sudo apt-get update
# Install pre-req
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
@VSS-DEV
VSS-DEV / Program.cs
Created October 20, 2021 20:21 — forked from emoacht/Program.cs
Sample of Task.Factory.FromAsync method
using System;
using System.IO;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
if (0 == args.Length)
return;
@VSS-DEV
VSS-DEV / asyncio_ssl_example.py
Created June 18, 2021 13:05 — forked from messa/asyncio_ssl_example.py
Python asyncio + SSL TCP client/server example
#!/usr/bin/env python3
import asyncio
import multiprocessing
import os
import ssl
from time import sleep
port = 9000
@VSS-DEV
VSS-DEV / docker
Last active November 27, 2023 13:29
команды для докера
docker commit [name_conteiner] [name_your_docker_repository] - сделать собственный комит
docker push [name_your_docker_repository] - кидаем на сервер
apt install locales gnupg wget curl nano htop mc systemd
docker start pg_deb && docker exec -it -d pg_deb /etc/init.d/postgresql start
####создание volume в нужную папку
docker volume create namevolume -o device=yourfolder -o type=none -o o=bind
#####создание volume из nfs
@VSS-DEV
VSS-DEV / gpg_test.py
Created May 16, 2021 12:52 — forked from ryantuck/gpg_test.py
working example of using gnupg in python
# install:
# pip3 install python-gnupg
# note - gpg needs to be installed first:
# brew install gpg
# apt install gpg
# you may need to also:
# export GPG_TTY=$(tty)