Skip to content

Instantly share code, notes, and snippets.

@hagfelsh
hagfelsh / qla-linux-info.sh
Created January 12, 2018 17:12
Qlogic info gathering script
#! /bin/bash
#
#####################################################################
# This script attempts to gather troubleshooting information on
# a variety of Linux hosts. Files that exist in one distribution of
# Linux may not exist in another distribution (SuSE vs Red Hat).
# Please ignore any errors reported about files not existing.
#
# --QLogic Technical Support
#
@hagfelsh
hagfelsh / create-standard-guest.sh
Last active January 5, 2018 16:07
virt-install script for a standard guest
#!/bin/bash
# This script assumes that there's an ISO installed somewhere (so that its contents can be browsed) and that that ISO is then exported as an NFS export.
# The kickstart file is pushed into the boot image so anaconda can draw from it.
# The serial part of extra-args enables virsh <guestname> console to work. It also allows for a console install.
ksfile="standard-ks.cfg"
kspath="/root/virt-things/virt-install-models/conga-c7/$ksfile"
hostname="c7-standard"
@hagfelsh
hagfelsh / tmux.conf
Created December 1, 2017 16:19
customized tmux config file
# Mouse options
set-option -g mouse-resize-pane off
set-option -g mouse-select-pane off
set-option -g mouse-select-window off
bind m set-option -w mouse-resize-pane on \; set-option -w mouse-select-pane on \; set-option -w mouse-select-window on \;
bind M set-option -w mouse-resize-pane off \; set-option -w mouse-select-pane off \; set-option -w mouse-select-window off \; set-option -w mode-mouse off \;
# Kill the bell
set-option -g bell-action none