Skip to content

Instantly share code, notes, and snippets.

View khyurri's full-sized avatar

Ruslan khyurri

  • Epam
  • Saint-Petersburg
View GitHub Profile
code --install-extension cschleiden.vscode-github-actions
code --install-extension cschlosser.doxdocgen
code --install-extension Equinusocio.vsc-community-material-theme
code --install-extension GitHub.copilot
code --install-extension GitHub.github-vscode-theme
code --install-extension golang.go
code --install-extension hashicorp.terraform
code --install-extension humao.rest-client
code --install-extension jeff-hykin.better-cpp-syntax
code --install-extension ms-azuretools.vscode-docker
@khyurri
khyurri / gist:3b870a6c6b72bd6eecd080020435064c
Last active January 20, 2022 11:12
kubectl on AWS Cloud Shell

Doc: https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html

curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl
chmod +x ./kubectl
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
kubectl version --short --client
@khyurri
khyurri / gist:356427cbb7abdf8d6b85e24f12c52c23
Created October 25, 2021 16:28
Python project configuration
# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
@khyurri
khyurri / search_engine.py
Last active August 4, 2021 06:56
Search engine from Piter Python Summer Meetup
import os
import selectors
import socket
import time
from collections import defaultdict, deque
from typing import Callable, TextIO, Generator
index = defaultdict(set)
sel = selectors.DefaultSelector()
@khyurri
khyurri / gist:9b9909540465b0ba1258df1595ae6a17
Created July 29, 2020 06:35
XCode boost configuration
Build Settings -> Search Paths -> Header Search Paths -> Debug|Release
/usr/local/Cellar/boost/1.72.0_3/include
Build Settings -> Search Paths -> Library Search Paths -> Debug|Release
/usr/local/Cellar/boost/1.72.0_3/lib