# Playful Programming: Trolling Friends with Hilarious Code

- Speaker: [Eyal Trabelsi](/wiki/speakers/eyal-trabelsi.md)
- Event: [Reversim Summit 2024](/wiki/years/2024.md)
- Video: https://www.youtube.com/watch?v=Rsbqb_zvZw8
- Transcript: [/transcripts/2024/40-Rsbqb_zvZw8.md](/transcripts/2024/40-Rsbqb_zvZw8.md)
- Language: Hebrew · Type: talk · Level: general
- Topics: [DevOps](/wiki/topics/devops.md), [Engineering Culture](/wiki/topics/engineering-culture.md), [Python](/wiki/topics/python.md), [Networking](/wiki/topics/networking.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores how to use programming skills to playfully prank developer friends in a lighthearted and friendly manner. The speaker demonstrates various harmless ways to surprise a colleague, ranging from simple terminal scripts displaying emojis and dad jokes to more elaborate setups involving automated audio triggers. By integrating text-to-speech tools, web servers, and webhook integrations on code merges, developers can add a touch of humor to their daily office routine. Ultimately, the talk encourages programmers to use their creativity to brighten the workplace while keeping pranks good-natured.

## Key points

- [0:13](https://www.youtube.com/watch?v=Rsbqb_zvZw8&t=13s) The speaker introduces the concept of friendly office pranks and demonstrates a simple Python script in the terminal that displays running emojis.
- [1:40](https://www.youtube.com/watch?v=Rsbqb_zvZw8&t=100s) Pranks should be tailored to the colleague's personality, suggesting alternatives like fetching dad jokes from the web using curl and cowsay.
- [2:41](https://www.youtube.com/watch?v=Rsbqb_zvZw8&t=161s) The speaker proposes moving from visual pranks to audio pranks by generating speech from text and playing it back using Python libraries.
- [4:08](https://www.youtube.com/watch?v=Rsbqb_zvZw8&t=248s) An automated prank can be triggered upon code merges by wrapping the script in a Flask web server and exposing it publicly via ngrok.

## Takeaways

- Use lightweight terminal animations and scripts to surprise colleagues playfully.
- Leverage text-to-speech tools and audio libraries to create customized audio pranks.
- Connect internal scripts to external webhooks like GitHub events to automate triggers.

## Questions this talk answers

- How can I use a webhook to trigger local scripts based on repository events?
- What are some fun ways to use Python for office automation and pranks?

## Technologies

Python, Flask, ngrok, GitHub

## Tags

automation, developer culture, fun, python, webhooks
