https://github.com/kellyjonbrazil/utils
Helpful tools and utility scripts
https://github.com/kellyjonbrazil/utils
Last synced: about 2 months ago
JSON representation
Helpful tools and utility scripts
- Host: GitHub
- URL: https://github.com/kellyjonbrazil/utils
- Owner: kellyjonbrazil
- License: mit
- Created: 2019-07-11T19:17:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-13T03:58:50.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T19:41:42.472Z (2 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# utils
Helpful tools and utility scripts## vmserial.sh
This bash script allows you to easily connect to a named pipe serial console on a VM through your terminal on your Mac. `socat` is required (`brew install socat`) and you can use the built-in `screen` or another terminal emulator like `picocom`. Modify the `serialPort` variable with the path to the named pipe in the script. You can replicate the script for multiple VMs.To configure the virtual serial console on your VM, add the following or similar configuration to your .vmx or other VM definition file:
```
serial0.present = "TRUE"
serial0.fileType = "pipe"
serial0.pipe.endPoint = "server"
serial0.yieldOnMsrRead = "TRUE"
serial0.startConnected = "TRUE"
serial0.fileName = "/tmp/serial"
```## resizeterm.sh
Useful to have in the home directory or path when using vmserial (above) or real serial interfaces when logging into appliances. Allows terminal applications to display using whatever arbitrary terminal size you have set for your window.## wwwhostip.py
This is a simple python web server that will output the server's hostname and local IP address. This tool is good for testing load balancing (e.g. on k8s ingress, AWS ELB, etc.) to demonstrate that multiple web servers are responding.Sample request and response:
```
$ curl localhost
hostname: www.test.com ip: 192.168.1.221
```For more a more advanced version, see `microtest` at https://github.com/kellyjonbrazil/microtest