Skip to content

Instantly share code, notes, and snippets.

View rajeshksv's full-sized avatar

Mac rajeshksv

View GitHub Profile
global:
evaluation_interval: 1m
scrape_interval: 30s
scrape_timeout: 10s
scrape_configs:
- job_name: "prometheus"
metrics_path: /metrics
static_configs:
- targets: ['localhost:9090']
receivers:
otlp:
protocols:
grpc:
# Collect own metrics
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
@rajeshksv
rajeshksv / gnome-shell-theme.gresource.xml
Last active July 8, 2021 05:21
Template for gnome-shell-theme.gresource.xml
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/shell/theme">
<file>calendar-arrow-left.svg</file>
<file>calendar-arrow-right.svg</file>
<file>calendar-today.svg</file>
<file>checkbox-focused.svg</file>
<file>checkbox-off-focused.svg</file>
<file>checkbox-off.svg</file>
<file>checkbox.svg</file>
@rajeshksv
rajeshksv / login-background.sh
Created February 24, 2018 21:33
Change Login Background of GDM
WORKDIR=~/tmp/gdm-login-background
GST=/usr/share/gnome-shell/gnome-shell-theme.gresource
GSTRES=$(basename $GST)
mkdir -p $WORKDIR
cd $WORKDIR
mkdir theme
for r in `gresource list $GST`; do
gresource extract $GST $r >$WORKDIR$(echo $r | sed -e 's/^\/org\/gnome\/shell\//\//g')
Testing