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
| public class FakeNameGenerator | |
| { | |
| private static readonly Random Random = new Random(); | |
| private static readonly List<string> _vowels = new List<string> {"a", "e", "i", "o", "u"}; | |
| private static readonly List<string> _consonants = new List<string> | |
| { | |
| "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", | |
| "r", "s", "t", "v", "w", "x", "y", "z" |
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 | |
| myIP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') | |
| commandString="curl http://textbelt.com/text -d number=1111111111 -d \"message=$myIP\"" | |
| $(eval $commandString) | |
| #call this script from /etc/rc.local with (eval "/path/to/thisscript"); get a text every time your machine reboots with the new IP. |
NewerOlder