Skip to content

Instantly share code, notes, and snippets.

@medzhidov
medzhidov / docker-compose.yml
Last active April 7, 2023 21:06
Docker compose preset for latest (1.35) Jaeger + Elasticsearch (Query, Collector, without Agent)
# This will starts only core of Jaeger, also you need to start an agent (on the same or another server):
# https://gist.github.com/medzhidov/4b5d214ddad08804d7810a4aad79520e
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
networks:
- elastic-jaeger
@medzhidov
medzhidov / docker-compose.yml
Last active July 4, 2022 15:26
Docker compose preset for latest (1.35) Jaeger Agent
# This will starts only agent, to start core of Jaeger you need also this:
# https://gist.github.com/medzhidov/668c1250ccb8b5f5f1d53e98da420465
version: "3"
services:
jaeger-agent:
image: jaegertracing/jaeger-agent
# replace JAEGER-HOST with host of your started jaeger
command: ["--reporter.grpc.host-port=JAEGER-HOST:14250", "--log-level=info"]
@medzhidov
medzhidov / Live wallpaper.sh
Created June 1, 2022 19:54
Set live wallpaper with xwinwrap and refresh it every 10 minutes
#!/bin/bash
function restartVideo()
{
ls /home/ilya/Videos/wallpapers |sort -R |tail -1 |while read file; do
# Replace "/home/ilya/Videos/wallpapers/" with your path to folder with videos
xwinwrap -fs -fdt -ni -b -nf -- mpv -wid %WID --no-audio --loop "/home/ilya/Videos/wallpapers/$file" > /dev/null 2>&1 &
sleep 1
echo $(pgrep -f -P "$!" | grep -o '[[:digit:]]*')
done
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
@medzhidov
medzhidov / .htaccess
Created October 25, 2018 13:51
Https to http and www to non-www redirects for bitrix
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
'use strict';
// Modules
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
/**