-
Notifications
You must be signed in to change notification settings - Fork 3
/
namegenerator.sh
executable file
·226 lines (219 loc) · 6.25 KB
/
namegenerator.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
#!/bin/bash
# Author: ntimo
# This script generates random names. Inspired by https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go
namesleftpart[0]="admiring"
namesleftpart[1]="adoring"
namesleftpart[2]="affectionate"
namesleftpart[3]="agitated"
namesleftpart[4]="amazing"
namesleftpart[5]="angry"
namesleftpart[6]="awesome"
namesleftpart[7]="beautiful"
namesleftpart[8]="blissful"
namesleftpart[9]="bold"
namesleftpart[10]="boring"
namesleftpart[11]="brave"
namesleftpart[12]="busy"
namesleftpart[13]="charming"
namesleftpart[14]="clever"
namesleftpart[15]="cool"
namesleftpart[16]="compassionate"
namesleftpart[17]="competent"
namesleftpart[18]="condescending"
namesleftpart[19]="confident"
namesleftpart[20]="cranky"
namesleftpart[21]="crazy"
namesleftpart[22]="dazzling"
namesleftpart[23]="determined"
namesleftpart[24]="distracted"
namesleftpart[25]="dreamy"
namesleftpart[26]="eager"
namesleftpart[27]="ecstatic"
namesleftpart[28]="elastic"
namesleftpart[29]="elated"
namesleftpart[30]="zen"
namesleftpart[31]="elegant"
namesleftpart[32]="eloquent"
namesleftpart[33]="epic"
namesleftpart[34]="exciting"
namesleftpart[35]="fervent"
namesleftpart[36]="festive"
namesleftpart[37]="flamboyant"
namesleftpart[38]="focused"
namesleftpart[39]="friendly"
namesleftpart[40]="frosty"
namesleftpart[41]="funny"
namesleftpart[42]="gallant"
namesleftpart[43]="gifted"
namesleftpart[44]="goofy"
namesleftpart[45]="gracious"
namesleftpart[46]="great"
namesleftpart[47]="happy"
namesleftpart[48]="hardcore"
namesleftpart[49]="heuristic"
namesleftpart[50]="hopeful"
namesleftpart[51]="hungry"
namesleftpart[52]="infallible"
namesleftpart[53]="inspiring"
namesleftpart[54]="interesting"
namesleftpart[55]="intelligent"
namesleftpart[56]="jolly"
namesleftpart[57]="jovial"
namesleftpart[58]="keen"
namesleftpart[59]="kind"
namesleftpart[60]="laughing"
namesleftpart[61]="loving"
namesleftpart[62]="lucid"
namesleftpart[63]="magical"
namesleftpart[64]="mystifying"
namesleftpart[65]="modest"
namesleftpart[66]="musing"
namesleftpart[67]="naughty"
namesleftpart[68]="nervous"
namesleftpart[69]="nice"
namesleftpart[70]="nifty"
namesleftpart[71]="nostalgic"
namesleftpart[72]="objective"
namesleftpart[73]="optimistic"
namesleftpart[74]="peaceful"
namesleftpart[75]="pedantic"
namesleftpart[76]="pensive"
namesleftpart[77]="practical"
namesleftpart[78]="priceless"
namesleftpart[79]="quirky"
namesleftpart[80]="quizzical"
namesleftpart[81]="recursing"
namesleftpart[82]="relaxed"
namesleftpart[83]="reverent"
namesleftpart[84]="romantic"
namesleftpart[85]="sad"
namesleftpart[86]="serene"
namesleftpart[87]="sharp"
namesleftpart[88]="silly"
namesleftpart[89]="sleepy"
namesleftpart[90]="stoic"
namesleftpart[91]="strange"
namesleftpart[92]="stupefied"
namesleftpart[93]="suspicious"
namesleftpart[94]="sweet"
namesleftpart[95]="tender"
namesleftpart[96]="thirsty"
namesleftpart[97]="trusting"
namesleftpart[98]="unruffled"
namesleftpart[99]="upbeat"
namesleftpart[100]="vibrant"
namesrightpart[0]="albattani"
namesrightpart[1]="allen"
namesrightpart[2]="almeida"
namesrightpart[3]="andre"
namesrightpart[4]="ardinghelli"
namesrightpart[5]="aryabhata"
namesrightpart[6]="austin"
namesrightpart[7]="babbage"
namesrightpart[8]="banach"
namesrightpart[9]="banzai"
namesrightpart[10]="bardeen"
namesrightpart[11]="bartik"
namesrightpart[12]="bassi"
namesrightpart[13]="beaver"
namesrightpart[14]="bell"
namesrightpart[15]="benz"
namesrightpart[16]="bhabha"
namesrightpart[17]="bhaskara"
namesrightpart[18]="black"
namesrightpart[19]="blackburn"
namesrightpart[20]="blackwell"
namesrightpart[21]="bohr"
namesrightpart[22]="booth"
namesrightpart[23]="borg"
namesrightpart[24]="bose"
namesrightpart[25]="bouman"
namesrightpart[26]="boyd"
namesrightpart[27]="brahmagupta"
namesrightpart[28]="brattain"
namesrightpart[29]="brown"
namesrightpart[30]="buck"
namesrightpart[31]="burnell"
namesrightpart[32]="cannon"
namesrightpart[33]="carson"
namesrightpart[34]="cartwright"
namesrightpart[35]="carver"
namesrightpart[36]="cerf"
namesrightpart[37]="chandrasekhar"
namesrightpart[38]="chaplygin"
namesrightpart[39]="chatelet"
namesrightpart[40]="chatterjee"
namesrightpart[41]="chebyshev"
namesrightpart[42]="cohen"
namesrightpart[43]="chaum"
namesrightpart[44]="clarke"
namesrightpart[45]="colden"
namesrightpart[46]="cori"
namesrightpart[47]="cray"
namesrightpart[48]="curran"
namesrightpart[49]="curie"
namesrightpart[50]="darwin"
namesrightpart[51]="davinci"
namesrightpart[52]="dewdney"
namesrightpart[53]="dhawan"
namesrightpart[54]="diffie"
namesrightpart[55]="dijkstra"
namesrightpart[56]="dirac"
namesrightpart[57]="driscoll"
namesrightpart[58]="dubinsky"
namesrightpart[59]="easley"
namesrightpart[60]="edison"
namesrightpart[61]="einstein"
namesrightpart[62]="elbakyan"
namesrightpart[63]="elgamal"
namesrightpart[64]="elion"
namesrightpart[65]="ellis"
namesrightpart[66]="engelbart"
namesrightpart[67]="euclid"
namesrightpart[68]="euler"
namesrightpart[69]="faraday"
namesrightpart[70]="feistel"
namesrightpart[71]="fermat"
namesrightpart[72]="fermi"
namesrightpart[73]="feynman"
namesrightpart[74]="franklin"
namesrightpart[75]="gagarin"
namesrightpart[76]="galileo"
namesrightpart[77]="galois"
namesrightpart[78]="ganguly"
namesrightpart[79]="gates"
namesrightpart[80]="gauss"
namesrightpart[81]="germain"
namesrightpart[82]="goldberg"
namesrightpart[83]="goldstine"
namesrightpart[84]="goldwasser"
namesrightpart[85]="golick"
namesrightpart[86]="goodall"
namesrightpart[87]="gould"
namesrightpart[88]="greider"
namesrightpart[89]="grothendieck"
namesrightpart[90]="haibt"
namesrightpart[91]="hamilton"
namesrightpart[92]="haslett"
namesrightpart[93]="hawking"
namesrightpart[94]="hellman"
namesrightpart[95]="heisenberg"
namesrightpart[96]="hermann"
namesrightpart[97]="herschel"
namesrightpart[98]="hertz"
namesrightpart[99]="heyrovsky"
namesrightpart[100]="hodgkin"
exit_loop="false"
while [ "$exit_loop" == "false" ]; do
namesleftpart_size=${#namesleftpart[@]}
namesleftpart_index=$(($RANDOM % $namesleftpart_size))
namesrightpart_size=${#namesrightpart[@]}
namesrightpart_index=$(($RANDOM % $namesrightpart_size))
name_generated=${namesleftpart[$namesleftpart_index]}.${namesrightpart[$namesrightpart_index]}
if [ "$name_generated" == "boring.andre" ]; then
exit_loop="false"
else
echo ${name_generated}
exit_loop="true"
fi
done