git log --pretty=oneline --abbrev-commit <path>
short hand: git log --oneline <path>
git log --graph <path>
Fix ANSI escape codes in git log: git config --global core.pager "less -R"
- Atlassian tutorials
- NDP Interactive Cheat Sheet
- Git Fix Um
- How to escape a git mess
- Think like a git
- git ready
- A github workflow to consider
- Git Best Practices
- Git Tips and Tricks
- Ryan Hodson's git tutorial - tips and tricks
Closely associated with github is Markdown. Here are some cheatsheets and helps:
| Powershell command | Unix equivalent |
|---|---|
get-help |
man |
remove-Item |
rm |
remove-Item -recurse -force |
rm -rf |
conda create -n environ python=2
# To activate the environment:
source activate environ ...
conda install anaconda ...
conda install netcdf4 ...
source activate environ ...
source deactivate.
Do not use --pylab flag for IPython
When you need to see a notebook without re-executing, trust notebooks with
ipython trust mynotebook.ipynb [other notebooks.ipynb]
to generate a new signature (git repositories?). Explanation here.
conda list --revisions
Working with Wakari: be careful that your packages do not update ipython or ipython-notebook. This may break the Wakari installation.
- Numpy for matlab users
- A python primer for matlab users
- Advantages of python over matlab (Some of this the author is reaching!)
- 10 Reasons
- Interact with using Python: http://zetcode.com/db/mysqlpython/
This list from stackexchange solved a login problem on CentOS :
- Your home directory
~, your~/.sshdirectory and the~/.ssh/authorized_keysfile on the remote machine must be writable only by you:rwx------andrwxr-xr-xare fine, butrwxrwx---is no good, even if you are the only user in your group (if you prefer numeric modes: 700 or 755, not 775). If~/.sshorauthorized_keysis a symbolic link, the canonical path (with symbolic links expanded) is checked. Your~/.ssh/authorized_keysfile (on the remote machine) must be readable (at least 400), but you'll need it to be also writable (600) if you will add any more keys to it. - Your private key file (on the local machine) must be readable and writable only by you:
rw-------,`i.e. 600. - Also, if SELinux is set to enforcing, you may need to run
restorecon -R -v ~/.ssh(see e.g. Ubuntu bug 965663 and Debian bug report #658675; this is patched in CentOS 6 [actually, no, it's not]).
- Kill a tree and print from Github? Read this.
- Install and use git as a non-root user? Read this.
- Want a private or company Github-like server? Read this about gitlab or this about gitorious.
- Back up gmail, possibly fetch mail off gyre? Investigate
