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 / YAML_Ref_Card.yaml
Created September 15, 2014 06:14
YAML Reference card
%YAML 1.1 # Reference card
---
Collection indicators:
'? ' : Key indicator.
': ' : Value indicator.
'- ' : Nested series entry indicator.
', ' : Separate in-line branch entries.
'[]' : Surround in-line series branch.
'{}' : Surround in-line keyed branch.
Scalar indicators:
@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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@michaelcoyote
michaelcoyote / Eclipse_Android
Last active August 29, 2015 14:06
Installing Eclipse for Android on Ubuntu precise.
# From here: http://linuxconfig.org/get-started-with-android-application-development-using-linux-and-android-sdk
# and here http://ubuntuforums.org/showthread.php?t=2048793
sudo apt-get install eclipse
sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main"
sudo add-apt-repository "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main"
@michaelcoyote
michaelcoyote / bosh-lite_deploy.md
Last active August 29, 2015 14:06
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

@michaelcoyote
michaelcoyote / stupid_dpkg_tricks
Created September 10, 2014 17:20
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
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
@michaelcoyote
michaelcoyote / NetWorker_sysctl.conf
Created August 27, 2014 18:24
sysctl recomendations for NetWorker servers & storage nodes
## 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
michaelcoyote / offsiteDaily.pl
Created August 15, 2014 20:14
Remeber when we had to eject actual media from jukeboxes? This is one of those for NetWorker
#!/usr/bin/perl
#
# used to populate the location field in the NetWorker Volume Database
$location="OffSite";
#
# what is the name of our jukebox
$jb="scalar2000";
#
@michaelcoyote
michaelcoyote / NetWorker_BulkAdd_Clients.pl
Last active August 29, 2015 14:05
Old Perl script to add a list of clients to a NetWorker savegroup. Quick and dirty and could be massively improved.
#!/usr/bin/perl
#
# 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
#