An Interest In:
Web News this Week
- March 13, 2024
- March 12, 2024
- March 11, 2024
- March 10, 2024
- March 9, 2024
- March 8, 2024
- March 7, 2024
November 26, 2021 09:49 pm GMT
Original Link: https://dev.to/xceed/how-i-send-a-gift-coupon-to-my-nerdy-friend-11b2
How I send a gift coupon to my nerdy friend
Context
Our company has organized "Secret Santa", pre-covid times. I got the name of a nerdy colleague and a friend. I decided to gift him Amazon gift coupon. Like people usually do - hiding gift somewhere in desk, I instead created an online puzzle like a treasure hunt using some automation. If he solves he will receive gift on his email.
Starting Point
- Printed a bar code on a paper and put it on my friend's workstation desk. Upon scanning, it redirects to a simple website I've created using wixsite.com.Here's the picture of printed barcode along with other gifts -
- The landing page shows following instruction -
- To get your gift all you need is an email address.
Don't scroll! Take the challenge
Before I tell you more, why don't you give a try yourself to find the email address? Here's the link after scanning barcode - https://turantsephele.wixsite.com/giftgenerator
S
C
R
O
L
L
T
O
S
E
E
N
E
X
T
S
T
E
P
S
Finding hints to find the email address
- Once you click "Get email address", it redirects you to another page which shows a timer and nothing else. And with a small hidden button somewhere in page.
- If you are able to find the button and click, it redirects you to brainfuck visualizer with some pre-populated code.
- I've written this code in brainfuck and when you run it outputs next hint.
Final Hint
- That brainfuck code outputs a simple string -
Decode:747572616e7473657068656c6540676d61696c2e636f6d
- After decoding, it gives you the email address.
Automation for sending gift coupon
- I have created a IFTTT flow which triggers when there is an incoming email with subject "HOG RIEEDERRRRR" and it is from my friend's email address.
- Once this condition matches, IFTTT sends an email back with gift coupon details.
To make sure friend don't stuck
- Once timer ran out it reveals a link to brainfuck visualizer code.
- If he can't solve the puzzle in 3 days, an email triggers and sent gift coupon details to friend's email address. Again using IFTTT.
That's all folks!
If you did something similar or have some idea like this, drop it in comments :)
Original Link: https://dev.to/xceed/how-i-send-a-gift-coupon-to-my-nerdy-friend-11b2
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To