Skip to content

Instantly share code, notes, and snippets.

View seanosulliv's full-sized avatar

Seán O Sullivan seanosulliv

View GitHub Profile
# Change prefix key to Ctrl+a
unbind C-b
set -g prefix C-a
# send the prefix to client inside window
bind-key C-b send-prefix
# Last active window
unbind l
bind C-a last-window
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
#!/bin/sh
echo "Enter zone to cycle ksk for :"
read ZONE
KEYID=$(sudo ods-ksmutil key export --zone $ZONE --keystate ready --ds | awk '{print $5}')
sudo ods-ksmutil key ds-seen -z $ZONE -x $KEYID
Target[host_temp]: 1.3.6.1.4.1.14988.1.1.3.10.0&1.3.6.1.4.1.14988.1.1.3.10.0:community@IP:
AbsMax[host_temp]: 100
MaxBytes[host_temp]: 100
Title[host_temp]: Temperature for moorhen
Options[host_temp]: gauge,growright,nopercent,noo,expscale
YLegend[hos5_temp]: Celcius
#YTicsFactor[host_temp]: 0.1
#Factor[host_temp]: 0.1
ShortLegend[host_temp]: oC
LegendI[host_temp]: Temperature &nbsp
#!/bin/sh
# Graph builder script
if [ ! $1 ]; then
echo "Enter output file (blank to output to pwd): "
read OUTPUTFILE
echo "Enter graph label: "
read GRAPH_LABEL
#!/bin/sh
# Graph builder script
if [ ! $1 ]; then
echo "Enter output file (blank to output to pwd): "
read OUTPUTFILE
echo "Enter graph label: "
read GRAPH_LABEL
@seanosulliv
seanosulliv / memuse.py
Created January 10, 2011 12:34
memuse.py
#!/usr/bin/env python
# Try to determine how much RAM is currently being used per program.
# Notes:
#
# All interpreted programs where the interpreter is started
# by the shell or with env, will be merged to the interpreter
# (as that's what's given to exec). For e.g. all python programs