Skip to content

Instantly share code, notes, and snippets.

View alex-bezverkhniy's full-sized avatar

Alexander Bezverkhniy alex-bezverkhniy

View GitHub Profile
@alex-bezverkhniy
alex-bezverkhniy / fileKey
Last active April 23, 2025 19:36
An updated gist description
# First gist
test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.2.0/umd/react-dom.production.min.js"></script>
<title>JS Bin</title>
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@alex-bezverkhniy
alex-bezverkhniy / rest-server.groovy
Created January 31, 2018 21:30
Simple REST server (Spring Boot, Groovy)
@Grab(group='org.springframework.boot', module='spring-boot-starter-web', version='1.1.7.RELEASE')
@Grab(group='org.springframework.boot', module='spring-boot-starter-actuator', version='1.1.7.RELEASE')
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
@alex-bezverkhniy
alex-bezverkhniy / big-data-skill-list.md
Last active August 6, 2018 19:16
Skills for Data Scientists
@alex-bezverkhniy
alex-bezverkhniy / devops-skills-list.md
Last active October 18, 2018 20:19
Skils for DevOps

Skils list for DevOps

In this "gist" I am going to collect information related with DevOps

OpenShift


Docker

Get all docker processes

List Docker CLI commands

docker
docker container --help

Display Docker version and info

docker --version
docker version
@alex-bezverkhniy
alex-bezverkhniy / spring-boot-cheatsheet.md
Last active September 10, 2019 17:40
Spring Boot - cheatsheet

Set array value via expression-driven dependency injection - @Value

import org.springframework.beans.factory.annotation.Value;
...
    @Value("${client.contextPaths:com.myapp.defaultmodel}")
    protected String[] contextPaths;

Comma separated values in .yml file application.yml

[
{
"number": 1,
"title": "What is the supreme law of the land?",
"answers": ["the Constitution"]
},
{
"number": 2,
"title": "What does the Constitution do?",
@alex-bezverkhniy
alex-bezverkhniy / two_sum.rs
Last active August 2, 2021 14:15 — forked from rust-play/playground.rs
Code shared from the Rust Playground
struct Solution;
impl Solution {
// [2, 7, 11, 15] t = 9
// [3, 4, 2] t = 6
fn two_sum(nums: Vec<i32>, target: i32) -> Vec<i32> {
let mut j = 0;
for (i, &num) in nums.iter().enumerate() {
if i > 0 {