This repository contains a script to setup and register a Gitlab Runner container.
chmod +x start-runner.sh
./start-runner.sh
import os | |
from typing import Optional | |
import cv2 | |
from tqdm import tqdm | |
def extract_frames_from_video( | |
target_dir: str, | |
video_path: str, |
import requests | |
skype_notifier_url = 'https://ml.hosseinkhani.me/skype-notifier/send-msg/chat/incident-group' | |
api_endpoints = { | |
'Service 1': 'http://ml.hosseinkhani.me/service1/healthz', | |
'Service 2': 'http://ml.hosseinkhani.me/service2/healthz', | |
} |
$ chmod +x jwt-generator.sh
$ ./jwt-generator.sh '{"alg": "RS256"}' '{"user_name": "xei", "iat": $(date +%s), "exp": 1859006535}' 'RSA256_PRIVATE_KEY.pem' $RSA_PASSPHRASE
location /mag { | |
proxy_pass http://mag.example.com; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
access_log /var/log/nginx/mag.example.com.access.log; | |
error_log /var/log/nginx/mag.example.com.error.log; | |
} |
### Server block - /etc/nginx/sites-available/HOST_NAME | |
### It sould be soft-linked form /etc/nginx/sites-enabled/HOST_NAME in order to be enabled. | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name HOST_NAME; | |
return 301 https://$host$request_uri; |
MySQL is a relational database management system (RDBMS) that enables you to deliver high-performance and scalable Online Transaction Processing (OLTP) applications.
$ sudo apt update
$ sudo apt install mysql-server
cache: | |
#key: "$CI_BUILD_REF_NAME" | |
paths: | |
- node_modules/ | |
#- .npm/ | |
Build App: | |
image: node:latest | |
stage: build | |
script: |