Skip to content

Instantly share code, notes, and snippets.

@strato190
strato190 / graphite-diskusage.py
Created October 26, 2017 12:55 — forked from ajayverghese/graphite-diskusage.py
calculate space required to store graphite data
#!/usr/bin/python
'''
Calculate disk space required for given graphite retention policy and number of
metrics
'''
#######################################
# retention policy
@strato190
strato190 / snmpsim
Created March 1, 2017 15:26
Systemd unit file for running snmpsim at background
[Unit]
Description=Snmp generator
After=network.target
[Service]
UMask=0000
Restart=always
KillSignal=SIGQUIT
User=snmpsim
ExecStart=/bin/sh -c "snmpsimd --data-dir=/opt/data --agent-udpv4-endpoint=0.0.0.0:1024"
@strato190
strato190 / 1-server.sh
Created January 18, 2017 14:14 — forked from duritong/1-server.sh
Creating a pulp upload user
$ pulp-admin auth user create --login jenkins --password xxx
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/content/uploads/" -o read -o update -o create -o delete
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/tasks/" -o read
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/repositories/my-repo/actions/import_upload/" -o create -o execute -o read -o update
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/repositories/my-repo/actions/publish/" -o execute
@strato190
strato190 / .siegerc
Created November 22, 2015 15:32 — forked from stansmet/.siegerc
My siegerc
# Updated by Siege 2.72, July-07-2012
# Copyright 2000-2007 by Jeffrey Fulmer, et al.
#
# Siege configuration file -- edit as necessary
# For more information about configuring and running
# this program, visit: http://www.joedog.org/
#
# Variable declarations. You can set variables here
# for use in the directives below. Example: