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
groups: | |
- name: example | |
rules: | |
# Alert for any instance that is unreachable for >5 minutes. | |
- alert: SalesforceSubscriberDown | |
expr: (push_time_seconds{job="salesforce-subscriber"} offset 5m) == push_time_seconds{job="salesforce-subscriber"} | |
labels: | |
severity: page | |
annotations: |
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
# my global config | |
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# scrape_timeout is set to the global default (10s). | |
# Alertmanager configuration | |
alerting: | |
alertmanagers: | |
- static_configs: |
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
# initialize data | |
name = 'Pavel Nikitin' | |
start_working_with_ruby = 2008 | |
timeLoad = 'fulltime' | |
technologies = ['Rails', 'MySQL', 'Cassandra', 'HTML', 'CSS'] | |
personal = ['talented', 'creative', 'team player'] | |
contacts = {:email => 'daddybutcher@gmail.com', :skype => 'pavel.butcher.nikitin', :blog => 'http://itstickers.blogspot.com', :linkedin => 'http://www.linkedin.com/pub/pavel-nikitin/16/327/363'} | |
# build CV | |
cv = <<CV |
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
count = ARGV[0].to_i | |
min = ARGV[1].to_i | |
def int_to_hex(r,g,b) | |
"#%02X%02X%02X" % [r, g, b] | |
end | |
arr = [] | |
r = 255 |
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/env ruby | |
require 'rubygems' | |
require 'cloudfiles' | |
require 'paperclip' | |
# turn off paperclip logging because they use ActiveRecord | |
Paperclip.options[:log] = false | |
container = 'assets-test' |
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
(defun color-theme-butcher () | |
"Color theme by Pavel Nikitin." | |
(interactive) | |
(color-theme-install | |
'(color-theme-butcher | |
((background-color . "#101010") | |
(background-mode . dark) | |
(border-color . "black") | |
(cursor-color . "#A7A7A7") | |
(foreground-color . "#F8F8F8") |
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
;; Theme | |
(load-file "~/.emacs.d/color-theme-butcher.el") | |
(color-theme-butcher) | |
(set-frame-font "-misc-fixed-medium-r-normal--15-*-75-75-c-90-koi8-r") | |
(tool-bar-mode) | |
(menu-bar-mode) | |
(scroll-bar-mode) | |
;; Rinari |