View dellbios.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# reset firmware to optimized settings | |
# usage: | |
# ./dellbios.sh - prints current settings | |
# ./dellbios.sh configure - configures optimized BIOS settings (will require reboot to pick up changes) | |
export PATH=$PATH:/opt/dell/srvadmin/sbin/ | |
red="\e[0;91m" |
View addition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import reduce | |
import time | |
numbers = list(range(51000000)) | |
def add(numbers): | |
total = 0 | |
for n in numbers: | |
total += n | |
return total |
View qemu setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make sure no other VM softrware is running (Virtualbox, etc) | |
create new win 10 VM on ubuntu host | |
0. Turn off/kill any VirtualBox process, this will interfere with QEMU | |
1. create pool | |
2. create volume within the pool | |
3. install win10 iso (select Browse local files) | |
4. once win10 is up, install Spice windows guest tools on win10, www.spice-space.org/download.html, this will enable full screen display |
View pyperf_diagram.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### PyPerf Diagram Generator | |
## Salt Runner, | |
## gets bandwidth results from each minion and generates a diagram | |
import ast | |
import pygraphviz as pgv | |
import logging | |
import time | |
from dictor import dictor | |
import salt.client |
View snapshot.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/pyperf/venv/bin/python3 | |
## This runs on each agent, generates bandwidth snapshot | |
from datetime import datetime | |
import socket | |
import json | |
import os | |
import sys | |
import iperf3 | |
from dictor import dictor |
View conncheck.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run as root | |
# /home/sshuttle/conncheck.sh | |
## replace 'sshuttle' user with any user that has global SSH access to servers | |
file=${1:-"/etc/hosts"} | |
ncat_port=22 | |
RED='\033[1;31m' | |
GREEN='\033[1;32m' | |
NC='\033[0m' # no color |
View pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage("Deploy Config"){ | |
steps { | |
slackSend color: "#15FFE9", message: """Jenkins is deploying Config to: |
View file_integrity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# alerts if system file is changed or modified | |
name: File Integrity Changed | |
# Alert on x events in y seconds | |
type: frequency | |
# Alert when this many documents matching the query occur within a timeframe | |
num_events: 1 | |
View parser.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_params(){ | |
PARAMS="" | |
while (( "$#" )); do | |
case "$1" in | |
## RESET - boolean | |
-r|--reset) | |
RESET=true | |
shift |
View deploy_config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
# source common function and variables | |
source "$(readlink -f $0 | xargs dirname)/shared" | |
REPO_DIR="${HOME}/NewDeploy/Repositories/Config_$(date +%Y%m%d%H%M%S)" | |
# check if another instance of this deployment is in progress | |
check_another_instance $(basename -- "$0") |
NewerOlder