Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
POSTGRES_VERSION='9.5'
# With how many clients to do this test
CLIENTS="20"
# Duration of each test
DURATION=3600
@kustodian
kustodian / postgresql.conf
Last active March 15, 2018 14:02
postgresql.conf for the Meltdown and Spectre Kernel Mitigations Benchmarks
listen_addresses = '*'
port = 5432
max_connections = 200
shared_buffers = 4GB
work_mem = 1MB
maintenance_work_mem = 16MB
dynamic_shared_memory_type = posix
wal_level = minimal
fsync = on
synchronous_commit = off
@kustodian
kustodian / localhost.yml
Created April 21, 2017 14:42
Ansible include_vars sets host facts (host vars)
# host_vars/localhost.yml
---
var1: inventory
@kustodian
kustodian / hostgroup_ips.j2
Created March 23, 2017 09:21
Ansible - Use template lookup in a role to generate a list of IP addresses from a hostgroup
{% if myhostgroup != '' %}
{% for host in groups[myhostgroup] %}
- {{ hostvars[host]["ansible_default_ipv4"]["address"] }}
{% endfor %}
{% endif %}
@kustodian
kustodian / diskchecker.pl
Last active August 21, 2024 12:48 — forked from bradfitz/diskchecker.pl
diskchecker.pl
#!/usr/bin/perl
#
# Brad's el-ghetto do-our-storage-stacks-lie?-script
#
sub usage {
die <<'END';
Usage: diskchecker.pl -s <server[:port]> verify <file>
diskchecker.pl -s <server[:port]> create <file> <size_in_MB>
diskchecker.pl -l [port]