$ awk '{ srand(); if(NR == (n = int(rand() * 124478))){print n, $0}}' FILEPATH
This file contains 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
def fizz_buz(n) | |
return if n > 100 | |
word = if n % 15 == 0 | |
'fizz buz' | |
elsif n % 3 == 0 | |
'fizz' | |
elsif n % 5 == 0 | |
'buz' | |
end | |
puts word if word |
This file contains 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
inquiries: | |
mail_address: Faker::Internet.email | |
nickname: Faker::Games::Pokemon.name | |
message_body: Faker::Lorem.paragraph |
This file contains 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
#!/usr/bin/env bash | |
while getopts i:n: OPT | |
do | |
case "$OPT" in | |
"n") NAMESPACE="$OPTARG"; | |
;; | |
"i") IMAGE="$OPTARG"; | |
;; | |
esac |
OlderNewer