Skip to content

Latest commit

 

History

History
118 lines (77 loc) · 5.21 KB

File metadata and controls

118 lines (77 loc) · 5.21 KB

My GIT Cheat Sheet

Git commands

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"

Git Cheatsheets and Tutorials

Markdown

Closely associated with github is Markdown. Here are some cheatsheets and helps:

Powershell Commands (Windows)

Powershell command Unix equivalent
get-help man
remove-Item rm
remove-Item -recurse -force rm -rf

Python Wisdom

Getting started

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.

Python Resources

Python for Matlab Users (tutorials and advocacy):

Possibilities:

Databases

MySQL

SSH problems?

This list from stackexchange solved a login problem on CentOS :

  • Your home directory ~, your ~/.ssh directory and the ~/.ssh/authorized_keys file on the remote machine must be writable only by you: rwx------ and rwxr-xr-x are fine, but rwxrwx--- is no good, even if you are the only user in your group (if you prefer numeric modes: 700 or 755, not 775). If ~/.ssh or authorized_keys is a symbolic link, the canonical path (with symbolic links expanded) is checked. Your ~/.ssh/authorized_keys file (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]).

Virtual Machines

[http://superuser.com/questions/73488/run-a-virtual-machine-from-virtualbox-without-launching-virtualbox?rq=1]

[http://superuser.com/questions/539880/using-virtual-box-is-it-possible-to-set-your-virtual-machine-time-to-be-differen]

Miscellaneous Stuff

Tree killer