sudo instance_manager enable Tomcat8
$ instance_manager manage Tomcat8 list
OK - Listed applications for virtual host localhost
/:running:0:/usr/local/tomcat_instances/shared/webapps/ROOT
This file contains hidden or 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 | |
| # ssh to vagrant hosts can be slow due to Ruby overhead of running | |
| # 'vagrant ssh' and ssh overhead to setup the network connection. | |
| # | |
| # This wrapper uses that slow setup routine once to create a reusable ssh | |
| # ControlMaster socket. Subsequent connections invoke the ssh executable | |
| # directly (bypassing Ruby) and connect over the ControlMaster socket | |
| # (bypassing the connection setup) so are almost instantaneous. | |
| # |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>debug</key> | |
| <false/> | |
| <key>servers</key> | |
| <array> | |
| <dict> | |
| <key>autoHosts</key> |
This file contains hidden or 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 | |
| # Throttle bandwidth on OS X Yosemite. Based on | |
| # https://mop.koeln/blog/2015/06/01/Limiting-bandwidth-on-Mac-OS-X-yosemite/ | |
| CMD_WITH_ARGS="$0 $*" | |
| ANCHOR_NAME=custom_rules | |
| while getopts :p:b: arg; do | |
| case $arg in | |
| p) |
| Action | Red Hat/Fedora | Debian/Ubuntu |
|---|---|---|
| Install a package(s) by name | yum install | apt-get install |
| Remove a package(s) by name | yum remove/erase | apt-get autoremove |
| Search for package(s) by searching the expression in name, description, short description. What exact fields are being searched by default varies in each tool. Mostly options bring tools on par. | yum search |
This file contains hidden or 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/sh | |
| ansible-playbook \ | |
| -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \ | |
| --private-key=.vagrant/machines/default/virtualbox/private_key \ | |
| -u vagrant \ | |
| --ssh-common-args='-o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \ | |
| "$@" | |
OlderNewer