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
michaelcoyote / Avamar_NodeInfo_Commands.txt
Created Aug 15, 2014
Commands to get the node serials and other info from Avamar nodes. Not a script, use wisely
View Avamar_NodeInfo_Commands.txt
# This is not a script, please paste commands direclty into a ssh/putty window.
# get the DPN status
status.dpn
# set the ssh agent keys
ssh-agent bash
@michaelcoyote
michaelcoyote / avamar_commands.txt
Created Aug 15, 2014
Useful Avamar cli commands for managing backups, clients, groups, policies, etc.
View avamar_commands.txt
- Notes on avamar client configuration using command line
Generally scheduling of clients, setting retentions and datasets are done via groups (best practice).
It is recommended to work with the backup team to set up an agreed upon set of schedules, retentions and datasets
and assign these to group policies as needed.
With this in mind it is likely that you will only really need the command to list the group policies, add a client to a group and start a backup.
@michaelcoyote
michaelcoyote / Bash_keys.md
Last active Jun 25, 2019
Bash Keyboard shortcuts
View Bash_keys.md

#Bash Keyboard Shortcuts

###Cursor movement:

Ctrl + a   Go to the beginning of the line (Home)
Ctrl + e   Go to the End of the line (End)
Ctrl + p   Previous command (Up arrow)
Ctrl + n   Next command (Down arrow)
Alt + b   Back (left) one word
Alt + f   Forward (right) one word
@michaelcoyote
michaelcoyote / NetWorker_NMM_exchange_troubleshooting.md
Last active Jun 3, 2019
Troubleshooting NetWorker Module for Microsoft
View NetWorker_NMM_exchange_troubleshooting.md

NetWorker NMM & Exchange

Basic networker stuff to check.

  • Check that forward and reverse lookup works from each of the Exchange nodes
    • nslookup of networkerservername
    • nslookup of networker-ip-addr
    • ping from client to server

NMM and VSS stuff to check

View mung_bean_soup.md

Mung Bean Soup from Eat Clean Live Well / Terry Walters

Quantity Ingredient
1 tablespoon coconut oil
1 onion, chopped.
2 celery stalks, chopped.
2 carrots, chopped.
@michaelcoyote
michaelcoyote / NetWorker_iptables
Created Aug 28, 2014
A collection of NetWorker iptables rules for NetWorker
View NetWorker_iptables
#App,Destination,Source,Service, Port, Port Type
#DPA,dpaserv,managment-net,SSH,22, TCP
#DPA,dpaserv,managment-net,SNMP,161, TCP
#DPA,dpaserv,managment-net,DPA HTTPS 9002 TCP
#DPA,dpaserv,managment-net,DPA HTTPS 9002 TCP
#DPA,dpaserv,managment-net,DPA HTTP, 9003, TCP
#DPA,dpaserv,managment-net,DPA HTTP, 9004, TCP
#DPA,server-agents,dpaserv,DPA Agent - HTTP, 3741, TCP
#
#App,Destination,Source,Service,Dest Port, Src Port Proto
View bash_readline.md

Bash key combinations and shortcuts

The bash shell uses a library called GNU Readline that provides easy and quick CLI key combination access to bash history, screen movement and line editing commands. I've collected some of these here along with some builtin bash shortcuts for history and other functions.

Note: The command bind -p will list all the keybindings and the readline functions they call.

@michaelcoyote
michaelcoyote / PerfTest.py
Created Aug 15, 2014
An automated Avamar perf test thing that ended up not being needed and was never finished.
View PerfTest.py
#!/usr/bin/python
#
# Automate the testing for Avamar POC
# script should be able to log activity and useful status.
# TODO
# check error on all subprocess.Popen() and file open() functions
# Error handling: i.e. catch/log errors before dieing
# make sure all the function defs check inputs
#
@michaelcoyote
michaelcoyote / backup.py
Last active Dec 20, 2017
errbot backup
View backup.py
## This file is not executable on its own. use errbot -r FILE to restore your bot.
log.info("Restoring repo_manager.")
bot.repo_manager["installed_repos"] = {'sijis/err-vmware': 'https://github.com/sijis/err-vmware.git', 'errbotio/err-fileshare': 'https://github.com/errbotio/err-fileshare', 'AbigailBuccaneer/err-dailymarx': 'https://github.com/AbigailBuccaneer/err-dailymarx', 'jvasallo/err-plugins': 'https://github.com/jvasallo/err-plugins', 'carriercomm/err-hubot': 'https://github.com/carriercomm/err-hubot', 'keithslater/err-whois': 'https://github.com/keithslater/err-whois', 'jwm/err-gcalendar': 'https://github.com/jwm/err-gcalendar', 'errbotio/err-helloworld': 'https://github.com/errbotio/err-helloworld'}
bot.repo_manager["repo_index"] = {'errbotio/err-killme': {'KillMe': {'repo': 'https://github.com/errbotio/err-killme', 'documentation': 'Kill your bot.', 'python': '2+', 'path': '/killme.plug', 'avatar_url': 'https://avatars.githubusercontent.com/u/15802630?v=3', 'name': 'KillMe'}}, 'errbotio/err-storage
View tc_outbound_https.sh
#!/usr/bin/env bash
#
# Script to rate limit port 443
#
#network interface on which to limit traffic
IF="bond0"
#limit of the network interface in question
LINKCEIL="10gbit"
#limit outbound https protocol traffic to this rate
You can’t perform that action at this time.