Skip to content

Instantly share code, notes, and snippets.

View michaelcoyote's full-sized avatar
👀
building and learning

Michael michaelcoyote

👀
building and learning
View GitHub Profile
@michaelcoyote
michaelcoyote / avamar_commands.txt
Created August 15, 2014 18:07
Useful Avamar cli commands for managing backups, clients, groups, policies, etc.
- 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 January 20, 2023 13:33
Bash Keyboard shortcuts

#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 / sed_GB-MB_convert.bash
Last active May 12, 2022 18:39
Dumb sed trick for converting GB/MB to bytes..
# 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
michaelcoyote / odoo_error_001.md
Created April 9, 2015 06:36
Odoo error on editing a product within sales.

Getting this error when editing a product from the "sales" page.

Using the following version of odoo installed from packages on Mint 17 (Ubuntu Trusty) Version 8.0-20150408

Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
@michaelcoyote
michaelcoyote / Avamar_NodeInfo_Commands.txt
Created August 15, 2014 18:00
Commands to get the node serials and other info from Avamar nodes. Not a script, use wisely
# 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

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 / Rust_StructOpt_question.md
Created May 20, 2020 23:44
Rust StructOpt question

StructOpt question

Need to figure out a way to turn mutually exclusive options from StructOpt into someting I can select at runtime. In Python I can do this using argparse and then testing existance on the option something like this:

if args.argument1:
    thing(args.argument1)
else if args.argument2:
    otherthing(args.argument2)
@michaelcoyote
michaelcoyote / NetWorker_NMM_exchange_troubleshooting.md
Last active June 3, 2019 09:56
Troubleshooting NetWorker Module for Microsoft

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

@michaelcoyote
michaelcoyote / mung_bean_soup.md
Last active April 26, 2019 23:23
Mung bean soup

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 August 28, 2014 00:18
A collection of NetWorker iptables rules for NetWorker
#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