Skip to content

Instantly share code, notes, and snippets.

View mikhno-s's full-sized avatar
🇺🇦
Stay strong

Serhii M. mikhno-s

🇺🇦
Stay strong
  • Wix
  • Kyiv, Ukraine
View GitHub Profile
@mikhno-s
mikhno-s / vector.log
Created March 16, 2021 12:58
vector debug log
Mar 16 10:09:55.704 INFO vector::app: Log level is enabled. level="vector=trace,codec=trace,vrl=trace,file_source=trace,tower_limit=trace"
Mar 16 10:09:55.704 INFO vector::sources::host_metrics: PROCFS_ROOT is unset. Using default '/proc' for procfs root.
Mar 16 10:09:55.704 INFO vector::sources::host_metrics: SYSFS_ROOT is unset. Using default '/sys' for sysfs root.
Mar 16 10:09:55.704 INFO vector::app: Loading configs. path=[("/etc/vector/envoy-logs.toml", None), ("/etc/vector/vector.toml", None)]
Mar 16 10:09:57.859 DEBUG vector::buffers::disk::leveldb_buffer: Compacting disk buffer.
Mar 16 10:10:05.379 DEBUG vector::buffers::disk::leveldb_buffer: Compacting disk buffer.
Mar 16 10:10:05.389 DEBUG vector::tls::settings: Fetching system root certs.
Mar 16 10:10:05.389 DEBUG vector::rusoto: Using default credentials provider for AWS.
Mar 16 10:10:05.389 INFO vector::topology: Running healthchecks.
Mar 16 10:10:05.389 INFO vector::topology: Starting source. name="internal_metrics"
@mikhno-s
mikhno-s / rack_server_delete.sh
Created February 18, 2021 13:59
Delete rackspace server
#!/bin/bash
set -x
USERNAME=$1
APIKEY=$2
SERVER=$3
if [[ -z $USERNAME || -z $APIKEY ]]; then
echo "Run $0 \$USERNAME \$APIKEY \$SERVER"
exit 1
fi

Keybase proof

I hereby claim:

  • I am mikhno-s on github.
  • I am serhiimi (https://keybase.io/serhiimi) on keybase.
  • I have a public key ASC_d2Wh-qRUB5OlCIoeXNPGCZU7P8muHbnhpf-kwSz4kgo

To claim this, I am signing this object:

@mikhno-s
mikhno-s / mergeListOfDicts
Created August 1, 2018 22:00
This is example of algorithm of merge two lists of maps
public void mergeLists () {
def first = [
["name":"foo","val":"1"],
["name":"bar","val":"2"]
]
def second = [
["name":"foo","val":"666"]
]
@mikhno-s
mikhno-s / jenkins-cli-help.txt
Created January 2, 2018 16:12
jenkins-cli help description
add-job-to-view
Adds jobs to view.
build
Builds a job, and optionally waits until its completion.
cancel-quiet-down
Cancel the effect of the "quiet-down" command.
clear-queue
Clears the build queue.
connect-node
Reconnect to a node(s)
@mikhno-s
mikhno-s / .gitlab-ci.yml-example
Created June 14, 2017 19:24
Build and containeraized node.js app with gitlab-ci
image: node:7
stages:
- install_dependencies
- build
- tests
- publish
- deploy
install:dependencies: