I hereby claim:
- I am zapman449 on github.
- I am japrice (https://keybase.io/japrice) on keybase.
- I have a public key ASCJ6OCbjqub3WpY7ovoe9sRj_1iz7kIB0wVIsQNcBWgiAo
To claim this, I am signing this object:
| # | |
| define bastion_users ( | |
| $id, | |
| $homedir = "/home/${name}", | |
| $comment = '', | |
| ) { | |
| #$authorized_key, | |
| #$ssh_config, | |
| #$private_key, | |
| #$public_key, |
| Pulled from https://github.com/causes/redis-centos/blob/master/spec/redis.spec originally, and tweaked to support 2.4.x releases (tested for 2.4.14 through 2.4.16. | |
| --Jason |
| #!/usr/bin/python | |
| """ | |
| Look for column named similar to sys.argv[1]. Filter that column based on | |
| metric of 10, or sys.argv[2] if defined. | |
| Tuned for SAR output, but probably is generic enough for others as well. | |
| """ | |
| import fileinput | |
| import sys |
| #!/bin/bash | |
| # fuser -m produces very usefil output, but it's a right pain to parse usefully. | |
| # This cleans up the output, takes away the character codes, and shows you the ps | |
| # output for each process which is running against the given mountpoint | |
| # cut removes the "<mount>:" stuff | |
| # sed1 cuts the characters off of the pids produced by fuser | |
| # sed2 kills all leading spaces | |
| # sed3 removes all spaces, and replaces groups of them with a single | |
| #!/usr/bin/python | |
| """ | |
| DeltaDict: A python dictionary for keeping track of the delta between numeric | |
| values. | |
| Insert a number in a key, and you'll get that number back. Next insert a | |
| higher number. Now a get() will return the delta between the numbers. | |
| Useful for monitoring applications where you're presented with a monotomically |
| That execstart line is a little involved. Changes between each cluster node: | |
| change '-name master3' to be the name of this host in the cluster, as specified by the following '-initial-cluster' statement. | |
| change -listen-peer-urls to the IP of this host in the cluster. | |
| change '-listen-client-urls' to reference the IP of this host in the cluster. | |
| You also may need to change the WorkingDirectory, and the path to the etcd binary. |
| The formulas to generate the relevant values of Cache Hit ratios (and sundry): | |
| The variables: | |
| 1. % is the cache hit ratio | |
| 2. H is the raw number of cache hits | |
| 3. M is the raw number of cache misses | |
| 4. T is the total number of requests. | |
| The formulas: | |
| '''% = H / T''' |
I hereby claim:
To claim this, I am signing this object: