git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
| #!/bin/bash | |
| # Author: Thomas Berezansky <[email protected]> | |
| # Author: Jason Stephenson <[email protected]> | |
| # | |
| # Feel free to use and to share this script in anyway you like. | |
| # This script is intended as a shortcut for the git cherry-pick | |
| # command when you have several commits that you want to cherry-pick | |
| # into your local branch from another branch. It often results in a |
| #! /usr/bin/env python | |
| # A small script for cdp devices discovery | |
| import sys | |
| import pcapy | |
| import socket | |
| from dpkt import ethernet | |
| from dpkt import cdp | |
| from docopt import docopt |
| """ | |
| Get both a and b attributes, here 0 is a valid value. | |
| Don't use comparison==0 | |
| What if c = '', its invalid! | |
| """ | |
| class A(object): | |
| a = 1 |
| import requests | |
| #http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file | |
| url = "http://localhost:5000/" | |
| fin = open('simple_table.pdf', 'rb') | |
| files = {'file': fin} | |
| try: | |
| r = requests.post(url, files=files) | |
| print r.text |