Skip to content

Instantly share code, notes, and snippets.

@danhodge
Last active October 31, 2022 13:37
Show Gist options
  • Save danhodge/0dd7e7fa4ccea7e70a4da9467a9e3edd to your computer and use it in GitHub Desktop.
Save danhodge/0dd7e7fa4ccea7e70a4da9467a9e3edd to your computer and use it in GitHub Desktop.
Mac OS Tips
Creating an Animated Gif Screen Recording
1. CMD+SHIFT+5 -> choose "Record Selected Portion"
2. Position box of region of screen being recorded
3. Hit Record
4. CMD+SHIFT+5 -> hit "Stop" button
4. Use Gifski application to convert movie file into animated gif
Find out which process is listening on <PORT>
sudo lsof -nP -i4TCP:<PORT> | grep LISTEN
Keep machine from going to sleep
% caffeinate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment