Skip to content

Instantly share code, notes, and snippets.

View Kishinskiy's full-sized avatar

Kishinsky Oleg Kishinskiy

View GitHub Profile
cmake_minimum_required(VERSION 3.13) # CMake version check
project(ncursesExample) # Create project "simple_example"
set(CMAKE_CXX_STANDARD 14) # Enable c++14 standard
# Add main.cpp file of project root directory as source file
set(SOURCE_FILES src/main.cpp)
# Add executable target with source files listed in SOURCE_FILES variable
add_executable(ncursesExample ${SOURCE_FILES})
find_package(Curses REQUIRED)
@Kishinskiy
Kishinskiy / nginx_deployment.yaml
Created June 22, 2022 20:15 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
# This is the configuration file for DOSBox DOSBox-X. (Please use the latest version of DOSBox)
# Lines starting with a # are comment lines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.
# To write out ALL options, use command 'config -all' with -wc or -writeconf options.
[log]
# logfile: file where the log messages will be saved to
# vga: Enable/Disable logging of this type.
# Possible values: true, false, debug, normal, warn, error, fatal, never.
# vgagfx: Enable/Disable logging of this type.
# Example aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
alias mypubkey="cat ~/.ssh/id_rsa.pub|pbcopy && echo 'ssh public key copied in buffer'"
alias myprivatekey="cat ~/.ssh/id_rsa|pbcopy && echo 'ssh key private copied in buffer'"
alias kb="kubectl"
alias pt="poetry"
alias mng="python3 manage.py"
alias listen="lsof -i -P -n | grep LISTEN"
@Kishinskiy
Kishinskiy / jenkinsfile
Last active April 6, 2022 15:22
run maven test with credential
ppipeline {
agent any
options {
timestamps()
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '10', daysToKeepStr: '7', numToKeepStr: '50'))
}
environment {
MAVEN_SETINGS_PATH="./settings.xml"
# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,python,java,c++,goland,macos,visualstudiocode,visualstudio,virtualenv,venv,go,kotlin,groovy,maven,gradle
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,python,java,c++,goland,macos,visualstudiocode,visualstudio,virtualenv,venv,go,kotlin,groovy,maven,gradle
### C++ ###
# Prerequisites
*.d
# Compiled Object files
*.slo
@Kishinskiy
Kishinskiy / README.md
Created May 28, 2020 09:38 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@Kishinskiy
Kishinskiy / Dockerfile-apache
Created November 29, 2017 13:01 — forked from EvgenyOrekhov/Docker Compose files for PHP development.md
Simple Docker Compose files for PHP development
FROM php:apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends libpq-dev \
&& docker-php-ext-install pdo_pgsql pdo_mysql