This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM prom/prometheus:v2.51.2 | |
COPY prometheus.yml /etc/prometheus/prometheus.yml | |
COPY web.yml /etc/prometheus/web.yml | |
COPY entrypoint.sh /entrypoint.sh | |
ENV TZ=Europe/Warsaw | |
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/config/chlink OFF OFF OFF OFF ON ON ON OFF | |
/config/buslink ON ON OFF | |
/config/linkcfg ON ON ON ON | |
/config/solo 0.0 LRAFL 0.0 PFL PFL -20 OFF OFF OFF OFF | |
/config/amixenable ON ON | |
/config/amixlock OFF OFF | |
/config/mute OFF OFF OFF OFF | |
/ch/01/config "SLAVKO" 3 In01 U01 | |
/ch/01/preamp +0.0 OFF OFF ON 121 | |
/ch/01/gate OFF EXP4 -48.0 60.0 7 502 983 Ch03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define q int | |
#define w main | |
#define e argc | |
#define r argv | |
#define t if | |
#define y while | |
#define u atoi | |
#define i printf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _get_old_attrs(service): | |
_s = service.attrs['Spec'] | |
_t = _s['TaskTemplate'] | |
_c = _t['ContainerSpec'] | |
return { | |
'image': _c['Image'], | |
#command (list of str or str) – Command to run. | |
#args (list of str) – Arguments to the command. | |
'constraints': _t['Placement'].get('Constraints'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Konrad 'morsik' Mosoń | |
# usage: | |
# - open terminal | |
# - go to your icons directory (eg. ~/.icons/my_oxygen_copy - don't forget to change icon theme name in index.theme) | |
# - run this script (yes, from icons directory, eg. ~/.icons/my_oxygen_copy) | |
# stupid add_symlink fixed :D - thanks to PovAddict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Enemy Territory: Legacy installation script | |
# | |
URL_ETL="http://mirror.etlegacy.com/etlegacy-linux-2.71rc1.tar.gz" | |
URL_ETWOLF="http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run" | |
F_ETWOLF="et-linux-2.60.x86.run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use Net::Ping; | |
my @hosts = ( | |
'localhost.localdomain', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- {{{ Key bindings | |
globalkeys = awful.util.table.join( | |
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2+") end), | |
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2-") end), | |
awful.key({ modkey, }, "Pause", function () awful.util.spawn("xscreensaver-command -lock") end), | |
awful.key({ modkey, }, "Left", awful.tag.viewprev ), | |
awful.key({ modkey, }, "Right", awful.tag.viewnext ), | |
awful.key({ modkey, }, "Escape", awful.tag.history.restore), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import template | |
from django.utils.safestring import mark_safe | |
import re | |
register = template.Library() | |
@register.filter | |
def colorize(t, a='white'): | |
if t == None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSH_ENV="$HOME/.ssh/environment" | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV" | |
chmod 600 "$SSH_ENV" | |
. "$SSH_ENV" > /dev/null |
NewerOlder