Skip to content

Instantly share code, notes, and snippets.

building and learning

Michael michaelcoyote

building and learning
  • The Bay Area, NorCal, Earth
Block or report user

Report or block michaelcoyote

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
michaelcoyote / ava_repl_clean_report.awk
Created Aug 14, 2014
Reprocesses an Avamar replication report to remove recently backed up clients and show unreplicated historical data over x days.
View ava_repl_clean_report.awk
#!/usr/bin/awk -f
# remove unreplicated avamar clients from the replreport
# that are less than a day or so old.
# useful in cases where you have a day to get data offsite
# and only want to see older unreplicated clients.
BEGIN {printf "%-63s %s %s\n","Client","Difference","Dest Total"}
/^[A=]/ {next};
/^SOURCE/ {sgrid=$2};
michaelcoyote / Perf2CSV.ps1
Created Aug 15, 2014
My first PowerShell script that I knocked together to do one thing. Can I admit that I kinda liked PowerShell?
View Perf2CSV.ps1
# Quick & dirty PowerShell script for polling Windows PerfMon counters and dumping into a CSV file
# setup PowerShell internals
$1GBInBytes = 1GB
$Computer = $env:COMPUTERNAME
# Set the log destination directory
# Set the performance counters below
michaelcoyote / sed_GB-MB_convert.bash
Last active Aug 29, 2015
Dumb sed trick for converting GB/MB to bytes..
View sed_GB-MB_convert.bash
# Dumb sed trick for converting GB/MB to bytes..
# awk would be better for detail work as you can do math
sed 's/\.[0-9] GB/000000000/' Raw_Status.csv |sed 's/\.[0-9] MB/000000/' | sed 's/0\ bytes/0/' > Cooked_Status.cvs
michaelcoyote /
Last active Aug 29, 2015
Old Perl script to add a list of clients to a NetWorker savegroup. Quick and dirty and could be massively improved.
# Takes filename as argument.
# file should contain clientnames one to a line non qualified
# todo:
# do initial probe after adding client
# prompt for client resourcevalues
michaelcoyote /
Created Aug 15, 2014
Remeber when we had to eject actual media from jukeboxes? This is one of those for NetWorker
# used to populate the location field in the NetWorker Volume Database
# what is the name of our jukebox
michaelcoyote / NetWorker_sysctl.conf
Created Aug 27, 2014
sysctl recomendations for NetWorker servers & storage nodes
View NetWorker_sysctl.conf
## sysctl.conf recommendations for NetWorker
# These are from the NetWorker Performance Optimization Planning Guide
# these are current as of NW 8.1. Please check the guide to insure
# that these settings are what you want on your server
# add the following parameters to the /etc/sysctl.conf file
# and run the /sbin/sysctl -p command
michaelcoyote /
Last active Aug 29, 2015
Quick local deploy of cf-release on bosh-lite

bosh-light quick deploy

Get the bosh-light VM and start it

vagrant destroy
vagrant up --provider=virtualbox

Upload the stemcell to bosh

bosh upload stemcell ~/workspace/stemcells/bosh-stemcell-25-warden-boshlite-ubuntu-trusty-go_agent.tgz

Change over to the cloned cf-releases repo

View stupid_dpkg_tricks
dpkg -l # list all packages
dpkg -L <PKG> # list a specific package
dpkg -c <PKG> # show pakage contents
dpkg -I <PKG> # Package info..
michaelcoyote / Eclipse_Android
Last active Aug 29, 2015
Installing Eclipse for Android on Ubuntu precise.
View Eclipse_Android
# From here:
# and here
sudo apt-get install eclipse
sudo add-apt-repository "deb precise partner"
sudo add-apt-repository "deb precise main"
sudo add-apt-repository "deb-src precise main"

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.