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
{ | |
"title": "Reporting hosts", | |
"description": "", | |
"visuals": [ | |
{ | |
"title": "All", | |
"line_label": "%name%", | |
"display": "LINE", | |
"format": "number", | |
"draw_null_as_zero": true, |
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
{ | |
"title": "Apdex", | |
"description": "", | |
"visuals": [ | |
{ | |
"title": "Apdex", | |
"line_label": "%namespace%", | |
"display": "LINE", | |
"format": "number", | |
"draw_null_as_zero": false, |
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
# This file describes the network interfaces available on your system | |
# For more information, see netplan(5). | |
network: | |
version: 2 | |
ethernets: | |
ens1f0: | |
match: | |
macaddress: {{ hostvars[inventory_hostname]['interfaces']['ens1f0'] }} | |
ens1f1: | |
match: |
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 "fileutils" | |
require "json" | |
ZOOKEEPER = raise "Put your zookeeper list here" | |
DEFAULT_BROKER_LIST = raise "put your broker list here (1,2,3) | |
FileUtils.rm_f "/tmp/topics.json" | |
FileUtils.rm_f "/tmp/assignment.json" |
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
# Customer Acquisition Cost | |
@total_cac = 5_000.0 | |
@discounts = 1_000.0 | |
@new_customers = 30 | |
@cac = | |
(@total_cac + @discounts) / @new_customers | |
puts "Customer Acquisition Cost: #{@cac}" |
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
require "benchmark" | |
puts(Benchmark.measure { | |
1_000_000.times do | |
1 + 1 | |
end | |
}) | |
puts(Benchmark.measure { | |
1_000_000.times do |
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
source 'https://rubygems.org' | |
gem "appsignal" |
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
source 'https://rubygems.org' | |
gem 'sequel' | |
gem 'sqlite3' | |
gem 'appsignal' |
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
use std::env; | |
fn main() { | |
let first = env::args().nth(1); | |
match first { | |
Some(ref value) if value == "create" => println!("in create"), | |
Some(_) => println!("smt else"), | |
None => println!("No arg given") | |
} | |
} |
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
BROWSER_WIDTH = 1600 | |
BROWSER_HEIGHT = 1200 | |
Capybara.default_driver = :selenium | |
include Capybara::DSL | |
def take_screenshot(path, name, convert_options={}) | |
# Wait for JS to load data and so on | |
sleep 2 | |
retinafy_screen |
NewerOlder