Skip to content

Instantly share code, notes, and snippets.

View alphaguy4's full-sized avatar
:octocat:
Hello there

Kartikay singh alphaguy4

:octocat:
Hello there
  • Microsoft India
  • Bangalore, India
  • 10:51 (UTC +05:30)
View GitHub Profile
@alphaguy4
alphaguy4 / tmux.md
Created September 10, 2016 12:05 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@alphaguy4
alphaguy4 / gmail.py
Created July 27, 2016 13:26 — forked from jasonrdsouza/gmail.py
Python script to access a gmail account and download particular emails
import email, getpass, imaplib, os
detach_dir = '.' # directory where to save attachments (default: current)
user = raw_input("Enter your GMail username:")
pwd = getpass.getpass("Enter your password: ")
# connecting to the gmail imap server
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user,pwd)
m.select("cs2043") # here you a can choose a mail box like INBOX instead