I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| import praw # simple interface to the reddit API, also handles rate limiting of requests | |
| import re | |
| from collections import deque | |
| from time import sleep | |
| USERNAME = "Your username here" | |
| PASSWORD = "Your password here" | |
| USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit" | |
| r = praw.Reddit(USERAGENT) |
So I have been using tmux for a while and have grown to like it and have since added many many customizations to it. Now once you start getting the hang of it, you'll naturally want to do more with the tool.
Now tmux has a concept of window-group and session and if you are like me you'll want multiple session that connects to the same window group instead of a new window group every time. Basically I just need different views into the same set of windows that I have already created, I don't want to create a new set of windows every time I fire up my terminal.
This is the default case if you simply use the tmux command as your login shell, effectively creating a new group of windows every time you start tmux.
This is less than ideal because, if you are like me, you fire up one-off terminals all the time and you don't want all those one-off jobs to stay running in the background. Plus sometimes you need information fro