Skip to content

Instantly share code, notes, and snippets.

View viktortnk's full-sized avatar

Viktor Taranenko viktortnk

View GitHub Profile
@viktortnk
viktortnk / Install_OpenCV4_CUDA11_CUDNN8.md
Created August 13, 2023 10:28 — forked from raulqf/Install_OpenCV4_CUDA11_CUDNN8.md
How to install OpenCV 4.5 with CUDA 11.2 in Ubuntu 20.04

How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 20.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@viktortnk
viktortnk / haproxy.conf
Created August 30, 2020 16:32
Redis topologies
# Specifies TCP timeout on connect for use by the frontend ft_redis
# Set the max time to wait for a connection attempt to a server to succeed
# The server and client side expected to acknowledge or send data.
defaults REDIS
mode tcp
timeout connect 3s
timeout server 6s
timeout client 6s
# Specifies listening socket for accepting client connections using the default
syntax = "proto3";
package examples;
message Request {
string name = 1;
}
message Response {
string resp = 1;
@viktortnk
viktortnk / service-with-ingress.yml
Created June 20, 2018 07:52
Example of k8s service with ingress
# service-with-ingress.yml
apiVersion: v1
kind: Service
metadata:
name: my-frontend
labels:
app: my-frontend
env: dev
spec:
type: NodePort
@viktortnk
viktortnk / ingress-values-dev.yml
Created June 20, 2018 07:44
Nginx Ingress chart example
# ingress-values-dev.yml
controller:
replicaCount: 3
config:
ssl-redirect: "false"
hsts: "false"
hsts-include-subdomains: "true"
hsts-max-age: "0"
client-body-buffer-size: "128k"
disable-access-log: "true"
@viktortnk
viktortnk / service-example.yml
Created June 20, 2018 07:22
k8s service example
# service-example.yml
kind: Service
apiVersion: v1
metadata:
name: my-service-name
namespace: default
labels:
app: my-service-name
env: dev
spec:
@viktortnk
viktortnk / deployment-sample.yml
Last active June 20, 2018 07:15
k8s deployment sample
# deployment-sample.yml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: my-service-name # name of your deployment
namespace: default
spec:
replicas: 4 # number of instances to spin
template:
labels: # parameters to match instances in your deployment