Skip to content

Instantly share code, notes, and snippets.

@carlbennett
Last active July 10, 2017 16:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save carlbennett/957cc9d0dbb6484b593f to your computer and use it in GitHub Desktop.
Save carlbennett/957cc9d0dbb6484b593f to your computer and use it in GitHub Desktop.
Lunch Location Randomizer
#!/bin/bash
TODAY=$(date +%Y-%m-%d)
LIST=$(sed -e 's/$/\r/g' lunch.txt | perl -MURI::Escape -ne 'print uri_escape($_)')
curl -s \
-d "list=${LIST}" \
-d "format=plain" \
-d "rnd=date.${TODAY}" \
"https://www.random.org/lists/?mode=advanced"
Big Tony's West Philly Cheesesteaks
BJ's Brewhouse
Buffalo Wild Wings
Burger House Hamburgers
Buzz Brews
Cafe Brazil
Chipotle
Chuy's
Cindy's New York Deli
Fat Jessie's
Fogo de Chao Brazilian Steakhouse
Freebirds
Fuzzy's Taco
Ghengis Grill
Hopdoddy Burger Bar
Jersey Joe's
Jimmy John's
Panera Bread
Paradise Bakery & Cafe
Pei Wei
Pot Belly
Ramen Hakata
Salata Salad Bar
Schlotzsky's
Spring Creek Barbecue
Twisted Root
Velvet Taco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment