Skip to content

Instantly share code, notes, and snippets.

@IronTooch
Last active February 8, 2022 06:54
Show Gist options
  • Save IronTooch/15e9e43327a1f24c1b45aba33a73ec9f to your computer and use it in GitHub Desktop.
Save IronTooch/15e9e43327a1f24c1b45aba33a73ec9f to your computer and use it in GitHub Desktop.
Gets a new server name that starts with the Param Given
#!/bin/bash
export SERVER_NAMES_GIST='https://gist.github.com/IronTooch/dfc71ed972badabf45b7104520206ede/raw/fa2e41e8d2633ffa4c05d975cc7413e07bdd9f8e/server-names.txt'
getNewServerName() {
curl -s $SERVER_NAMES_GIST | grep "^$1" | shuf | head --lines 1
}
# Usage
# curl -s "https://gist.github.com/IronTooch/15e9e43327a1f24c1b45aba33a73ec9f/raw/479e40e6646f24f519d48e27e3c3b82b8aeeff91/getServerName.sh" >> ~/.bashrc;source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment