Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kwiesmueller/hostrewind
A simple tool for rewinding hostnames (and handling a custom suffix)
https://github.com/kwiesmueller/hostrewind
Last synced: 10 days ago
JSON representation
A simple tool for rewinding hostnames (and handling a custom suffix)
- Host: GitHub
- URL: https://github.com/kwiesmueller/hostrewind
- Owner: kwiesmueller
- Created: 2017-07-12T16:08:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T16:32:01.000Z (over 7 years ago)
- Last Synced: 2024-10-28T19:51:01.172Z (about 2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hostrewind
## Install
```shell
go get -u github.com/kwiesmueller/hostrewind/bin/hostrewind
``````shell
make prepare
make install
```## Params
* `-sm`: handles the custom suffix smhss.de (remove or append when necessary)## Usage Samples
Not that the configured custom domain is always being stripped when being at the start
```
ssh $(echo "lf.office.build" | hostrewind -sm)
-> build.office.lf.smhss.dessh $(echo "build.office.lf.smhss.de" | hostrewind)
-> lf.office.build
```## Example Aliases
```
function sssh() {
ssh $(echo "$1" | hostrewind -sm)
}
```